⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check.jsp

📁 我费了好大劲才找到的一款非常全的OA办公自动化软件源码
💻 JSP
字号:
<%@ page import="java.util.*" %>
<jsp:useBean id="dbc" scope="session" class="net.dmresearch.util.DBConnection" />
<jsp:useBean id="charset" scope="session" class="net.dmresearch.util.Charset" />
<jsp:useBean id="dateformat" scope="session" class="net.dmresearch.util.Dateformat" />
<jsp:useBean id="mu" scope="session" class="net.dmresearch.util.MyUtil" />
	
<%
	String id = (String)session.getAttribute("id");
	String scid= (String)session.getAttribute("cid");
	// and cid='"+scid+"'

	//String ipart=null;
	//String part = (String)session.getAttribute("part");
	if((id==null)||(id.length()<1)){
		response.sendRedirect("login.jsp");
	}
	 //else if((part==null)||(part.length()<1)){
		//response.sendRedirect("login.jsp");
	//}
	else{
		/*
		dbc.getConnection();
		String xpro = request.getRequestURI();
		if((xpro==null)){
			//response.sendRedirect("/login.jsp");
		}
		else{
			xpro = xpro.substring(xpro.lastIndexOf("/")+1);
			String xxsql = "select count(*) from  userauth where programname='"+xpro+"' and user='"+(String)session.getAttribute("user")+"'";
			//out.println(xsql);
			if((xpro.indexOf("x")==0)){
					dbc.close();;
			}
			else{
				if(dbc.getCount(xxsql)<=0){
					out.println("No auth! , "+xpro+"<br>"+xxsql);
					dbc.close();
					response.sendRedirect("/xnoauth.jsp");
				}
			
			}
		}
			
				*/
			dbc.close();	

	}


%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -