you can still use the struts tags and/or jstl in the component. musachy
On Fri, Jul 24, 2009 at 7:20 AM, Mitch Claborn<mi...@claborn.net> wrote: > That's close to what I need, but not quite there. > > custom5[<s:component template="t1.jsp" templateDir="myTemplates" > > this is stuff in the middle > </s:component>] > > > t1.jsp: > <%@ taglib prefix="s" uri="/struts-tags" %> > this is t1.jsp.<br/> > done > > renders as > custom5[ > this is stuff in the middle > > this is t1.jsp.<br/> > done > ] > > > I need to be able to conditionally and repetitively render the content > within the tag. Any further ideas or pointers? > > > Mitch > > Musachy Barroso wrote: >> Look at the "component" tag, you might be able to create a tag without >> writing any code. >> >> musachy >> >> On Thu, Jul 23, 2009 at 3:50 PM, Mitch Claborn<mi...@claborn.net> wrote: >> >>> Hoping someone can give me some pointers on how to get started on >>> developing my own tag. >>> >>> I want to develop a custom tag to use within Struts 2, kind of like >>> <s:iterator>. What I have in mind is something like this: >>> >>> <abc:mytag> >>> other stuff, including other struts tags >>> </abc:mytag> >>> >>> the tag would iterate over the stuff contained in the tag, based on >>> non-trivial logic, and also generate output both before and after the >>> other stuff. This may eventually turn into a tag to generate an HTML >>> table. Any pointers on how to get started developing such an animal are >>> appreciated. >>> >>> >>> Mitch >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >>> >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org