never mind - found the redirect attribute.

Although I still have the question:
Also, for a multi-page form - do I want each page to have a different url in the 
browser? Or just one that runs everything? Life is easier from a programming point of 
view if each page has it's own action and form.

thanks - dave

  ----- Original Message ----- 
  From: David Thielen 
  To: Struts-Users 
  Sent: Tuesday, August 12, 2003 9:05 PM
  Subject: action forward -> redirect


  Hi;

  I have action forwards in my action mapping as such:
  <action-mappings>
    <action    path="/OrderSubmit"
      type="net.windward.store.OrderAction"
      name="orderForm"
      validate="true"
      input="/order.jsp">
     <forward name="success" path="/terms.jsp"/>
     <forward name="failure" path="/order.jsp"/>
    </action>
   </action-mappings>

  So on a success it forwards to /terms.jsp. However, the browser url is still 
OrderSubmit.do. This is what a forward is supposed to do.

  But what if I want the browser to now show /terms.jsp? Is there some way to do an 
action redirect without another jsp to have a redirect in it?

  Also, for a multi-page form - do I want each page to have a different url in the 
browser? Or just one that runs everything? Life is easier from a programming point of 
view if each page has it's own action and form.

  thanks - dave

Reply via email to