• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet versus JSF

 
Ahmed Bin S
Ranch Hand
Posts: 385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I used Java Servlet technology about 5 years ago to create a web page - I was basically writing all the HTML out to the print output stream.

I am now going to start working on another website in my own spare time, and am in the planning stage where I am trying to identify what technology would be ideal for the site I am going to create.

The site will basically be a pretty simple inteeface - it will have a few panels, a few buttons, some minor JavaScript for a couple of forms, and then all the processing will happen on the server side, and then you will get the data back - again, the presentation will be very simple - think Twitter. I have the J2EE Reference next to me, and JSF seems to cover a lot of it, and I am not sure whether learning JSF for such a simple website would be appropriate.

I would appreciate any advice.

Thank you.

A
 
Trilok Chand
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ahmad,

First of all as per my understanding you should go with the technology in which you are comfortable. And as per your requirement JSF best suited. Use latest version of JSF with Primefaces. Primefaces provide built in ajax support and many more component

for primefaces component refer http://www.primefaces.org/showcase/

Thanks
Trilok
 
Ahmed Bin S
Ranch Hand
Posts: 385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Trilok - how about Spring MVC, do you think that is more appropriate to learn than JSF?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahmed Bin S wrote:
I used Java Servlet technology about 5 years ago to create a web page - I was basically writing all the HTML out to the print output stream.

Not an appropriate use of servlets. You should have been using JSP in conjunction with servlets to format the responses.

and I am not sure whether learning JSF for such a simple website would be appropriate.

Simple or not isn't the issue. Learn JSF if you want to learn JSF. I've written elsewhere on why I think it's a dead (or at least dying) technology, but that's neither here nor there. In fact, a simple site is probably the best way to learn a new technology rather than getting mired in too much complexity at once.
 
Ahmed Bin S
Ranch Hand
Posts: 385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
Simple or not isn't the issue. Learn JSF if you want to learn JSF. I've written elsewhere on why I think it's a dead (or at least dying) technology, but that's neither here nor there. In fact, a simple site is probably the best way to learn a new technology rather than getting mired in too much complexity at once.


Well, unfortunately we often do not have the time to learn everything we would like to learn, and so have to be selective. If I could I would learn all the Java specifications (as well as many other things), but it is simply not feasible and therefore learning something that is quite complicated to learn and is yet a dying technology is something I would rather avoid.

It seems Spring should be around for quite some time so I will probably go down the Spring MVC route.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!