It's not a secret anymore!*
The moose likes JSF and the fly likes Build tag based on other custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Build tag based on other custom tags" Watch "Build tag based on other custom tags" New topic

Build tag based on other custom tags

Christian Nicoll
Ranch Hand

Joined: Mar 09, 2008
Posts: 106
Hello ranchers,

I want to create a new tag which is based on other custom tags. If I use native html tags, then there is no problem to create the output, for that I use methods like writer.startElement(), writer.writeAttribute() and writer.endElement().

But how can I use non-html tags in my new custom component? For example there exists a tag like <my:showSomething> and I want to use the output of this tag in a tag <my:showSomethingElse>.

Any experiences about this ?

My SCBCD-Notes - My Hello World Webservice
It is sorta covered in the JavaRanch Style Guide.
subject: Build tag based on other custom tags
Similar Threads
How can I write jsp lib that removes html tag
Tutorial on Dynamic Attributes
Using Custom tags inside HTML or Scriptlet
Process JSP Stream explicitly
Question on TagExtensions