In the Struts example, the class LogonAction has the following code
(probably written by Craig McClanahan):

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

Should we remove the form bean all the time in general or only in this
particular case where the user only logs in once?  Are there any guiding
principle?

Thank you for your response.

Thinh

Reply via email to