package com.huaao.news.action.service;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import com.huaao.news.bean.Comments;
import com.huaao.news.service.ICommentsService;
public class CommentsAction {
private Comments comments;
private ICommentsService commentsService;
private List<Comments> list;
public String select(){
list = commentsService.selectAll();
ServletActionContext.getRequest().getSession().setAttribute("commentsList", list);
return "comments";
}
public Comments getComments() {
return comments;
}
public void setComments(Comments comments) {
this.comments = comments;
}
public ICommentsService getCommentsService() {
return commentsService;
}
public void setCommentsService(ICommentsService commentsService) {
this.commentsService = commentsService;
}
}
最近下载更多
最近浏览更多
2022102154 LV1
3月27日
wjs-zuizui
2024年10月19日
暂无贡献等级
anjuw521 LV1
2024年7月9日
wwwqwq
2024年6月21日
暂无贡献等级
1941549176 LV4
2024年6月4日
微信网友_6909455156350976 LV2
2024年3月16日
666ing LV2
2023年12月27日
微笑刺客 LV21
2023年12月12日
LITIANYU084414 LV11
2023年11月28日
hhhhhz LV7
2023年11月14日

