on 5/29/02 3:36 AM, Reinhard N�gele at [EMAIL PROTECTED] wrote:
>> session.setAttribute(REDIRECT_KEY, mapping);
>> return mapping.findForward("login");
>>
>>
>> In your login action, check if a mapping is in the session and go there:
>>
>> ActionMapping redirectMapping =
>> (ActionMapping) session.getAttribute(REDIRECT_KEY);
>> if (redirectMapping != null) {
>> session.removeAttribute(REDIRECT_KEY);
>> return new ActionForward(redirectMapping.getInput());
>> }
>
> Thank you. In retrospect, this is so incredibly obvious (storing the actual
> mapping object), I'm embarrassed to have had to ask it. Thank you very much.
Perhaps I spoke too soon. getInput() returns a null value when I type an URL
directly, and getPath() returns the path without the necessary adornments
(*.do). How can I get Struts to give me the right thing (or do the right
thing given a simple path)?
TIA,
--
Rick
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>