Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to include struts action in jsp

 
sridhar gandikota
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to include the struts action in JSP include tag?
 
sridhar gandikota
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in other words,how to include struts action in <jsp:include ...
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never tried it before, but did you try just including the ".do" suffix with the action path? Example:

If that doesn't work, I doubt that it's possible to call an action from a jsp:include.
 
sridhar gandikota
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know the equivalent <JSP:include.. in struts2 framework.I tried with
<jsp:include page="/myaction.action" it didn't work
 
James Jithin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to do this and has found this works fine

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic