On 11/17/2003 02:31 PM Susan Bradeen wrote:
I have been using the following for returning the user to their intended
URL after a login, and have had good luck with it ...

----- In the Base Action class -----
if (someCheckFor.loggedInUser() == null) {
  StringBuffer goToPath = new StringBuffer(request.getServletPath());
  if (request.getQueryString() != null) {
    goToPath.append("?" + request.getQueryString()); }
  request.setAttribute("userPath", goToPath.toString());
  return mapping.findForward("login");
}

Susan,
what about HTTP-put, where there are request parameters that are not in the query string?



Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to