运用MVC设计模式开发的学生成绩查询网站的实现
源代码在线查看: student_0002ejsp_jsp.java
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import checkgrade.*;
public class student_0002ejsp_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n学生信息表\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n学生管理信息\r\n");
out.write("\r\n>> ");
out.write("学生转入\r\n ");
out.write("\r\n ");
out.write("\r\n ");
out.write("\r\n ");
StudentBean bean=new StudentBean();
List list=bean.getList();
for(int i=0;i StuItem item=(StuItem)list.get(i);
out.write("\r\n ");
out.write("\r\n ");
out.write("");
out.print( item.Sno );
out.write("\r\n ");
out.write("");
out.print( item.Sname );
out.write("\r\n ");
out.write("");
out.print(item.Ssex );
out.write("\r\n ");
out.write("");
out.print(item.Sage );
out.write("\r\n ");
out.write("");
out.print(item.Sdept );
out.write("\r\n ");
out.write("");
out.write(" out.print(item.Sno);
out.write("\">删除");
out.write("");
out.write("\r\n ");
out.write("\r\n ");
}
out.write("\r\n ");
out.write("\r\n >>");
out.write("返回首页");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}