File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes need to invoke EL expression. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "need to invoke EL expression." Watch "need to invoke EL expression." New topic

need to invoke EL expression.

Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
Hi all,

I am using Struts 1.3.8 and want to use EL expression in my Jsp page.
The application is using a bean "code.AddressForm" and action "code.AddressAction" which are defined in struts-config.xml file. The problem is that when i want to use EL it displays the expression itself. I dont know what is missing, but struts bean tag displays the bean property.

please help.

Jsp code:

The output is:

The lib folder contains the following jar files:

thanks in advance..


Best regards,<br /> <br />vanchin
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I suspect the problem here is that you've declared your project as a Servlet 1.3 project instead of a Servlet 1.4 project. You can verify whether or not this is the case by looking at the DTD reference in your web.xml file.

In a Servlet 1.3 project, EL expressions are not allowed except inside JSTL tags such as <cut>.

Consultant, Sima Solutions
nick kevin

Joined: Nov 26, 2006
Posts: 6
you can try:

<%@ page pageEncoding="UTF-8" isELIgnore="false" %>
I agree. Here's the link:
subject: need to invoke EL expression.
jQuery in Action, 3rd edition