This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Jeremy Wilson
Ranch Hand
Joined: Feb 18, 2003
Posts: 166
posted
0
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.
Jeremy Wilson
D Rog
Ranch Hand
Joined: Feb 07, 2004
Posts: 471
posted
0
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.
- 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
Joined: Jan 27, 2003
Posts: 130
posted
0
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