• 大小: 73.6M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-12-04
  • 语言: Java
  • 标签: 其他  

资源简介

SurveySystem(基于Javaweb调查问卷系统,附数据库)2017-12-23.zip

资源截图

代码片段和文件信息

package com.cyz.actions;

import com.cyz.bean.Questions;
import com.cyz.bean.User;
import com.cyz.dao.QuestionsDao;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;

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

public class AddQuestionAction extends ActionSupport {
    @Override
    public String execute() throws Exception {
        HttpServletRequest request = ServletActionContext.getRequest();
        HttpServletResponse response = ServletActionContext.getResponse();
        request.setCharacterEncoding(“UTF-8“);
        response.setCharacterEncoding(“UTF-8“);
        response.setContentType(“text/html;setchar=UTF-8“);
        HttpSession session = request.getSession();
        User user = (User) session.getAttribute(“userInfo“);

        response.getWriter().println(“ript>window.alert(‘添加成功!!‘);window.location.href=‘view_QO.jsp‘;ript>“);
        return “success“;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件       14959  2017-12-23 16:38  questionnaire.sql
     目录           0  2017-12-23 15:54  SurveySystem\
     目录           0  2017-12-23 16:36  SurveySystem\.idea\
     目录           0  2017-12-20 23:14  SurveySystem\.idea\artifacts\
     文件         364  2017-12-17 14:16  SurveySystem\.idea\artifacts\survey_war.xml
     文件         329  2017-12-20 23:14  SurveySystem\.idea\artifacts\survey_war2.xml
     文件         729  2017-12-17 14:16  SurveySystem\.idea\artifacts\survey_war_exploded.xml
     目录           0  2017-12-11 20:53  SurveySystem\.idea\dataSources\
     文件         830  2017-12-11 21:04  SurveySystem\.idea\dataSources.local.xml
     文件         903  2017-12-11 20:53  SurveySystem\.idea\dataSources.xml
     文件       42299  2017-12-11 20:53  SurveySystem\.idea\dataSources\dcf3ba27-7fd8-4311-8b25-04bdb7f66b7e.xml
     文件         815  2017-12-13 22:06  SurveySystem\.idea\encodings.xml
     目录           0  2017-12-11 21:24  SurveySystem\.idea\inspectionProfiles\
     文件         549  2017-12-11 21:24  SurveySystem\.idea\inspectionProfiles\Project_Default.xml
     目录           0  2017-12-23 15:54  SurveySystem\.idea\libraries\
     文件         272  2017-12-11 19:46  SurveySystem\.idea\libraries\mysql_connector_java_5_1_45_bin.xml
     文件         232  2017-12-11 19:44  SurveySystem\.idea\libraries\servlet_api.xml
     文件         301  2017-12-11 19:33  SurveySystem\.idea\libraries\struts_2_3_4_1.xml
     文件         546  2017-12-23 15:54  SurveySystem\.idea\libraries\taglibs_standard_compat_1_2_5.xml
     文件         273  2017-12-11 19:31  SurveySystem\.idea\misc.xml
     文件         252  2017-12-11 19:31  SurveySystem\.idea\modules.xml
     文件       68338  2017-12-23 16:36  SurveySystem\.idea\workspace.xml
     目录           0  2017-12-11 19:49  SurveySystem\out\
     目录           0  2017-12-21 11:14  SurveySystem\out\artifacts\
     目录           0  2017-12-17 14:17  SurveySystem\out\artifacts\survey_war\
     目录           0  2017-12-23 16:34  SurveySystem\out\artifacts\survey_war2\
     文件    18451518  2017-12-23 16:34  SurveySystem\out\artifacts\survey_war2\survey_war.war
     文件    21866554  2017-12-17 14:17  SurveySystem\out\artifacts\survey_war\survey_war.war
     目录           0  2017-12-23 16:19  SurveySystem\out\artifacts\survey_war_exploded\
     文件       12186  2017-12-23 15:54  SurveySystem\out\artifacts\survey_war_exploded\adduser_g.jsp
     文件       11201  2017-12-23 15:54  SurveySystem\out\artifacts\survey_war_exploded\addWJ.jsp
............此处省略684个文件信息

评论

共有 条评论