• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

bean:message in my custom tag

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way that I can pretty much use a tag within a tag.

Specifically, I would like to get the value from a bean:message tag and put it into my own custom tag. It would look something like this:



however, when I do try doing this it does not evaluate the inner tag before it's passed in. Can I even get it to do that?
 
Gran Roguismo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
alright, ell sort of solved my own problem on this one. Perhaps it can help someone else.
Rather than figuring it out in this way I pretty much borrowed the source code from the bean utils tag lib and put it into my custom tag.

this line specifically:

obtained by looking up the source on the Apache site
my setting are general enough that I can use the Globals to fill in the variable spaces here. I catch for a resource missing exception tag as they're does and if I get something back I use it as I intended.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!