struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <hus...@apache.org>
Subject Re: [S2] Struts tags for generating <html>, <head> and <body>
Date Fri, 24 Aug 2007 12:49:11 GMT
Another good use for head or body tags might be to generate a JavaScript hook.

A head tag could also inject the doctype redtape, that we might
otherwise paste into every page.

On 8/24/07, Nils-Helge Garli <nilsga@gmail.com> wrote:
> It would be nice having struts tags that generate the <html>, <head>
> and <body> sections of the HTML page. These tags could have support
> for different "renderers", as the url and form tags have, that could
> be overriden in plugins like the portlet plugin. So when the tag runs
> in a regular servlet container, the tags creates regular <html>,
> <head> and <body> tags, but when it runs in a portlet container, it
> could be overriden to skip rendering, since portlets should only
> generate page fragments.
>
> This would make it easier to migrate webapps to portlet apps, since
> you no longer need to remove content from your JSPs, and also make it
> easier if you want a Struts 2 application to be able to run in both a
> servlet container and a portlet container.
>
> Do you think this would be useful, or is it just unnecessary overhead?
> Should we for instance  write guidelines/tutorials on how to use
> SiteMesh for this purpose instead?
>
> Nils-H

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


Mime
View raw message