• 大小: 33.77MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-27
  • 语言: Java
  • 标签: java  毕设  

资源简介

某宝上面的代码里面含有论文模板,用的jsp+mysql+ssh,代码有注释,随便修改下用于毕设么得问题

资源截图

代码片段和文件信息

package com.daowen.action;

import java.io.IOException;
import java.text.MessageFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

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

import com.daowen.bll.SystemParam;
import com.daowen.dal.DALbase;
import com.daowen.entity.Attachement;
import com.daowen.entity.Comment;
import com.daowen.util.Pagermetal;


public class CommentAction extends PageActionbase {
public void onload() {
String actiontype = request.getParameter(“actiontype“);
System.out.println(“actiontype=“ + actiontype);
if (actiontype == null)
return ;

}

/********************************************************
 ****************** 信息注销监听支持*****************************
 *********************************************************/
public void delete() {
String id = request.getParameter(“id“);
DALbase.delete(“comment“ “ where id=“ + id);
binding();
}

/*************************************************************
 **************** 保存动作监听支持******************************
 **************************************************************/
public void save() {
String title = request.getParameter(“title“);

String commentren = request.getParameter(“currenthy“);
String commentcontent = request.getParameter(“dcontent“);
String xtype = request.getParameter(“type“);
String belongid = request.getParameter(“belongid“);

Comment comment = new Comment();
comment.settitle(title == null ? ““ : title);

comment.setCommenttime(new Date());

comment.setCommentren(commentren == null ? ““ : commentren);
comment.setCommentcontent(commentcontent == null ? ““ : commentcontent);
comment.setXtype(xtype == null ? ““ : xtype);
comment.setBelongid(belongid == null ? ““ : belongid);
DALbase.save(comment);

 String forwardurl=request.getParameter(“forwardurl“);
try {

if (forwardurl!=null) {

response.sendRedirect(SystemParam.getSiteRoot()+forwardurl);
}

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


}

/******************************************************
 *********************** 内部附件支持*********************
 *******************************************************/
public void attachements(HttpServletRequest request
HttpServletResponse response String belongid) {
DALbase.delete(“attachement“ MessageFormat.format(
“ where belongid=‘‘{0}‘‘ and belongtable=‘‘comment‘‘ “
belongid));
String[] photos = request.getParameterValues(“fileuploaded“);
if (photos == null)
return;
for (int i = 0; i < photos.length; i++) {
Attachement a = new Attachement();
a.setType(“images“);
a.setPubtime(new Date());
a.setBelongfileldname(“id“);
a.setFilename(photos[i]);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件     2474266  2018-05-08 00:51  论文.docx
     目录           0  2018-05-08 00:44  dianzi\
     文件        3933  2018-05-08 00:44  dianzi\.classpath
     目录           0  2018-05-08 00:44  dianzi\.externalToolBuilders\
     文件         565  2018-05-08 00:44  dianzi\.externalToolBuilders\com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator.launch
     文件         556  2018-05-08 00:44  dianzi\.externalToolBuilders\com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator.launch
     文件         552  2018-05-08 00:44  dianzi\.externalToolBuilders\org.eclipse.wst.common.project.facet.core.builder.launch
     文件         548  2018-05-08 00:44  dianzi\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator (11).launch
     文件         547  2018-05-08 00:44  dianzi\.externalToolBuilders\org.eclipse.wst.validation.validationbuilder (1).launch
     目录           0  2018-05-08 00:45  dianzi\.myeclipse\
     文件         292  2018-05-08 00:44  dianzi\.mymetadata
     文件        3045  2018-05-08 00:44  dianzi\.project
     目录           0  2018-05-08 00:44  dianzi\.settings\
     文件         500  2018-05-08 00:44  dianzi\.settings\.jsdtscope
     文件         138  2018-05-08 00:44  dianzi\.settings\com.genuitec.eclipse.core.prefs
     文件        1009  2018-05-08 00:44  dianzi\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         247  2018-05-08 00:44  dianzi\.settings\com.genuitec.eclipse.migration.prefs
     文件         125  2018-05-08 00:44  dianzi\.settings\org.eclipse.core.resources.prefs
     文件         629  2018-05-08 00:44  dianzi\.settings\org.eclipse.jdt.core.prefs
     文件         137  2018-05-08 00:44  dianzi\.settings\org.eclipse.ltk.core.refactoring.prefs
     文件         544  2018-05-08 00:44  dianzi\.settings\org.eclipse.wst.common.component
     文件         359  2018-05-08 00:44  dianzi\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-05-08 00:44  dianzi\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-05-08 00:44  dianzi\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-05-08 00:45  dianzi\WebRoot\
     目录           0  2018-05-08 00:44  dianzi\WebRoot\meta-INF\
     文件          39  2018-05-08 00:44  dianzi\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2018-05-08 00:45  dianzi\WebRoot\WEB-INF\
     目录           0  2018-05-08 00:45  dianzi\WebRoot\WEB-INF\classes\
     目录           0  2018-05-08 00:45  dianzi\WebRoot\WEB-INF\classes\meta-INF\
     文件          25  2018-05-08 00:44  dianzi\WebRoot\WEB-INF\classes\meta-INF\MANIFEST.MF
............此处省略1460个文件信息

评论

共有 条评论