examOnline/src/com/action/SubjectPaticularAction.java
(完整代码) 847Bpackage com.action;
import org.apache.struts2.ServletActionContext;
import com.entity.Subject;
import com.opensymphony.xwork2.ActionSupport;
import com.service.SubjectService;
import com.service.SubjectServiceImpl;
/**
* 查看试题的详细信息
* @author Administrator
*
*/
public class SubjectPaticularAction extends ActionSupport{
/**
*
*/
private static final long serialVersionUID = 1L;
private int stId;
private SubjectService subjectService = new SubjectServiceImpl();
public int getStId() {
return stId;
}
public void setStId(int stId) {
this.stId = stId;
}
@SuppressWarnings("static-access")
@Override
public String execute() throws Exception {
Subject subject = subjectService.showSubjectDetail(stId);
ServletActionContext.getRequest().setAttribute("subject", subject);
return this.SUCCESS;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。