You can check tabletags as an example of creating a plugin with tags:
http://code.google.com/p/tabletags/ regards musachy On 4/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Telmo Costa wrote: > I've been searching for documentation on how to > create a custom tag for struts2, but I haven't > succeed. Can you tell me where to find a tutorial or > give me some guidelines on that subject? They're just like any other custom tags. Are you referring specifically about how to pull OGNL values like the S2 tags do? I'd probably start by looking at the source of org.apache.struts2.components.Date, since it does what you want (but for dates :) I'm guessing if you extend Component you're a *long* way through the process already; getting the value appears to be as easy as calling findValue(valueName) and doing what you need to with it. That's a good idea for a quick tutorial though; if I have time I'll add something tonight. d. ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd