This is what I use...

<logic:present ...>
    -- main body here --
</logic:present>
<logic:notPresent name=...>
<logic:redirect ...>
</logic:notPresent>

Now if you're talking about the person filled out the form (or
whatever) and then let the session expire..  The first thing I would
check in the Validate Method would be to see if the session attribute
I put there when logging in was actually there. As for the NPE, I
debug based on trial and error sometimes and since I don't have your
full logic flow I can't give you a for certain answer, just
suggestions.


if ( request.getAttribute(" ") == null) //not sure what getAttribute
returns if nothing is there.
{
    mapping.findForward("expired");
}


Hope this helps,


Andrew

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

Reply via email to