• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

el-ignored doubt

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to send param values to included jsp from main jsp using jsp:include and jsp aram standard actions. Included jsp is named as header.jspf. But when I try to display param attribute in the included jspf, it is not evaluating EL and the expression is printed as it is.
Here is my initparam.jsp which is calling an included jsp.[/CODE][/CODE][code]
<html><body>Passing parameters to included file using jsp aram
<jsp:include page="header.jspf">
<jsp aram name="jspName" value="initparam"/>
</jsp:include>

</body>
</html> [/code]

Here is included jsp named as header.jspf
[code] <h1> Header:SCWCD </h1>
${param.jspName} [/code]

I am able to see the param attribute value in the result,if I specify el-ignored to be "false" in DD for url pattern of type .jspf
[code] <jsp-config>
<jsp-property-group>
<url-pattern>*.jspf</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>
[/code]

My questions is since el-ignored is false by default, why is EL not getting evaluated . and why is it ignoring EL in the included fragment?

Should we specifically mention not to ignore EL in DD?

Thanks
 
Ranch Hand
Posts: 329
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try renaming your file to Header.jsp (and not setting el-ignoreg in jsp-config). My bet is that it will work, but still I don't know why. I have had the same problem before and it seems to be solved by changing the jspf extension. A configuration problem in Tomcat? I don't know.
 
Vani Chinta
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes ST,
It is working with jsp. I tried that. Not sure what is different with .jspf
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic