File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts templates" Watch "Struts templates" New topic
Author

Struts templates

Arch Tiwari
Greenhorn

Joined: Feb 07, 2003
Posts: 6
Hi,
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