摘要: action代码片段public String execute() { String ret = super.execute(); if (RETURN_LIST.equals(ret)) { return list(); } else { return ret; } } public String list() { String show = this.getRequest().getParameter("show"); if ("show".equal... 阅读全文
posted @ 2013-09-25 11:40 临海看云 阅读(388) 评论(0) 推荐(0) 编辑
摘要: Action中的代码片段private String epid;//全局变量 得到的是一个以逗号分隔的字符串 public String getEpid() { return epid;}public void setEpid(String epid) { this.epid = epid;}public String edit() { try { if ("save".equals(save)) {//点击保存按钮的时候执行 return save(); } else { ... 阅读全文
posted @ 2013-09-25 11:32 临海看云 阅读(292) 评论(0) 推荐(0) 编辑