aspose file tools*
The moose likes JSP and the fly likes jstl and tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl and tiles" Watch "jstl and tiles" New topic
Author

jstl and tiles

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
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: 61648
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
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
 
 
subject: jstl and tiles