• 大小: 18.87MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-08
  • 语言: 其他
  • 标签: SSH框架  毕业设计  

资源简介

基于SSH三大框架的信息管理系统的毕业设计带数据库和论文,直接导入myeclipse中运行

资源截图

代码片段和文件信息

package action;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import business.ArticleOP;
import business.ChannelOP;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class ArticleAction extends ActionSupport{
public String articleId;
public ArticleOP articleOP;
public ChannelOP channelOP;
@Override
public String execute() throws Exception {
//得到request对象
ActionContext ctx = ActionContext.getContext();        
HttpServletRequest request = 
(HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
//查询出所有栏目并放入request中
ArrayList channelArrayList=channelOP.selectChannelAll();
request.setAttribute(“channelArrayList“ channelArrayList);
//查询出文章
ArrayList articleList=articleOP.findArticleById(articleId);
if(articleList.size()!=0)
request.setAttribute(“article“articleList.get(0));
//点击次数加1
articleOP.updateArticleDots(articleId);
return SUCCESS;
}
public String getArticleId() {
return articleId;
}
public void setArticleId(String articleId) {
this.articleId = articleId;
}
public ArticleOP getArticleOP() {
return articleOP;
}
public void setArticleOP(ArticleOP articleOP) {
this.articleOP = articleOP;
}
public ChannelOP getChannelOP() {
return channelOP;
}
public void setChannelOP(ChannelOP channelOP) {
this.channelOP = channelOP;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        527  2008-05-05 13:40  ch18\.classpath

     文件        849  2008-05-05 13:40  ch18\.project

     文件        330  2008-05-05 13:40  ch18\.settings\org.eclipse.jdt.core.prefs

     文件        358  2008-05-05 13:40  ch18\.settings\org.eclipse.jst.common.project.facet.core.prefs

     文件        436  2008-05-05 13:40  ch18\.settings\org.eclipse.wst.common.component

     文件        269  2008-05-05 13:40  ch18\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件       3077  2008-05-05 20:52  ch18\build\classes\action\addArticle\AddArticleAction.class

     文件       1408  2008-05-05 20:51  ch18\build\classes\action\addArticle\AddArticleEditAction.class

     文件       2231  2008-05-05 20:49  ch18\build\classes\action\ArticleAction.class

     文件       2736  2008-05-05 20:48  ch18\build\classes\action\ChannelAction.class

     文件       2331  2008-05-05 20:47  ch18\build\classes\action\ChannelAdminAction.class

     文件       2218  2008-05-05 20:45  ch18\build\classes\action\IndexAction.class

     文件        614  2008-04-13 23:38  ch18\build\classes\action\login\LoginAction-validation.xml

     文件       2120  2008-05-05 20:00  ch18\build\classes\action\login\LoginAction.class

     文件       2209  2008-05-05 20:15  ch18\build\classes\action\modiPassword\ModiPasswordAction.class

     文件       1067  2008-05-05 20:39  ch18\build\classes\action\updateArticle\DelArticleAction.class

     文件       3830  2008-05-05 20:50  ch18\build\classes\action\updateArticle\UpdateArticleEditAction.class

     文件       3828  2008-05-05 20:50  ch18\build\classes\action\updateArticle\UpdateArticleListAction.class

     文件       2588  2008-05-05 20:15  ch18\build\classes\action\userAdmin\UserAdminAction.class

     文件       3232  2008-05-05 19:57  ch18\build\classes\business\AdminUserOP.class

     文件       5795  2008-05-05 20:23  ch18\build\classes\business\ArticleOP.class

     文件       1975  2008-05-05 20:43  ch18\build\classes\business\ChannelOP.class

     文件        952  2008-05-05 19:57  ch18\build\classes\db\DBConnection.class

     文件        871  2008-05-05 19:57  ch18\build\classes\db\SQLUtil.class

     文件       1701  2008-05-05 19:57  ch18\build\classes\hibernate\HibernateUtil.class

     文件        911  2008-05-03 06:19  ch18\build\classes\hibernate.cfg.xml

     文件       1172  2008-05-05 19:57  ch18\build\classes\POJO\AdminUser.class

     文件        790  2008-05-03 06:22  ch18\build\classes\POJO\AdminUser.hbm.xml

     文件       1931  2008-05-05 19:57  ch18\build\classes\POJO\Article.class

     文件        998  2008-05-03 09:18  ch18\build\classes\POJO\Article.hbm.xml

............此处省略158个文件信息

评论

共有 条评论