struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Alfors" <peter.alf...@hksystems.com>
Subject Re: Can I pass some dynamic parameter via Action class?
Date Tue, 10 Oct 2000 13:04:43 GMT
Hello Jung,

This is one method to add a query string to your action forward.

  public ActionForward perform(ActionMapping pMapping,
                                ActionForm pForm,
                                HttpServletRequest pRequest,
                                HttpServletResponse pResponse)
     throws IOException, ServletException
  {

            ... <action class code> ...

            ActionForward actionForward = new ActionForward();

actionForward.setPath(pMapping.findForward("success").getPath() +
"?key1=" + value1);
            return actionForward;
  }

However, there may be a better method out there.

Pete


Mime
View raw message