process.jsp:
Welcome, ${param.name}
Page URL:
http://127.0.0.1:8888/myapp/process.jsp?name=test123
Expected ouptut:
Welcome, test123
With other words, the EL expression doesn't get evaluated? That can have one or more of the following causes:
- Application server in question doesn't support JSP 2.0.
- The
web.xml
is not declared as Servlet 2.4 or higher. - The
@page
is configured withisELIgnored=true
. - The web.xml is configured with
<el-ignored>true</el-ignored>
in<jsp-config>
.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
...
</web-app>
No comments:
Post a Comment