Locale locale = getLocale(request);
        MessageResources messages = getResources(request);        // Validate the request parameters specified by the user
        ActionErrors errors = new ActionErrors();
        String username = (String) PropertyUtils.getSimpleProperty(form, "username");
        String password = (String) PropertyUtils.getSimpleProperty(form, "password");///
        if (mapping.getAttribute() != null) {
            if ("request".equals(mapping.getScope()))
                request.removeAttribute(mapping.getAttribute());
            else
                session.removeAttribute(mapping.getAttribute());
        }
就这几句 分可以再开贴加

解决方案 »

  1.   

    Locale locale = getLocale(request);
            MessageResources messages = getResources(request);
    取出本地化消息        // Validate the request parameters specified by the user
            ActionErrors errors = new ActionErrors();
            String username = (String) PropertyUtils.getSimpleProperty(form, "username");
            String password = (String) PropertyUtils.getSimpleProperty(form, "password");
    验证输入参数///
            if (mapping.getAttribute() != null) {
                if ("request".equals(mapping.getScope()))
                    request.removeAttribute(mapping.getAttribute());
                else
                    session.removeAttribute(mapping.getAttribute());
            }
    转向这么简单的代码都看不懂,也不羞的?
      

  2.   

    看了你的解释跟没看一样 我当然知道是
    取出本地化消息 验证输入参数 转向
    我是想问比如:if (mapping.getAttribute() != null) {
                if ("request".equals(mapping.getScope()))
                    request.removeAttribute(mapping.getAttribute());
                else
                    session.removeAttribute(mapping.getAttribute());这几句判断具体干什么的,这几句是转向吗,我希望你看清楚点再说,
      

  3.   

    Locale locale = getLocale(request);
            MessageResources messages = getResources(request);
    取出本地化消息        // Validate the request parameters specified by the user
            ActionErrors errors = new ActionErrors();
            String username = (String) PropertyUtils.getSimpleProperty(form, "username");
            String password = (String) PropertyUtils.getSimpleProperty(form, "password");
    验证输入参数///
            if (mapping.getAttribute() != null) {
                if ("request".equals(mapping.getScope()))
                    request.removeAttribute(mapping.getAttribute());
                else
                    session.removeAttribute(mapping.getAttribute());
            }
    转向