File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Which JSP version I'm using? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Which JSP version I Watch "Which JSP version I New topic

Which JSP version I'm using?

shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
Hi how can I know which JSP version I am using?
I am working whih Weblogic 9.2 ..

- Thanks.
[ November 06, 2007: Message edited by: shlomy bentulilah ]
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi shlomy,

just check your web.xml

shlomy bentulilah
Ranch Hand

Joined: Oct 25, 2007
Posts: 37
Thanks but I checked anf there is no such data ...
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Sun might put out some good technology but whatever group is in charge of naming and numbering their release seems to be a bunch of idiots. I don't know about Weblogic, but I am sure somewhere there is a spec sheet that says what JSP version it supports. Looking at the DTD used by your web.xml should give you a hint about the Servlet version you are using. Everybody know that "web-app_2_3.dtd" means Servlet Specification 2.3, right? Based on the Servlet version you should be able to find out what version of JSP is supported.

I think there is a one-to-on mapping between Servlet and JSP versions, but I could be wrong. My understanding is this:
Servlet 2.3 > JSP 1.2
Servlet 2.4 > JSP 2.0

- Brent
Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
Late reply ,but worthy

Servlet Engine:
<%= session.getServletContext().getMajorVersion() %>.<%= session.getServletContext().getMinorVersion() %>
JSP Engine:
<%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()%>
Application Server:
<%= application.getServerInfo()%>

I agree. Here's the link:
subject: Which JSP version I'm using?
It's not a secret anymore!