aspose file tools
The moose likes JSF and the fly likes How JSF 1.x relates to JSP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How JSF 1.x relates to JSP ?" Watch "How JSF 1.x relates to JSP ?" New topic
Author

How JSF 1.x relates to JSP ?

Yann Andenmatten
Greenhorn

Joined: Nov 25, 2005
Posts: 2
Hi,

We are assessing if it is time for our company to migrate to JSF. Before considering all the benefits of the JSF component model, productivity increase, and so on, we need to solve some Application Server version issues.

So my questions are about the J2EE spec level required by JSF, more precisely the JSP/Servlet spec level. It is stated in Sun's JSF FAQ "JSF 1.0 relies on JSP1.2" (and servlet 2.3, I suppose).
Is it the same for JSF 1.1? And are the main JSF 1.1 implementations (namely Sun's RI and MyFaces) able to take advantage of the JSP 2.0 specification and still work with JSP 1.2. Should the same JSF code produce the same behaviour if I migrate from JSP 1.2 to 2.0 latter on?

What about JSF 1.2 which will take advantage of the next coming JSP 2.1 spec. Will it work only with this spec level?

Thanks for your answers,
Yann
Yann Andenmatten
Greenhorn

Joined: Nov 25, 2005
Posts: 2
Hi,

I downloaded the JSF 1.1 et 1.2 specification, and I conclude the following:

JSF 1.1 is also based on JSP 1.2. As JSP 2.0 is backward compatible to 1.2, it will also run on any J2EE 1.4 certified container, but nothing is said about taking adavantage of JSP2.0 if present. A note about myfaces: I found threads which relate a dependency to JSP 2.0 classes, but it appears that it is suffisent to add the jsp-2.0.jar to the web app to solve the problem (see myfaces.apache.org/tomcat.html).

JSF 1.2 is said to be based on JSP 2.1 (and servlet 2.5). As a result, it would be only possible to use JSF 1.2 with this spec level (means a J2EE 5.0 container).

HTH

Yann
Warren Bell
Greenhorn

Joined: Oct 03, 2005
Posts: 12
Check out this article

Improving JSF by Dumping JSP

http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

Warren


Warren
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How JSF 1.x relates to JSP ?
 
Similar Threads
JavaServer Faces 1.2 and Tomcat 5.5
Displaying component id for error message
JSF 1.1 and JSP spec
Does Weblogic 8.1 platform support JSTL 1.1
Which version of J2ee should be used for JSF?