You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by David Graham <gr...@yahoo.com> on 2003/07/26 20:32:57 UTC
New TagUtils class
Yesterday I committed a new TagUtils class for all tag related methods
from RequestUtils to be moved into. Rob has helped out with the movement
and wrote this in one message:
"Overall we may need a glue class, instead of calling this a tagutil since
other display technologies other than JSP might be able to make use of
this library."
I considered naming the class JspUtils or ViewUtils but chose TagUtils
because I didn't think it would be called from a JSP and other view
technologies wouldn't necessarily need these methods. What does everyone
think about this? Now is the time to change the name before 1.2 comes
out.
Thanks,
David
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org
Re: New TagUtils class
Posted by Ted Husted <hu...@apache.org>.
I think TagUtils is fine. As you pointed out, David, it emphasizes that
these utilities are meant to be called from taglibs, rather than the
JavaServer Page itself.
As for other view technologies, I'd say that the utilities are provided
to help view technologies create dynamic * HTML * tags by whatever means
desired. In JSP, the technology used is "taglibs". In Velocity, the
technology used is "tools", but in the end we are all writing HTML tags.
-Ted.
David Graham wrote:
> Yesterday I committed a new TagUtils class for all tag related methods
> from RequestUtils to be moved into. Rob has helped out with the movement
> and wrote this in one message:
>
> "Overall we may need a glue class, instead of calling this a tagutil since
> other display technologies other than JSP might be able to make use of
> this library."
>
> I considered naming the class JspUtils or ViewUtils but chose TagUtils
> because I didn't think it would be called from a JSP and other view
> technologies wouldn't necessarily need these methods. What does everyone
> think about this? Now is the time to change the name before 1.2 comes
> out.
>
> Thanks,
> David
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>
>
--
Ted Husted,
Junit in Action - <http://www.manning.com/massol/>,
Struts in Action - <http://husted.com/struts/book.html>,
JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org
Re: New TagUtils class
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Sat, 26 Jul 2003, David Graham wrote:
> Date: Sat, 26 Jul 2003 11:32:57 -0700 (PDT)
> From: David Graham <gr...@yahoo.com>
> Reply-To: Struts Developers List <st...@jakarta.apache.org>,
> dgraham@apache.org
> To: struts-dev@jakarta.apache.org
> Subject: New TagUtils class
>
> Yesterday I committed a new TagUtils class for all tag related methods
> from RequestUtils to be moved into. Rob has helped out with the movement
> and wrote this in one message:
>
> "Overall we may need a glue class, instead of calling this a tagutil since
> other display technologies other than JSP might be able to make use of
> this library."
>
> I considered naming the class JspUtils or ViewUtils but chose TagUtils
> because I didn't think it would be called from a JSP and other view
> technologies wouldn't necessarily need these methods. What does everyone
> think about this? Now is the time to change the name before 1.2 comes
> out.
>
So far, it looks like all of the APIs we are migrating require JSP APIs
(for things like PageContext), so ViewUtils might be a little too broad.
I mildly favor JspUtils over TagUtils, because view technologies that use
JSP but not our existing tags -- everything from JSTL's XML tags to
JavaServer Faces component tags -- will still find these methods useful.
This naming would also let us decide to formally support any other view
technology we chose to with a FooUtils adapter class that exposes Struts
concepts to that view technology. (And, when we refactor the build
process, we can make the compilation of these adapters conditional on
whether the corresponding view technology API classes are available.)
> Thanks,
> David
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org