Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Joachim Ansorg wrote: writing a simple Struts2 tag is not that difficult. A Tag is simply a java interface: http://java.sun.com/javaee/5/docs/api/javax/servlet/jsp/tagext/Tag.html The life cycle of a tag is discussed in that javadoc. There are a number of classes that make implementing your o

Re: [struts] tag writers resources?

2008-01-28 Thread Dale Newfield
Darren James wrote: What I was more interested in is some guidelines similar to what Joachim posted in writing a "struts2" tag. And by that I mean one of those generic, technology independent beasts that can be used in Freemarker and Velocity as well as JSP. I don't know how one writes freemar

Re: [struts] tag writers resources?

2008-01-28 Thread Darren James
Hi Dale, Yes, i'm familiar with writing JSP tags, although it's been quite some time since i've done so. It took me about 1/2 an hour to dust off the cobwebs and write a JSP tag extending BodyTagSupport that did what I wanted it to do. What I was more interested in is some guidelines similar to

Re: [struts] tag writers resources?

2008-01-29 Thread Joachim Ansorg
Dale, this is useful information for me. Thanks for pointing this out. I'll make use of this class, I think. Joachim P.P.S: If your question is really "how do i evaluate tag arguments that are really ognl expressions, then TagUtils.getStack() is probably what you're looking for: http://struts.