It doesn't help.  I'm still getting the same result.

My current web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app version="2.4"
         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"; >

</web-app>




Fredrik Liden wrote:

Try this:

<web-app version="2.4"
         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"; >

</web-app>

-----Original Message-----
From: Franklin Phan [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 6:24 PM
To: Tomcat Users List
Subject: Re: Expression Languange not working for me



This is what my web.xml file contains:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
     "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>
</web-app>

What do I change?



Fredrik Liden wrote:


Check your web.xml file to make sure you're using the 2.4 dtd and not 2.3 or lower.

Fredrik

-----Original Message-----
From: Franklin Phan [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 6:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Expression Languange not working for me


I am running Tomcat 4.1.18 and 5.0.x.
I tried the following HTML and JSP using EL, and am not getting the correct response from either Tomcat version.


I have the following HTML:

<html>
<body>
<form action="TestBean.jsp">
   Name: <input type="text" name="name"><br>

   <input type="submit">
</form>
</body>
</html>



And the following JSP:

<%@ page isELIgnored ="false" %>
<html>
<body>
Request param name is: ${param.name} <br>

</body>
</html>



Regardless of what I type in the Name box in the HTML page, the response is always:

Request param name is: ${param.name}


What is wrong? Thanks.





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to