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