• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

differenc e between JSP & JSF TECHNOLOGY

 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am new to j2ee technologies
so can any one please tell me the difference between java server pages(JSP)
and java server faces(JSF)


thanks in advanc

cinux
 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically jsp is a technology to produce dynamic web content such as asp. JSF is a framework to allow rapid web application development that is built by using jsp tags.
 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are JSF tied to JSP technolgy, or can be used with other approaches, like Velocity or Struts? I heard that Velocity provides better flexibility and performance for creation dynamic web content. Does JSF beat it here, or it just provides more sophisticated environment for development?
Is any framework allowing to build JavaScript based dynamic content? I mean that all actual web page rendering happen on client side including partial updates.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- You can think of JSF as "Swing for server-side applications."

- If you have ever programmed in JSP then you will know that JSF provides much of the plumbing that JSP developers have to implement by hand.

- JSF is a framework just like Struts, and other web frameworks.

Its the matter of choice. I feel JSF better then Struts because of its component based architecture, easy to grasp, simple and good. Some people vote for Tapestry over JSF. It depends. Actually I have never touched tapestry, therefore couldn't say for this. But I like JSF better than struts. We have a good server-side validation in JSF, like Struts. We are also using it for client-side validation, with a combination of jakarta.commons.

JSF contains all the necessary code for event handling and component organization. And yes we can fit JSF together with Struts and other frameworks too.
[ May 30, 2005: Message edited by: Adeel Ansari ]
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, refer to the first chapter of book "Core Java Server Faces" written by Cay Horstmann. This is a very good book on JSF, available at following path

http://www.horstmann.com/corejsf/
 
permaculture is giving a gift to your future self. After reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic