You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by wo_shi_ni_ba_ba <wo...@yahoo.com> on 2005/03/09 01:32:56 UTC

problem with automation of struts html code

Hi folks,
In my webapplications there are many html page with
the similar look and structure. I am trying to factor
out them.  So I created utility functions to print out
html code to the jspWriter.  But I am not able to
incorporate struts tags into these functions because
they will just be printed without being rendered
through the struts engine.
So if I print <struts:radio .../> it will come out
like <struts:radio.../> without any change.   
On the other hand if I don't incorporate struts tags
into my utility functions and use just plain html
code, I don't get to take the full advantage of struts
tags.
How do I get around this problem?
thanks



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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


RE: problem with automation of struts html code

Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Wo_Shi(etc.),

If all you want to do is apply a style (or two) of template(s) to your
JSP's, take a look at SiteMesh instead of Tiles.  I recommend SiteMesh over
tiles if you only want to "wrap" your pages in one or two templates.  For
anything more complex, I would suggest Tiles with TilesActions and/or
TilesControllers.

You can find SiteMesh on OpenSymphony.com at:
http://www.opensymphony.com/sitemesh

Regards,
David

-----Original Message-----
From: Max Cooper [mailto:max@maxcooper.com]
Subject: Re: problem with automation of struts html code

Don't write your own page templating system. Use Tiles instead.
-Max

On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba wrote:
> Hi folks,
> In my webapplications there are many html page with
> the similar look and structure. I am trying to factor


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


Re: problem with automation of struts html code

Posted by Max Cooper <ma...@maxcooper.com>.
Don't write your own page templating system. Use Tiles instead.

-Max

On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba wrote:
> Hi folks,
> In my webapplications there are many html page with
> the similar look and structure. I am trying to factor
> out them.  So I created utility functions to print out
> html code to the jspWriter.  But I am not able to
> incorporate struts tags into these functions because
> they will just be printed without being rendered
> through the struts engine.
> So if I print <struts:radio .../> it will come out
> like <struts:radio.../> without any change.   
> On the other hand if I don't incorporate struts tags
> into my utility functions and use just plain html
> code, I don't get to take the full advantage of struts
> tags.
> How do I get around this problem?
> thanks
> 
> 
> 
> 	
> 		
> __________________________________ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 
> ---------------------------------------------------------------------
> 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