Hi!
I have this strange problem in a sample
struts application i am doing. What is happening is that when i redirect the result to index page it is getting appended to the url.
e.g if my url is as follows:
http://localhost:8080/TestApp/mytest/authenticateUser.action this will get me to a
jsp page where i have a logout link.
On click of this link i need to go back to index page.
When i click on logout it is redirecting me to index.jsp but the
URL is getting malformed as shown below
http://localhost:8080/TestApp/mytest/mytest/login.action this extra mytest is getting appended.
My xml is as follows.
<action name="logout" method="logout" class="com.test.TestAction">
<result name="success">/index.jsp</result>
</action>
Inside TestAction
public class TestAction ....
{
..........
..........
public
String logout()
{
//code to invalid session n other stuff
return SUCCESS;
}
}
Any pointers as to why this is happening?
Thanks,
Rohit