只做是单选题!数据库表有三张:EUser,EItem,Score

源代码在线查看: test_jsp.java

软件大小: 1417 K
上传用户: wuqunzhen
关键词: EUser EItem Score 数据库
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.apache.jsp;
				
				import javax.servlet.*;
				import javax.servlet.http.*;
				import javax.servlet.jsp.*;
				import com.exam.model.*;
				import java.util.*;
				
				public final class test_jsp extends org.apache.jasper.runtime.HttpJspBase
				    implements org.apache.jasper.runtime.JspSourceDependent {
				
				  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
				
				  private static java.util.Vector _jspx_dependants;
				
				  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
				
				  public Object getDependants() {
				    return _jspx_dependants;
				  }
				
				  public void _jspService(HttpServletRequest request, HttpServletResponse response)
				        throws java.io.IOException, ServletException {
				
				    PageContext pageContext = null;
				    HttpSession session = null;
				    ServletContext application = null;
				    ServletConfig config = null;
				    JspWriter out = null;
				    Object page = this;
				    JspWriter _jspx_out = null;
				    PageContext _jspx_page_context = null;
				
				
				    try {
				      response.setContentType("text/html;charset=UTF-8");
				      pageContext = _jspxFactory.getPageContext(this, request, response,
				      			null, true, 8192, true);
				      _jspx_page_context = pageContext;
				      application = pageContext.getServletContext();
				      config = pageContext.getServletConfig();
				      session = pageContext.getSession();
				      out = pageContext.getOut();
				      _jspx_out = out;
				      _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
				
				      out.write("\n");
				      out.write("\n");
				      out.write("\n");
				      out.write("\n");
				      out.write("\n");
				      out.write("\n");
				      out.write("				      out.write("   \"http://www.w3.org/TR/html4/loose.dtd\">\n");
				      out.write(" ");
								         ExamService es=new ExamService();				         List question_list=es.getAllExam();				         session.setAttribute("question_list", question_list);				 
				      out.write("\n");
				      out.write("\n");
				      out.write("    \n");
				      out.write("        \n");
				      out.write("        JSP Page\n");
				      out.write("    \n");
				      out.write("    \n");
				      out.write("\n");
				      out.write("    \n");
				      out.write("\n");
				    } catch (Throwable t) {
				      if (!(t instanceof SkipPageException)){
				        out = _jspx_out;
				        if (out != null && out.getBufferSize() != 0)
				          out.clearBuffer();
				        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
				      }
				    } finally {
				      _jspxFactory.releasePageContext(_jspx_page_context);
				    }
				  }
				}
							

相关资源