Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which JSP version I'm using?

 
shlomy bentulilah
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi shlomy,

just check your web.xml

Herman
 
shlomy bentulilah
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but I checked anf there is no such data ...
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Late reply ,but worthy

<div>
Servlet Engine:
<%= session.getServletContext().getMajorVersion() %>.<%= session.getServletContext().getMinorVersion() %>
</div>
<div>
JSP Engine:
<%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()%>
</div>
<div>
Application Server:
<%= application.getServerInfo()%>
</div>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic