title: Incorrect success forward path in struts 1.2
body: <p>Incorrect success forward path is set for all the users:</p>
  
  <p>I have this in struts config: </p>
  
  <pre><code>&lt;action path="/abc" type="com.actionclass"&gt;
    &lt;forward name="success" path="/jsp/user/abc.jsp" /&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>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".</p>
  
  <p>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>
  
  <p>P.S : If i restart the server, then again it works fine till any user satisfies the criteria and "www.google.com" is set.</p>
  
  <p>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.</p>