jQuery in Action, 3rd edition
The moose likes Struts and the fly likes Struts templates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts templates" Watch "Struts templates" New topic

Struts templates

Arch Tiwari

Joined: Feb 07, 2003
Posts: 6
I am using struts templates. Say I have a header, content and footer templates.
At runtime I would like to pick up a .doc (based on a param) and display within the content area. Is this possible?
I am looking to display the doc as we would using HTML frames.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Remember, templates are exactly that: a template.
To vary content, pass the parameter to a different .jsp file that inserts the template (through the template:insert tag) and passes the values to the template.
The .jsp file can do whatever it wants with parameters before it's used by the template tags.
[ March 05, 2004: Message edited by: David Yutzy ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts templates
It's not a secret anymore!