【Java开源代码栏目提醒】:网学会员在Java开源代码频道为大家收集整理了viewTeacherInfo_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 viewTeacherInfo_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private String isSelected(String value1,String value2){
if(value1 != null && value2 != null && value1.equals(value2))
return "selected";
else return "";
}
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,
"", 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");
out.write('\r');
out.write('\n');
String college = request.getParameter("college");
String teacherId = request.getParameter("teacherId");
if(college != null && college.equals("all")){
college = null;
}
TeacherBean teacherBean = new TeacherBean();
ArrayList aList = teacherBean.queryTeacherInfo(college,teacherId);
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>\r\n");
out.write("鏌ョ湅鏁欏笀淇℃伅\r\n");
out.write("</title>\r\n");
out.write("<link href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\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("<form action=\"\" method=\"post\">\r\n");
out.write("<table width=\"100%\" border=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" valign=\"top\" ><table width=\"100%\" border=\"0\">\r\n");
out.write(" <tr bgcolor=\"#999999\">\r\n");
out.write(" <td width=\"12%\"align=\"right\" valign=\"middle\">瀛﹂櫌锛?/td>\r\n");
out.write(" <td width=\"25%\" align=\"left\" valign=\"middle\">\r\n");
out.write(" <select name=\"college\" class=\"select1\" id=\"college\">\r\n");
out.write(" <option id=\"1\" value=\"all\" ");
out.print(isSelected(college,"all"));
out.write(">鎵鏈夊闄?/option>\r\n");
out.write(" <option id=\"2\" value=\"璁$畻鏈哄闄" ");
out.print(isSelected(college,"璁$畻鏈哄闄?));
out.write(">璁$畻鏈哄闄?/option>\r\n");
out.write(" <option id=\"3\" value=\"淇℃伅瀛﹂櫌\" ");
out.print(isSelected(college,"淇℃伅瀛﹂櫌"));
out.write(">淇℃伅瀛﹂櫌</option>\r\n");
out.write(" <option id=\"4\" value=\"鏉愭枡瀛﹂櫌\" ");
out.print(isSelected(college,"鏉愭枡瀛﹂櫌"));
out.write(">鏉愭枡瀛﹂櫌</option>\r\n");
out.write(" <option id=\"5\" value=\"澶栬瀛﹂櫌\" ");
out.print(isSe