资源简介
本实验在NetBean环境下利用JSP技术编写一个网上测试程序,包含填空题、多选题、单选题和判断题,可以实现在线测试以及在线评分。
代码片段和文件信息
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class welcome_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(“ out.write(“ \“http://www.w3.org/TR/html4/loose.dtd\“>\n“);
out.write(“\n“);
out.write(“\n“);
out.write(“ \n“);
out.write(“ ta http-equiv=\“Content-Type\“ content=\“text/html; charset=UTF-8\“>\n“);
out.write(“ tle>J2EE测试系统 tle>\n“);
out.write(“ \n“);
out.write(“ \n“);
out.write(“ 欢迎登录J2EE测试系统
\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);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3902 2009-05-31 19:36 Test\build\generated\classes\org\apache\jsp\welcome_jsp.class
文件 78 2009-05-31 19:36 Test\build\generated\src\org\apache\jsp\welcome_jsp.class.smap
文件 3012 2009-05-31 19:36 Test\build\generated\src\org\apache\jsp\welcome_jsp.java
文件 464 2009-05-31 19:36 Test\build\web\index.jsp
文件 25 2009-05-31 19:36 Test\build\web\me
文件 1280 2009-05-31 19:58 Test\build\web\result.jsp
文件 2139 2009-05-31 19:58 Test\build\web\test.jsp
文件 0 2009-05-31 19:36 Test\build\web\WEB-INF\classes\.netbeans_automatic_build
文件 505 2009-05-31 19:36 Test\build\web\WEB-INF\sun-web.xm
文件 490 2009-05-31 19:36 Test\build\web\WEB-INF\web.xm
文件 752 2009-05-31 19:36 Test\build\web\welcome.jsp
文件 3489 2009-05-31 16:10 Test\build.xm
文件 6930 2009-05-31 19:58 Test\dist\Test.war
文件 3676 2009-06-09 16:23 Test\nbproject\ant-deploy.xm
文件 43776 2009-05-31 16:10 Test\nbproject\build-impl.xm
文件 455 2009-05-31 16:10 Test\nbproject\genfiles.properties
文件 1815 2009-05-31 16:10 Test\nbproject\private\private.properties
文件 211 2009-05-31 19:59 Test\nbproject\private\private.xm
文件 2080 2009-05-31 16:10 Test\nbproject\project.properties
文件 684 2009-05-31 16:10 Test\nbproject\project.xm
文件 25 2009-05-31 16:10 Test\src\conf\MANIFEST.MF
文件 464 2009-05-31 16:10 Test\web\index.jsp
文件 1280 2009-05-31 19:58 Test\web\result.jsp
文件 2139 2009-05-31 19:58 Test\web\test.jsp
文件 505 2009-05-31 16:10 Test\web\WEB-INF\sun-web.xm
文件 490 2009-05-31 16:10 Test\web\WEB-INF\web.xm
文件 752 2009-05-31 17:10 Test\web\welcome.jsp
目录 0 2009-05-31 19:36 Test\build\generated\classes\org\apache\jsp
目录 0 2009-05-31 19:36 Test\build\generated\src\org\apache\jsp
目录 0 2009-05-31 19:36 Test\build\generated\classes\org\apache
............此处省略24个文件信息
- 上一篇:java在线升级代码
- 下一篇:计算机毕业实习报告java方面
评论
共有 条评论