• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

bean:message in my custom tag

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic