Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Jsp Include

 
sarma kiran
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For what that "action path" is mapped to? And you may need to explain little more about your settings/things involved etc..
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic