Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How JSF 1.x relates to JSP ?  RSS feed

 
Yann Andenmatten
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this article

Improving JSF by Dumping JSP

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

Warren
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!