The following comment has been added to this issue:

     Author: Cameron Braid
    Created: Wed, 27 Aug 2003 2:06 AM
       Body:
the current implementation doesn't take into account the existing namespace.


i.e.

<package name="supplier.depot" namespace="/supplier/depot" extends="supplier">

<action name="SaveDepot">
   <result name="success" type="redirect">
      <param name="location">ReadDepot.action?id=${id}</param>
   </result>
</action>

<action name="SaveDepot2">
   <result name="success" type="redirect">
      <param name="location">/Done.action</param>
   </result>

</action>

</package>

I would expect that SaveDepot woult cause : 
response.sendRedirect("/supplier/depot/ReadDepot.action?id=XX")

would be sent. 


However to allow the request.getContextPath() to be taken into consideration, makes 
this a little trickier.

Do we treat all redirect locations as context relative, and allow a new parameter to 
say contextRelative = false.

Therefore if the above app is deployed into /myApp the url would be

SaveDepot :
  /myApp/supplier/depot/ReadDepot.action?id=XX
SaveDepot2 :
  /myApp/Done.action

when using contextRelative=false

SaveDepot :
  /myApp/supplier/depot/ReadDepot.action?id=XX
SaveDepot2 :
  /Done.action

??


---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-159


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WW-159
    Summary: ServletRedirectResult should be aware of context paths
       Type: New Feature

     Status: Assigned
   Priority: Major

    Project: WebWork
   Fix Fors:
             2.1
   Versions:
             2.1
             2.0
             2.0-beta1

   Assignee: Patrick Lightbody
   Reporter: Patrick Lightbody

    Created: Wed, 23 Apr 2003 3:17 PM
    Updated: Sun, 20 Jul 2003 8:43 PM

Description:
when doing redirects, the context path should (optionally) be taken in to account.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to