Incorrect success forward path is set for all the users:
I have this in struts config:
<action path="/abc" type="com.actionclass">
<forward name="success" path="/jsp/user/abc.jsp" />
</action>
In my action class, I changed the "success" forward path to "www.google.com", if the user satisfies some criteria and then he is getting redirected there.
Although, once any user satisfies this criteria, all the subsequent users are getting redirected to "www.google.com", whether they satisfy the criteria or not, because we are using the same mapping name as "success".
May i know the reason for that? Why the path from struts config is not getting picked as "abc.jsp" for the other users?
P.S : If i restart the server, then again it works fine till any user satisfies the criteria and "www.google.com" is set.
Edit: My action is a logout action, and it has the feature the logout users to different urls of their organization, basically once they logout from our app, this class will redirect them to their organization's page, so its a dynamic url coming from database. Although i know its not the correct way but i want to understand the concept here more than the problem's solution.