📄 _newpeople.java
字号:
/*@lineinfo:filename=/newPeople.jsp*/
/*@lineinfo:generated-code*/
import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import to.model.People.*;
import to.model.Login.*;
public class _newPeople extends com.orionserver.http.OrionHttpJspPage {
public final String _globalsClassName = null;
// ** Begin Declarations
// ** End Declarations
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
response.setContentType( "text/html;charset=GBK");
/* set up the intrinsic variables using the pageContext goober:
** session = HttpSession
** application = ServletContext
** out = JspWriter
** page = this
** config = ServletConfig
** all session/app beans declared in globals.jsa
*/
PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
// Note: this is not emitted if the session directive == false
HttpSession session = pageContext.getSession();
if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
return;
}
int __jsp_tag_starteval;
ServletContext application = pageContext.getServletContext();
JspWriter out = pageContext.getOut();
_newPeople page = this;
ServletConfig config = pageContext.getServletConfig();
try {
// global beans
// end global beans
out.write(__oracle_jsp_text[0]);
out.write(__oracle_jsp_text[1]);
out.write(__oracle_jsp_text[2]);
out.write(__oracle_jsp_text[3]);
out.write(__oracle_jsp_text[4]);
out.write(__oracle_jsp_text[5]);
/*@lineinfo:user-code*//*@lineinfo:21^10*/ loginItem li=(loginItem)session.getAttribute("user"); if(li==null) { response.sendRedirect("OfficeLogin.jsp"); } if(!(li.getRoleName().equals("系统管理员"))) { response.sendRedirect("Office.jsp"); }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[6]);
/*@lineinfo:user-code*//*@lineinfo:104^14*/ ResultSet rs=null; PeopleBean pb=new PeopleBean(); rs=pb.getAllNation(); while(rs.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[7]);
/*@lineinfo:user-code*//*@lineinfo:111^36*/ out.print(rs.getInt("NationID"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[8]);
/*@lineinfo:user-code*//*@lineinfo:111^64*/ out.print(rs.getString("NationName"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[9]);
/*@lineinfo:user-code*//*@lineinfo:112^19*/ }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[10]);
/*@lineinfo:user-code*//*@lineinfo:214^11*/ ResultSet rsc=null; PeopleBean pbc=new PeopleBean(); rsc=pbc.getAllCollege(); while(rsc.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[11]);
/*@lineinfo:user-code*//*@lineinfo:221^36*/ out.print(rsc.getInt("CollegeID"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[12]);
/*@lineinfo:user-code*//*@lineinfo:221^66*/ out.print(rsc.getString("CollegeName"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[13]);
/*@lineinfo:user-code*//*@lineinfo:222^19*/ }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[14]);
/*@lineinfo:user-code*//*@lineinfo:235^13*/ ResultSet rsd=null; PeopleBean pbd=new PeopleBean(); rsd=pbd.getAllDeparement(); while(rsd.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[15]);
/*@lineinfo:user-code*//*@lineinfo:242^36*/ out.print(rsd.getInt("DepartmentID"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[16]);
/*@lineinfo:user-code*//*@lineinfo:242^69*/ out.print(rsd.getString("DepartmentName"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[17]);
/*@lineinfo:user-code*//*@lineinfo:243^19*/ }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[18]);
/*@lineinfo:user-code*//*@lineinfo:256^13*/ ResultSet rsr=null; PeopleBean pbr=new PeopleBean(); rsr=pbr.getAllRole(); while(rsr.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[19]);
/*@lineinfo:user-code*//*@lineinfo:263^36*/ out.print(rsr.getInt("RoleID"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[20]);
/*@lineinfo:user-code*//*@lineinfo:263^63*/ out.print(rsr.getString("RoleName"));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[21]);
/*@lineinfo:user-code*//*@lineinfo:264^19*/ }
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[22]);
/*@lineinfo:user-code*//*@lineinfo:277^13*/ ResultSet rss=null; PeopleBean pbs=new PeopleBean();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -