You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fernandes Celinio SGCF <Ce...@socgen.com> on 2009/01/02 15:05:04 UTC
RE: component vs s:include
Hi,
To answer your question I am quoting the book "Practical Apache Struts 2 Web 2.0 Projects" by Ian Roughley :
Using the component tag is similar to using an include tag of either the Struts 2 or JSP variety. The difference is conceptual, in that the component tag is meant to be a user interface widget rather than already preformatted text. As such, it includes the Struts 2-specific theme attribute, as well as the JavaScript event attributes, CSS attributes, and HTML attributes found on the other Struts 2 tags.
Celinio Fernandes
-----Message d'origine-----
De : François Rouxel [mailto:rouxelec@yahoo.com]
Envoyé : mercredi 31 décembre 2008 23:04
À : Struts Users Mailing List
Objet : s:component vs s:include
Struts 2.x
Can anybody tell me the difference between s:component and s:include ?
thanks a lot
happy new year
fr
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re : component vs s:include
Posted by François Rouxel <ro...@yahoo.com>.
Thanks for the answer.
I think I catch the idea
fr/
____________________________________________ ____________________________________________
----- Message d'origine ----
De : Fernandes Celinio SGCF <Ce...@socgen.com>
À : Struts Users Mailing List <us...@struts.apache.org>
Envoyé le : Vendredi, 2 Janvier 2009, 9h05mn 04s
Objet : RE: component vs s:include
Hi,
To answer your question I am quoting the book "Practical Apache Struts 2 Web 2.0 Projects" by Ian Roughley :
Using the component tag is similar to using an include tag of either the Struts 2 or JSP variety. The difference is conceptual, in that the component tag is meant to be a user interface widget rather than already preformatted text. As such, it includes the Struts 2-specific theme attribute, as well as the JavaScript event attributes, CSS attributes, and HTML attributes found on the other Struts 2 tags.
Celinio Fernandes
-----Message d'origine-----
De : François Rouxel [mailto:rouxelec@yahoo.com]
Envoyé : mercredi 31 décembre 2008 23:04
À : Struts Users Mailing List
Objet : s:component vs s:include
Struts 2.x
Can anybody tell me the difference between s:component and s:include ?
thanks a lot
happy new year
fr
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org