Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to enable JSP 2.0

 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on web application that is using JSP 1.2. Everything I place there from JSP 2.0 does not work. Application runs on IBM Websphere 6. What I have to do to enable JSP 2.0.

Thanks,
Vladas
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to check if your server supports JSP 2.0 or not.
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it does, according to the web. And if I create new application it works fine and uses JSP 2.0. Though on the old application JSP 2.0 does not work.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you get any error, any exception ?
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:set var="address" value="myaddress"/>
<c ut value="${address}"/>
<input type="text" name="test" value="${address}">

prints

myaddress and input field with value ${address} (not myaddress}
 
Kurtcebe Eroglu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vladas,

Yes it does, according to the web. And if I create new application it works fine and uses JSP 2.0. Though on the old application JSP 2.0 does not work.


So it seems the problem is not the container. Did you compare deployment descriptors (web.xml) of the two applications above (DOCTYPE declerations especially)? May be you need to increase the declared spec version in your old application (2.4).

regards
Kurtcebe Eroglu
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found I need to run project migration wizard to upgrade application from J2EE 1.3 to J2EE 1.4.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic