my dog learned polymorphism*
The moose likes Struts and the fly likes Regarding Jsp Include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regarding Jsp Include" Watch "Regarding Jsp Include" New topic
Author

Regarding Jsp Include

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30

Hi,
I have the requirement that i have to include the file contents from the action path of the struts... is it possible..

<jsp: include page=".......action path "/>

This is not working.

Please let me know if any other solution is there.. thanks
Regards,
Kiran
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

For what that "action path" is mapped to? And you may need to explain little more about your settings/things involved etc..


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Punit Singh
Ranch Hand

Joined: Oct 16, 2008
Posts: 952
sarma kiran wrote:
Hi,
I have the requirement that i have to include the file contents from the action path of the struts... is it possible..

<jsp: include page=".......action path "/>

This is not working.

Please let me know if any other solution is there.. thanks
Regards,
Kiran


You have to modify your action mapping, change its type to include action
<action path=”/actionpath” parameter="/whatever" type=”org.apache.struts.actions.IncludeAction” />

http://www.java-samples.com/showtutorial.php?tutorialid=580


SCJP 6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Jsp Include
 
Similar Threads
Getting 404 when trying to submit my form
page directive
jsp include file problem
Action Mapping and relative path
declarative validation of wizard pages