• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet versus JSF

 
Ranch Hand
Posts: 385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Trilok - how about Spring MVC, do you think that is more appropriate to learn than JSF?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic