struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: Need to modify the URL path of the forward dynamically
Date Mon, 09 Feb 2004 08:36:57 GMT
Need to modify the URL path of the forward dynamicallyGet the Forward
instance as usual. Obtain its url string using getPath(). Add your
additional parameter to end of string and create a new ActionForward
instance that uses the decorated path (and copies the redirect property from
the original action forward), and return this new actionforward instance.
  -----Original Message-----
  From: Swaminathan Rajagopalan [mailto:RSwami@infosys.com]
  Sent: Monday, 9 February 2004 16:34
  To: struts-dev@jakarta.apache.org; struts-user@jakarta.apache.org
  Cc: Kamal_Poddar
  Subject: Need to modify the URL path of the forward dynamically


  Hi,

  We have a URL in the path attribute of a forward for an action. We need to
dynamically append some request variables to this URL in the action class,
for they are available only at execution time. How can this be achieved?

  E.g
   <action    path="/additionalAccountInfoScreen"

type="xxx.yyy.zzz.web.control.action.AdditionalAccountInfoScreenAction"
                 name="additionalAccountInfoForm"
                 validate="false"
                 input="previousPage"
                 parameter="populateStmt"
                 scope="session">
          <forward name="url"              path="http://www.xyz.com/checks/"

  To the URL path here e.g http://www.xyz.com/checks we need to add
accessId=xxx at run time in the action
class(http://www.xyz.com/checks?accessId=xxx).

  Please let us know how this can be done?

  Regards,
  Swaminathan Rajagopalan,
  Ph : (8520261) Extn: 55955
  Mail : rswami@infosys.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message