• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using EL in jsp include file

 
Stu Johns
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a JSP including a page that adds a parameter


and the included file that tries to read the parameter


however it does not display as i want, it displays as if isELIgnored is set to true. Explicitly setting to false doesnt make a difference.
anyone know how to achieve this?

thanks

Stu.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
/WEB-INF/includes/inc1.jspf

Is your container configured to treat jspf files as jsp files ? For a quick check, you can try to rename your file inc1.jsp and see if EL is interpreted.
 
Stu Johns
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats it, thanks, I'll configure the container.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The .jspf file type should only be used for statically included files (with the include directive).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. If you are using JSP 2.0 or 2.1, you might want to consider tag files as a better alternative to included files.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stu Johns:
thats it, thanks, I'll configure the container.


I would not do that. As I said, conventionally, .jsp is for active resources, and .jspf is for static inclusion. The appropriate, and easier path, is to simply use the proper file type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic