You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2008/05/06 21:15:53 UTC

Re: [struts] Struts Taglib

Michael Gagnon wrote:
> I've added a custom taglib in my project

> I would like to use struts URL tags in this. Ideally my tag handler would
> generate s:url and s:a tags that could then be processed by struts. I don't
> see a way to do this though

A tag is a Java object.  You can always instantiate 
org.apache.struts2.views.jsp.URLTag in your custom tag, set the 
appropriate attributes (don't forget to setJspContext()), and call 
doTag() on it.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org