资源简介

struts2期刊稿件管理系统源码与数据库

资源截图

代码片段和文件信息


package com.manuscript.component.bisiness.struts.action;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.manuscript.component.bisiness.struts.model.service.ComponentService;
import com.manuscript.component.bisiness.struts.vo.ComponentVo;
import com.manuscript.contributors.bisiness.struts.vo.AttachmentVo;
import com.manuscript.contributors.bisiness.struts.vo.PageVo;
import com.manuscript.manager.bisiness.struts.vo.SearchVo;

/** 
 * XDoclet definition:
 * @struts.action parameter=“method“ validate=“true“
 */
public class ComponentAction extends DispatchAction {



@Override
protected ActionForward unspecified(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {

return listEdit(mapping form request response);
}
/** 
 * Method execute
 * @param mapping
 * @param form
 * @param request
 * @param response
 * @return ActionForward
 */
public ActionForward saveAdd(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
ComponentService cs = new  ComponentService();
ComponentVo cvo = new ComponentVo();

try {
BeanUtils.copyProperties(cvo form);
cs.saveAddComponentVo(cvo);
} catch (IllegalAccessException e) {

e.printStackTrace();
} catch (InvocationTargetException e) {

e.printStackTrace();
}
return mapping.findForward(“Actionlist“);
}


public ActionForward listEdit(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response) {
ComponentService cs = new  ComponentService();
ComponentVo cvo = new ComponentVo();
 PageVo pagevo =new PageVo(request5);
 pagevo.setSubmitURI(“/attachment.do?“);
 try {
BeanUtils.copyProperties(cvo form);
cs.saveAddComponentVo(cvo);
} catch (Exception e) {

e.printStackTrace();
}

 
String searchCount=request.getParameter(“search_count“);
String searchName=request.getParameter(“search_name“);
SearchVo searchvo= new SearchVo();
if(searchCount!=null&&!““.equals(searchCount)){
searchvo.setSearchCount(searchCount);
}
if(searchName!=null&&!““.equals(searchName)){
searchvo.setSearchName(searchName);
}
List attachmentlist = cs.findAttachment(pagevosearchvo);
request.setAttribute(“attachmentlist“ attachmentlist);
request.setAttribute(“pagevo“ pagevo);
return mapping.findForward(“addmanu“);
}

public ActionForward allUpdate(ActionMapping mapping ActionForm form
HttpServletRequest request

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

     文件        114  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\ApplicationResources.properties

     文件       6469  2009-05-31 09:44  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\action\ComponentAction.java

     文件       1851  2009-05-28 14:27  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\form\ComponentForm.java

     文件      10362  2009-05-31 10:06  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\model\dao\ComponentDAO.java

     文件       2206  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\model\service\ComponentService.java

     文件       2053  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\model\util\DBConnection.java

     文件       1343  2009-05-19 08:46  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\component\bisiness\struts\vo\ComponentVo.java

     文件       8262  2009-05-16 12:50  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\action\AttachmentAction.java

     文件       2219  2009-05-13 09:51  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\action\DownloadAction.java

     文件       1787  2009-05-16 13:27  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\form\AttachmentForm.java

     文件       8307  2009-05-16 13:23  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\model\dao\AttachmentDAO.java

     文件       2824  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\model\service\AttachmentService.java

     文件       1786  2009-05-16 13:17  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\model\util\DBConnection.java

     文件       2041  2009-05-31 08:49  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\vo\AttachmentVo.java

     文件       1788  2009-05-31 08:54  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\contributors\bisiness\struts\vo\PageVo.java

     文件       1678  2009-05-20 14:14  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\action\LoginAction.java

     文件       1906  2009-05-15 14:00  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\filter\EncodingFilter.java

     文件       1523  2009-05-28 14:28  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\form\LoginForm.java

     文件       8939  2009-05-31 08:55  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\model\dao\LoginVoDAO.java

     文件       2147  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\model\service\LoginVoService.java

     文件       1843  2009-05-31 08:57  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\model\util\DBConnection.java

     文件        607  2009-05-16 13:35  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\login\bisiness\struts\vo\LoginVo.java

     文件       6649  2009-05-31 09:27  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\action\ManagementAction.java

     文件       2203  2009-05-19 13:38  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\form\ManagementForm.java

     文件       4790  2009-05-21 08:50  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\method\dao\ManagementDAO.java

     文件       1742  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\method\service\ManagementService.java

     文件       2091  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\method\util\DBConnection.java

     文件       1943  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\vo\ManagementVo.java

     文件       1713  2009-05-13 09:48  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\management\bisiness\struts\vo\PageVo.java

     文件       4136  2009-05-21 09:25  struts2期刊稿件管理系统\ManuscriptManager\src\com\manuscript\manager\bisiness\struts\action\ManagerAction.java

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

评论

共有 条评论