3. I also tried to use JSF2.0 jars instead of JSF1.2 ones which are currently using. And it also works!!! Could somebody tell me why???
4. I searched out that JSF1.1 works with servlet2.3 and jsp1.2. If I still use the current JBOSS4.0.2, does that mean I can only use JSF1.1?
5. Here is a piece of web.xml of the project. Does 2.5 means the servlet spec version? In the project, it is 2.5, but I don't think the jboss server we use support 2.5...But the application runs well...
Generally speaking, you should always try to get the versions of dependencies called out in the specifications, although newer versions should almost always be OK too. The culture of the Java world seems to favor keeping things backward compatible, though of course not forward.
That said, you're interested why your application is working despite the fact that it violates this guideline. There are a several possibilities. One is that the versions of JSP and Servlets called out by JSF 1.2 are just the versions they tested with, and there isn't any direct use of the new features added to Servlet 2.5 or JSP 2.1. Another possibility is that your application just isn't using the part of JSF that would make use of those new features. That means enhancing your application in ways legal to JSF 1.2 could cause an epic failure that will be hard to track down. Finally, and scariest, you might just have not hit the button that exercises the function that's using the new features of JSP or Servlet. That means that your application has one or more time bombs in it just waiting to blow up an unsuspecting user. My advice: modernize your dependencies ASAP.
By the way, I think JSF 2.0 has fewer dependencies on JSP than JSF 1.2 did, since you would typically write Facelets instead of JSPs as the presentation layer.
I searched out that JSF 1.2 requires servler 2.5 and jsp 2.1. If I run JSF1.2 on a server which does not support the specs, what will happen?
Imagine the worst possible natural disaster ever recorded, or not recorded. It would be something like that.
Or, possibly, your computer will melt, burning a whole through the ground, all the way to the point at which whatever parts of your computer are left unmelted will melt due to the immense pressure, causing continental drift.
It's a very bad thing. Don't do it.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: WEIRD...What is the Servelt spec and JSP spec for JSF1.2 and 1.1?