日期:2014-05-19 浏览次数:20914 次
http://localhost:8080/SportSys/team/findByUserId.action?id=61
public String saveTeam() throws Exception {
        try {
            this.teamService.saveTeam(team);
        } catch (Exception e) {
            e.printStackTrace();
            this.addFieldError("addError", "组别名称不允许重复!");
            System.out.println(this.getFieldErrors().get("addError"));
            return INPUT;
        }
        return SUCCESS;
    }
<action name="teamAddBy" class="teamAction" method="saveTeam">
            <result name="success" type="redirect">findByUserId.action</result>
            <result name="input">/web/team/addError.jsp</result>
        </action>