• Post Reply Bookmark Topic Watch Topic
  • New Topic

differenc e between JSP & JSF TECHNOLOGY

 
saikrishna cinux
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
 
Jeremy Wilson
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.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • 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.
 
Adeel Ansari
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 ]
 
Dhananjay Inamdar
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/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!