src/com/dream/action/RespoActionM.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.dream.action;
import java.net.URLDecoder;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.dream.bean.Respo;
import com.dream.service.RespoService;
import com.dream.util.SiteUrl;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
@Controller
@Scope(value = "prototype")
public class RespoActionM extends ActionSupport implements ModelDriven<Respo> {
private Respo respo = new Respo();
@Resource(name = "respoServiceImpl")
private RespoService respoService;
private Long[] ids;
/**
* 判断用户是否存在
*
* @return
* @throws Exception
*/
public String isexits() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
String name = URLDecoder.decode(respo.getName());
if (respoService.isexits(name)) {
// 存在
request.setAttribute("isexits", 1);
} else {
// 不存在
request.setAttribute("isexits", 0);
}
return "isexits";
}
/**
* 修改密码界面
*
* @return
* @throws Exception
*/
public String changepwdUI() throws Exception {
return SUCCESS;
}
后面还有 83 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。