• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need to invoke EL expression.

 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
jstl.jar
struts-core-1.3.8.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.8.jar
antlr-2.7.2.jar
oro-2.0.8.jar

thanks in advance..

vanchin
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>.
 
nick kevin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try:

<%@ page pageEncoding="UTF-8" isELIgnore="false" %>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic