It's not a secret anymore!
The moose likes JSP and the fly likes jstl and tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jstl and tiles" Watch "jstl and tiles" New topic
Author

jstl and tiles

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 96
Hi,

Can I check the value of a tile:getAsString from a jstl tag. I have tried the following c:if however it is giving me a servlet exception



The exception thrown is as follows:



Basically I am using tiles to determine if a page should have a banner or not. I want that if in tiles-defs.xml the user does not set the tile element for the banner, then on the jsp page it does not try to load the image for it.

I do not know if there a simpler way to do this.

Thanks and Regards,
Sim085
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

You cannot use a custom action as the attribute of another custom action, or as an EL expression.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 96
So is there a way how I can solve this?

Like putting the value of the tile expression inside a varialble that can be handled inside the jstl tag?

Regards,
Sim085
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jstl and tiles
 
Similar Threads
Passing Tiles into an IFRAME.
JSP Struts/JSTL Form problem
Tiles in JSF
how to invoke tiles definition from JSP
Tiles problem