Fog Creek Software
Discussion Board




Java Server Faces

Anyone here ever used Java Server Faces?

What is its relationship with Struts? Totallly different things? Better or Worse?

Rick Tang
Friday, March 19, 2004

Not yet. I am waiting to see if it is worth it.

The goals seem worthy as we need a standard
to compete with MS.

You can do faces over struts. Faces on the front
end and struts in the middle mapping to your
application.  My gut feeling is this will be
too complex for my tastes.

son of parnas
Saturday, March 20, 2004

Because of J2EE and it's miriad of patterns and config.xml files is becoming far too complex...

RP
Saturday, March 20, 2004

Damn. Correction:

Because of J2EE and it's miriad of patterns and config.xml files Java is becoming far too complex.

RP
Saturday, March 20, 2004

RP, agree completely. Does anyone ever change
their XML once their app has been completed? The felxibility
for the cost seems useless to me, especially when
you can only do certain things in XML files. I just
want to create everthing at runtime in my code.

son of parnas
Saturday, March 20, 2004

I have built some wickedly complex web apps with nothing more than an entry point servlet, plain old java objects for doing business logic/persistence and Apache Velocity templates for the UI.  Its efficient, simple and easy to maintain.  Plus it only took me like 4 hours to teach the Graphics Designer how to do Velocity templates so I didn't even have to do the UI (and the UI suddenly looked a whole lot prettier).

From my very first experiences with JSP, EJB and the like I've always felt that they create more problems then they solve.

Ken Klose
Tuesday, March 23, 2004

There are several approaches to web development. You can view it as something preferably solved by scripting and then indeed struts, ejb's, etc will be to complex. Forget about Java and go do php.

However if you need something quite complex to be truely dependable and it is to be accessed through the web you will have to do serious programming. And when doing serious programming an important help is structure by frameworks.

Struts is quite an excellent framework but it has a steap learning curve. You have to let go of the straight forward concept of perl-cgi and php like web programming. However the payback is grand if it meets your purpose. But befor benefitting from stuff like the validator framework and form beans (that map nicely to stuff like hibernate with just a touch of jakarta commons beanutils) you will have to set up a lot of stuff and get into design patterns like MVC.

My motto is, when it is simple use something simple, but when the going gets tough get organised real good, and in that case Struts is quite a fine way to go.

Guido
Thursday, March 25, 2004

To son of parnas

>Does anyone ever change
>their XML once their app has been completed?

Ur project is such a small one,  or u'r just a programmer.
Have U ever cared about maintainance after completion
of the coding ??
who's gonna maintain the application ?
If it's ur job, it's okay. but How about in case of other
than u ? The others see ur source codes and maintain ???
That's gonna cost way too much !!

If you don't wanna see complex XML config files,
why u use strust or JSF or whatever requires XML config files...

fumi
Wednesday, April 14, 2004

*  Recent Topics

*  Fog Creek Home