I've noticed in the struts examples that the form beans are removed even if the
scope is set to "request".

Is this really necessary?  This happens in the LogonAction, SaveRegistrationAction, 
and SaveSubscriptionAction as below:

...
        // Remove the obsolete form bean
 if (mapping.getAttribute() != null) {
            if ("request".equals(mapping.getScope()))
                request.removeAttribute(mapping.getAttribute());
            else
                session.removeAttribute(mapping.getAttribute());
        }
...

I can understand that this would be needed for "session" scope but why do it for
the request if a new one is created with each http request?

-Hai



---------------------------------
Do You Yahoo!?
Send your FREE holiday greetings online at Yahoo! Greetings.

Reply via email to