📄 employeedel_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import StudyNote.*;
import java.util.*;
public final class employeeDel_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=GBK");
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;
out.write("\r\n");
out.write("\r\n");
out.write("\t\r\n");
Vector v = (Vector)session.getAttribute(Constants.EMP_LIST_KEY);
Emp emp = null;
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("\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=\"images/style.css\" rel=stylesheet>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("\r\n");
out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" bgcolor=\"#FFCC66\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"84%\" bgcolor=\"#FFFFFF\">\r\n");
out.write("<DIV align=left><font color=\"#FF9900\"><b> </b></font></DIV>\r\n");
out.write("<DIV align=left style=\"width: 563; height: 81\"><font color=\"#FF9900\"><b> </b></font>\r\n");
out.write(" <table class=\"txt\" cellSpacing=\"1\" cellPadding=\"1\" width=\"90%\" align=\"center\" bgColor=\"#005b4b\" border=\"0\">\r\n");
out.write(" <tr bgColor=\"#bad4a5\">\r\n");
out.write(" <td vAlign=\"top\" width=\"10%\" bgColor=\"#92C9CE\" align=\"center\"><b>部门</b></td>\r\n");
out.write(" <td vAlign=\"top\" width=\"40%\" bgcolor=\"#92C9CE\" align=\"center\"><b>员工姓名</b></td>\r\n");
out.write(" <td vAlign=\"top\" width=\"8%\" bgcolor=\"#92C9CE\" align=\"center\"><b>性别</b></td>\r\n");
out.write(" <td vAlign=\"top\" width=\"9%\" bgcolor=\"#92C9CE\" align=\"center\"><b>职务</b></td>\r\n");
out.write(" <td vAlign=\"top\" width=\"19%\" bgcolor=\"#92C9CE\" align=\"center\"><b>电话</b></td>\r\n");
out.write(" <td vAlign=\"top\" width=\"20%\" bgcolor=\"#92C9CE\" align=\"center\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write("\r\n");
out.write(" ");
if(v != null ){
for(int i = 0;i < v.size();i++)
{
emp = (Emp)v.get(i);
out.write("\r\n");
out.write("\r\n");
out.write(" <tr bgColor=\"#ffffff\">\r\n");
out.write(" <input type=\"hidden\" value=\"");
out.print(emp.getId());
out.write("\" name=empId>\r\n");
out.write(" <td width=\"10%\" bgColor=\"#ffffff\">");
out.print(emp.getDep());
out.write("</td>\r\n");
out.write(" <td width=\"40%\" bgColor=\"#ffffff\">");
out.print(emp.getName());
out.write("</td>\r\n");
out.write(" <td width=\"8%\" bgColor=\"#ffffff\">");
out.print(emp.getSex());
out.write("</td>\r\n");
out.write(" <td width=\"9%\" bgColor=\"#ffffff\">");
out.print(emp.getDuty());
out.write("</td>\r\n");
out.write(" <td width=\"19%\">");
out.print(emp.getTel());
out.write("</td>\r\n");
out.write(" <td width=\"20%\">\r\n");
out.write(" <p align=\"center\"><a href=\"empDel.do?empId=");
out.print(emp.getId());
out.write("\">删除</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write("\r\n");
out.write(" </table>\r\n");
out.write("</DIV>\r\n");
out.write("<DIV align=left> </DIV>\r\n");
out.write("<P align=center><FONT size=2> </FONT></P>\r\n");
out.write(" <p> </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("\r\n");
out.write("</html>");
} 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 {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -