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
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
Joined: Feb 18, 2003
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.
Joined: Feb 07, 2004
- 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 ]
Joined: Jan 27, 2003
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