資源簡(jiǎn)介
新聞發(fā)布struts2+Hibernate 實(shí)現(xiàn)
代碼片段和文件信息
package?com.action;
import?javax.servlet.http.*;
import?org.apache.struts.action.*;
import?com.actionForm.AfficheForm;
import?org.apache.struts.actions.DispatchAction;
import?com.dao.AfficheDao;
import?com.tool.Chinese;
public?class?AfficheAction?extends?DispatchAction?{
????private?Chinese?chinese?=?new?Chinese();
????private?AfficheDao?afficheDao?=?new?AfficheDao();
//前臺(tái)操作
????public?ActionForward?forntContentAfficheAction(ActionMapping?mapping
????????????????????????????????????????????????ActionForm?form
????????????????????????????????????????????????HttpServletRequest?request
????????????????????????????????????????????????HttpServletResponse?response)?{
??request.setAttribute(“form“afficheDao.selectOneAffiche(Integer.parseInt(request.getParameter(“id“))));
return?mapping.findForward(“forntContentAfficheAction“);
????}
//后臺(tái)操作
????//刪除公告信息
????public?ActionForward?deleteAfficheAction(ActionMapping?mapping
?????????????????????????????????????????ActionForm?form
?????????????????????????????????????????HttpServletRequest?request
?????????????????????????????????????????HttpServletResponse?response)?{
????????afficheDao.deleteAffiche(Integer.parseInt(request.getParameter(“id“)));
????????????request.setAttribute(“result“?“刪除公告信息成功!!!“);
????????????return?mapping.findForward(“resultAfficheAction“);
????}
????//對(duì)公告信息的添加
????public?ActionForward?insertAfficheAction(ActionMapping?mapping
?????????????????????????????????????????????ActionForm?form
?????????????????????????????????????????????HttpServletRequest?request
?????????????????????????????????????????????HttpServletResponse?response)?{
????????AfficheForm?afficheForm?=?(AfficheForm)?form;
????????if?(afficheForm.getContent()?==?null?||
????????????afficheForm.getContent().equals(““))?{
????????????return?mapping.findForward(“insertAfficheAction“);
????????}?else?{
????????????afficheForm.setCreateTime(afficheForm.getCreateTime());
????????????afficheForm.setContent(chinese.toChinese(afficheForm.getContent()));
????????????afficheForm.settitle(chinese.toChinese(afficheForm.gettitle()));
????????????afficheDao.insertAffiche(afficheForm);
????????????request.setAttribute(“result“?“添加公告信息成功!!!“);
????????????return?mapping.findForward(“resultAfficheAction“);
????????}
????}
????public?ActionForward?selectAfficheAction(ActionMapping?mapping
?????????????????????????????????????????????ActionForm?form?//對(duì)公告信息的全部查詢
?????????????????????????????????????????????HttpServletRequest?request
?????????????????????????????????????????????HttpServletResponse?response)?{
????????request.setAttribute(“l(fā)ist“?afficheDao.selectAffiche());
????????return?mapping.findForward(“selectAfficheAction“);
????}
????//以自動(dòng)編號(hào)為條件,查詢公告信息
????public?ActionForward?selectOneAfficheAction(ActionMapping?mapping
????????????????????????????????????????????????ActionForm?form
????????????????????????????????????????????????HttpServletReques
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????4836??2017-01-10?22:12??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.classpath
?????文件????????451??2009-11-12?21:56??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.myhibernatedata
?????文件????????291??2017-01-10?22:07??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.myme
?????文件????????240??2009-11-12?21:55??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.mystrutsdata
?????文件???????2034??2017-01-10?22:07??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.project
?????文件????????406??2009-11-12?21:55??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\.jsdtscope
?????文件????????395??2017-01-10?22:07??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\org.eclipse.jdt.core.prefs
?????文件????????382??2017-01-10?22:07??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\org.eclipse.wst.common.component
?????文件????????122??2017-01-10?22:07??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2009-11-12?21:55??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2009-11-12?21:55??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????1347??2010-08-24?19:40??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\databa
?????文件??????????0??2009-11-12?21:56??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\ApplicationResources.properties
?????文件???????4456??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\action\AfficheAction.java
?????文件???????4775??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\action\ForceAction.java
?????文件???????5431??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\action\ManagerAction.java
?????文件???????8179??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\action\NewsAction.java
?????文件???????5179??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\action\SortAction.java
?????文件????????609??2009-11-12?22:12??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\AfficheForm.hbm.xm
?????文件????????844??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\AfficheForm.java
?????文件????????609??2009-11-12?22:12??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\ForceForm.hbm.xm
?????文件????????876??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\ForceForm.java
?????文件????????730??2009-11-12?22:13??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\ManagerForm.hbm.xm
?????文件???????1563??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\ManagerForm.java
?????文件????????728??2009-11-12?22:13??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\NewsForm.hbm.xm
?????文件???????1377??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\NewsForm.java
?????文件????????609??2009-11-12?22:14??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\SortForm.hbm.xm
?????文件????????959??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\actionForm\SortForm.java
?????文件???????3311??2009-11-12?21:57??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\dao\AfficheDao.java
?????文件???????3358??2009-11-12?22:32??新聞發(fā)布系統(tǒng)源碼,有前臺(tái)后臺(tái),struts2+Hibernate?實(shí)現(xiàn)\wyNews\src\com\dao\ForceDao.java
............此處省略215個(gè)文件信息
評(píng)論
共有 條評(píng)論