Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jstl and tiles

 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a custom action as the attribute of another custom action, or as an EL expression.
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic