?? employeeright_jsp.java
字號:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import com.hr.vo.Employee;
public class employeeright_jsp extends HttpJspBase {
String name;
String gender;
int age;
String deptname;
String note;
String position;
Employee employee;
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");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n ");
out.write("<link rel=\"STYLESHEET\" type=\"text/css\" href=\"css/shared.css\">\r\n");
out.write("<title>\r\nemployeeright\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("\r\n");
session = request.getSession(false);
if(session!=null)
{
employee = (Employee)session.getAttribute("pass");
if(employee!=null)
{
name = employee.getEmployeeName();
gender = employee.getGender();
age = employee.getAge().intValue();
deptname = employee.getDept().getDeptName() ;
note = employee.getNote();
int type = employee.getEmployeeType().intValue();
switch(type)
{
case 1:
position = "初級職稱" ;
break;
case 2:
position="中級職稱";
break;
case 3:
position="高級職稱";
break;
default:
position="--";
}
}else
{
int i=1/0;
}
}
out.write("\r\n");
out.write("<h3 align=\"center\">\r\n員工基本信息\r\n");
out.write("</h3>\r\n");
out.write("<br>\r\n");
out.write("<hr height=1 />\r\n");
out.write("<table width=100%>\r\n");
out.write("<tbody >\r\n");
out.write("<tr>\r\n");
out.write("<td class=\"tdbg1\" width=15%>員工姓名:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(name);
out.write("</td>\r\n");
out.write("<td class=\"tdbg1\" width=15%>員工性別:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(gender);
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n");
out.write("<td class=\"tdbg1\" width=15%>員工年齡:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(age);
out.write("</td>\r\n");
out.write("<td class=\"tdbg1\" width=15%>所屬部門:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(deptname);
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n");
out.write("<td class=\"tdbg1\" width=15%>員工職稱:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(position);
out.write("</td>\r\n");
out.write("<td class=\"tdbg1\" width=15%>員工備注:");
out.write("</td>");
out.write("<td class=\"tdbg2\" width=15% align=\"center\">");
out.print(note);
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</tbody>\r\n");
out.write("</table>\r\n");
out.write("<hr height=1 />\r\n\r\n");
out.write("</body>\r\n");
out.write("</html>\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);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -