资源简介
完整的 JSP教学平台 三级权限,实现在线教学,在线答疑,在线考试,在线学习等功能模块。

代码片段和文件信息
package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import upc.edu.DBconnection.*;
public class addQuestion extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Constructor of the object.
*/
public addQuestion() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}
/**
* The doGet method of the servlet.
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
response.setContentType(“text/html“);
PrintWriter out = response.getWriter();
out
.println(““);
out.println(““);
out.println(“ tle>A Servlet tle>“);
out.println(“ “);
out.print(“ This is “);
out.print(this.getClass());
out.println(“ using the GET method“);
out.println(“ “);
out.println(““);
out.flush();
out.close();
}
/**
* The doPost method of the servlet.
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
PrintWriter out = response.getWriter();
//response.setContentType(“text/html“);
String subjectType=““;
String str[]=request.getParameterValues(“answer“);
String subjectAnswer=““;
for(int j=0;j subjectAnswer+=str[j];
String subjectQuestion=request.getParameter(“qname“);
//String subjectAnswer=request.getParameter(“answer“);
String choiceA=request.getParameter(“choice1“);
String choiceB=request.getParameter(“choice2“);
String choiceC=request.getParameter(“choice3“);
String choiceD=request.getParameter(“choice4“);
String choiceE=request.getParameter(“choice5“);
String choiceF=request.getParameter(“choice6“);
PreparedStatement ps=null;
baseC
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 526 2013-04-11 09:45 WEB\.classpath
文件 300 2013-03-23 08:55 WEB\.myme
文件 1282 2013-03-15 20:12 WEB\.project
文件 330 2013-03-15 20:05 WEB\.settings\org.eclipse.jdt.core.prefs
文件 6047 2013-04-22 14:26 WEB\src\servlet\addQuestion.java
文件 3663 2013-04-22 15:37 WEB\src\servlet\addTest.java
文件 3081 2013-04-18 16:07 WEB\src\servlet\checkAnswer.java
文件 3407 2013-04-12 11:18 WEB\src\servlet\ResouceDownload.java
文件 6106 2013-04-22 17:14 WEB\src\servlet\ResourceUpload.java
文件 4770 2013-04-15 10:02 WEB\src\upc\edu\chatroom\ChatRoom.java
文件 1963 2013-04-15 10:11 WEB\src\upc\edu\chatroom\chatRoomList.java
文件 1471 2013-04-16 10:29 WEB\src\upc\edu\chatroom\Message.java
文件 3035 2013-04-17 19:38 WEB\src\upc\edu\DBconnection\ba
文件 1144 2013-04-16 11:14 WEB\src\upc\edu\entity\uers\Users.java
文件 3273 2013-04-16 11:15 WEB\src\upc\edu\login\CheckLogin.java
文件 1586 2013-03-29 09:32 WEB\src\upc\edu\test\paperConnection.java
文件 824 2013-03-28 11:13 WEB\src\upc\edu\test\Subject.java
文件 1610 2013-03-28 15:37 WEB\src\upc\edu\test\SubjectConnection.java
文件 4281 2013-04-15 10:29 WEB\WebRoot\chatRoom\advanced.jsp
文件 1086 2013-04-15 10:07 WEB\WebRoot\chatRoom\changeRoom.jsp
文件 531 2009-12-23 13:58 WEB\WebRoot\chatRoom\chat.css
文件 824 2013-04-15 16:07 WEB\WebRoot\chatRoom\chatRoom.jsp
文件 1136 2013-04-16 11:11 WEB\WebRoot\chatRoom\chatRoomList.jsp
文件 2217 2013-04-16 15:59 WEB\WebRoot\chatRoom\dataValue.jsp
文件 668 2013-04-15 10:08 WEB\WebRoot\chatRoom\delete.jsp
文件 5601 2013-04-16 15:56 WEB\WebRoot\chatRoom\input.jsp
文件 762 2013-04-15 10:30 WEB\WebRoot\chatRoom\kick.jsp
文件 860 2013-04-15 10:30 WEB\WebRoot\chatRoom\logout.jsp
文件 891 2013-04-15 10:09 WEB\WebRoot\chatRoom\redirectChatRoom.jsp
文件 2162 2013-04-16 09:56 WEB\WebRoot\chatRoom\sendMsg.jsp
............此处省略125个文件信息
相关资源
- 微博系统(Java源码,servlet+jsp),适
- JSP企业人事管理系统设计(源代码+论
- 实现一个图书管理系统
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- JSP,SQL,MVC的选课系统
- 基于JSP的学生宿舍管理系统(源码 数
- JSP选课管理系统
- mysql jsp网站源码下载
- JSP做的化妆品商城
- Jsp购物车实例
- 基于JSP的校友信息管理系统(添加数
- 基于jsp的bbs论坛 非常详细
- jsp oracle通讯录
- JSP学生信息管理系统 Mysql数据库
- 使用jsp servlet做的投票系统
- JSP登陆验证 实现JSP用户名 密码 验
- jsp基于servlet 图书馆管理系统
- jsp学生成绩管理系统.rar
- 在线考试系统源代码(jsp)
- 超级好的纯jsp写的聊天室
- JSP 网上购物网页项目
- JSP+mysql新闻发布系统.rar
- jsp 学生信息管理系统设计与实现
- jsp与SQL Server数据库实现的客户注册登
- 简易教学管理系统(jsp spring struts h
- 学生信息管理系统 JSP MySQL
- jsp ajax 三级联动菜单
- jsp新闻公告与最新消息系统(具备添
- JSP课程设计-留言本 jsp mysql tomcat实现
评论
共有 条评论