http://struts.apache.org/1.x/struts-tiles/ is your answer.... 

Regards
Guru
 

-----Original Message-----
From: Ståle Undheim [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2007 13:55
To: user@struts.apache.org
Subject: Common header and footer html

Currently, all my jsp pages are structured like this:
* identical html header and <body> tag ...
* page specific content
* identical trail of </body> and </html>

Instead of copying this for every file, I would like to have 1 common
outer wrapper file, that includes a jsp based on the action or
something.

I have been looking at the tiles plugin, but I couldn't make out
enough from the documentation to see how I could use it.

My ideal solution would be something like having a layout.jsp that
looks like this:
<DOCTYPE>
<html>
<head></head>
<body>
<% include jsp based on ActionName or an annotation, or that I can set
with an interceptor of sorts. %>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to