• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write custom tag resulting In custom tags  RSS feed

 
Vikas Gujjar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to write a custom tag <mytag:twolist ...> which in turn outputs two <html:select ...> tags, effectively I intend to write a custom tag which should result in evaluatable JSP.

As per JSP logic body content of custom tag may contain further tags. I attempted to alter body of the tag using BodyTagSupport but to my vain altered body content of my tag was not treated as JSP the output html contained html:select

1. My jsp had declared the tag for html
2. The body content of the tag in the TLD was JSP

Can anybody point me out a solution for this issue!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tag files are a convenient way to use tags in your own tags.
[ April 28, 2007: Message edited by: Bear Bibeault ]
 
Vikas Gujjar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WOW! I am enlightened.
Works like charm! Now I am wondering how did I not think about it before!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!