This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes How to correct the actoin mapping path? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How to correct the actoin mapping path?" Watch "How to correct the actoin mapping path?" New topic
Author

How to correct the actoin mapping path?

Guos Hu
Greenhorn

Joined: Jan 28, 2002
Posts: 9
I am using Struts. When I use "<a href='/someaction.do'" in a hyper links, the url in IE address displays "http://localhost/someaction.do", and I was redirected to the right page correctly (that is localhost/myapps/jsp/somepage.jsp. In struts-config.xml file, forwarding path="/myapps/jsp/somepage.jsp")
But when I use it in html form, "<html:form action="/someaction.do">, the url in IE address became "http://localhost/myapps/someaction.do", the correct one should be "http://localhost/someaction.do", and so it is impossible to get a correct redirect.
Why "/myapps" is added before "/someaction.do"? How to correct it?
Thanks
Guos Hu
Greenhorn

Joined: Jan 28, 2002
Posts: 9
I have fixed it!
Jochen Maes
Greenhorn

Joined: Dec 03, 2002
Posts: 20
how did you fix it?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to correct the actoin mapping path?
 
Similar Threads
ipaddress Vs localhost
How to access web pages on internet using tomcat or other webserver?
Struts and jsp pages behind WEB-INF
how to see application on tomcat
URL in a IFRAME