I was wondering the same thing. Along with tags like <logic:equal> tags and using ApplicationResources for language specifics, it seems like it would work well.
Oscar On Mon, 27 Oct 2003, Steve Apeero wrote: > For what you want to do what is wrong with using a > > <jsp:include page="common_tags.jsp" flush="true" /> > > where common_tags.jsp contain all the tags and html you > wanted to declare in a seperate tag. > > Stephan > > > >From: "Lukas Bradley" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >CC: [EMAIL PROTECTED] > >Subject: Tags creating Tags > >Date: Sun, 26 Oct 2003 19:34:04 -0500 > > > >Hi all, > > > >Maybe I'm just tired, but the answer to this is not to be found. I could > >me > >making this harder than it is, or something might be right in front of me, > >and I don't see it. > > > >What I want is a custom tag that creates other custom tags. Here is a > >simple example: > > > ><lukas:myTag lang="en" /> > > > >Should produce something like this: > > > ><table> > > <tr><td>English</td></tr> > > <tr><td><html:file property="formFile" > >styleClass="FormField"/></td></tr> > > <!-- Imagine a lot more custom tags here --> > ></table> > > > >Which should then evaluate to: > > > ><table> > > <tr><td>English</td></tr> > > <tr><td><input type="file" name="formFile" value="" > >class="FormField"></td></tr> > > <!-- Imagine a lot more custom tags rendering here. --> > ></table> > > > >I've thought about trying to extend BodyTagSupport, return > >EVAL_BODY_BUFFERED in doStartTag(), modify the bodyContent in > >doAfterBody(), > >then return EVAL_PAGE() in doEndTag(). However, BodyContent has a > >protected > >constructor, and no way to set its content. > > > >I want to maintain the functionality gained from Struts-like custom tags, > >while extracting the creation of them in a super-duper momma tag. Any > >help? > > > >Lukas > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > Cheer a special someone with a fun Halloween eCard from American Greetings! > Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]