From: <[EMAIL PROTECTED]>
> I have extended the RequestProcessor's processPreprocess() method
> in order to perform a simple user authentication mechanism using
> cookies. If a cookie identifying a user is found, but the users member-
> ship has expired, I would like him to be forwarded/redirected
request.getRequestProcessor() --> request.getRequestDispatcher()
On 7/14/05, Jeff Beal <[EMAIL PROTECTED]> wrote:
> Calling just request.getRequestProcessor() effectively exits the
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Calling just request.getRequestProcessor() effectively exits the
Struts environment since the request object doesn't know anything
about struts_config.xml. You need to use the method and fields of the
RequestProcessor instead.
Try this:
ActionForward expireForward = moduleConfig.findForwardConfi
().startsWith("common_"))
{
getServletContext().getContext("/thinClient/common.do").getRequestDispatcher("/common.do").forward(request,response);
return;
}
Scott
From: [EMAIL PROTECTED]
Sent: Thu 7/14/2005 10:37 AM
To: user@struts.apache.org
Subject: Forwarding in cu
Hi!
I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
corresponding error page
5 matches
Mail list logo