N
N
noskain2012-10-24 14:17:11
Java
noskain, 2012-10-24 14:17:11

Why doesn't Tomcat 5.5 resolve variables in jsp?

Hello, I ran into such a problem - there is a packaged application in .war
tomcat 7 deploys without problems, but in tomcat 5.5 the deployment seems to be normal,
but when viewed in a browser, the jsp ${...} variables do not resolve.

I can't find the cause of the problem. Help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
ivnik, 2012-10-24
@noskain

The reason may be in the incorrect version of the servlet api specified in web.xml (version="xx"), specify version 2.4 (for tomcat 5.5):

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
         version="2.4">
...

P
Pavel Isakov, 2012-10-24
@kwikpik

Check the version of servlet-api.jar and jstl.jar

S
serso, 2012-10-24
@serso

It seems that the jstl library was included in the distribution of Tomcat 7, but it is not in Tomvat 5.5. Do you have jstl jar in your war?
You can read about jstl here: stackoverflow.com/tags/jstl/info

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question