• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need to invoke EL expression.

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 <c:out>.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can try:

<%@ page pageEncoding="UTF-8" isELIgnore="false" %>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic