Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 action adds folder path to url

 
Ramesh kangamuthu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Struts2 action i invoked loginAction_check.action and it generates the

url - /myapp/jsp/common/loginAction_check.action .


but i need only /myapp/loginAction_check.action. I think that it prepends the result jsp file path /jsp/common to the url.

How can I remove /jsp/common after /myapp in the url?







 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing how you're generating the URL it's impossible to help.
 
Ramesh kangamuthu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to execute Struts2 action and I followed it this project. But I want to know whether Struts2 specifies an action in the url exactly after the context root , ie App name, or not.

Only for the first time it adds jsp/common after the action. For subsequent requests the url comes as /AppName/actionName

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic