【Java开源代码栏目提醒】:网学会员Java开源代码为您提供classStuInfo_jsp.java参考,解决您在classStuInfo_jsp.java学习中工作中的难题,参考学习。
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import sms.db.*;
import sms.bean.*;
import java.util.*;
public final class classStuInfo_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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 {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"errorPage.jsp", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
request.setCharacterEncoding("gb2312");
String commitFlag = request.getParameter("queryButton");
ArrayList aList = null;
String classId= null;
if (commitFlag != null ) {
StudentBean stuBean = new StudentBean();
classId = request.getParameter("classId");
if (classId == null || classId.equals("")) {
out.write("\r\n");
out.write("<script language=\"javascript\" type=\"\">\r\n");
out.write(" alert('璇疯緭鍏ョ彮绾х紪鍙凤紒');\r\n");
out.write(" </script>\r\n");
} else {
aList = stuBean.queryClassStudents(classId);
if(aList == null || aList.size() <= 0){
out.write("\r\n");
out.write("<script language=\"javascript\" type=\"\">\r\n");
out.write(" alert('娌℃湁璇ョ彮绾у鐢熶俊鎭紒');\r\n");
out.write(" </script>\r\n");
}
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>鐝骇瀛︾敓淇℃伅鏌ヨ</title>\r\n");
out.write("<link href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tbackground-color: #CCCCCC;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style></head>\r\n");
out.write("<body>\r\n");
out.write("<table width=\"100%\" border=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"32\">鏌ヨ鐝骇瀛︾敓淇℃伅</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"44\" bgcolor=\"#999999\">\r\n");
out.write(" <form name=\"form1\" method=\"post\" action=\"\">\r\n");
out.write(" <input type=\"hidden\" name=\"commitFlag\" value=\"submit\">\r\n");
out.write(" <table width=\"100%\" border=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"26%\" height=\"25\" align=\"right\">瑕佹煡璇㈢殑鐝骇鍙凤細</td>\r\n");
out.write(" <td width=\"32%\">\r\n");
out.write(" <input name=\"classId\" type=\"text\" value=\"");
out.print(classId==null?"":classId);
out.write("\" class=\"text1\">\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"22%\">\r\n");
out.write(" <input name=\"queryButton\" type=\"submit\" class=\"button1\" value=\"鎻愪氦\"