Hello,
        Now, I am really confused. I created a blank webapp with a blank
web-inf that just declares itself to be version 2.4. My test.jsp with the EL
worked.
        I went back to my web-app, blanked out the web.xml just like the
test webapp and my EL still does not work. What else can be disabling EL?


Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 

-----Original Message-----
From: Shane Linley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 10:42 PM
To: Tomcat Users List
Subject: RE: EL Configuration problem

I had a similar problem which I overcame with lots of reading and some
guesswork. BTW Im using the Sun supplied JSTL... I'm running on Tomcat
5.0.19

In your JSP directives you will need to declare:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

Your web.xml for your web-app declaration will need to reference the correct
version of the J2EE schemas. Here is mine:

<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
web-app_2_4.xsd"
         version="2.4">

Of course I wanted to make sure EL was enabled as did you:

    <!-- JSP Configuration -->

    <jsp-config>
      <jsp-property-group>
        <description>Property group for common configuration for all the
JSP's</description>
        <url-pattern>*.jsp</url-pattern>
        <scripting-invalid>false</scripting-invalid>
        <el-ignored>false</el-ignored>
      </jsp-property-group>
    </jsp-config>


Don't forget to throw in your JSTL jar files, um jstl.jar and standard.jar
from what I remember, into the WEB-INF/lib directory.

Regards,
Shane.


-----Original Message-----
From: Chanan Braunstein [mailto:[EMAIL PROTECTED]
Sent: Thursday, 22 April 2004 4:11 AM
To: 'Tomcat Users List'
Subject: EL Configuration problem


Hello,
        Using Tomcat 5.0.19 I cannot get EL to work in my webapp (It works
fine in jsp-examples). I checked the version of web.xml to make sure it is
2.4 and I added to be safe:
        <jsp-property-group>
                <url-pattern>*.jsp</url-pattern>
                <el-ignored>false</el-ignored>
        </jsp-property-group>

But, all I get is the EL text back at me.



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


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



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

Reply via email to