Try out Sitemesh... It does this kind of thing seamlessly without having
to put the includes in your page...

> -----Original Message-----
> From: Anoop Ranganath [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 18, 2003 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] velocity, layouts, and flow
> 
> 
> I'm beginning work on my velocity templates for my ww2 app, and I'm 
> having a bit of an issue.  Ideally, I'd have a template that contains 
> my header and footer, and then a token that inserts the appropriate 
> screen into it.
> 
> In my xwork.xml, I would have a result that points to screen1.vm, and 
> screen would be inserted into my layout.
> 
> As it stands, it looks like I will have to include the header at the 
> top of everyone of my screens and include the footer at the 
> bottom.  My 
> other option would be have one velocity template that takes a 
> parameter 
> which is the screenname, and then icnludes that.  that'd be 
> pretty ugly 
> also, in that I can't just make the result the destination screen.
> 
> Any ideas on the best way to skin this cat?
> 
> Anoop
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to