jboss源码 jboss源码 jboss源码 jboss源码 jboss源码

源代码在线查看: index.jsp

软件大小: 33507 K
上传用户: dsdsads
关键词: jboss 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								  if (request.getParameter("logoff") != null) {
				    session.invalidate();
				    response.sendRedirect("index.jsp");
				    return;
				  }
				%>
				
				
				Protected Page for Examples
				
				
				
				You are logged in as remote user 
				in session 
				
								  if (request.getUserPrincipal() != null) {
				%>
				    Your user principal name is
				    
								  } else {
				%>
				    No user principal could be identified.
								  }
				%>
				
								  String role = request.getParameter("role");
				  if (role == null)
				    role = "";
				  if (role.length() > 0) {
				    if (request.isUserInRole(role)) {
				%>
				      You have been granted role 
								    } else {
				%>
				      You have not been granted role 
								    }
				  }
				%>
				
				To check whether your username has been granted a particular role,
				enter it here:
				
				
				
				
				
				If you have configured this app for form-based authentication, you can log
				off by clicking
				here.
				This should cause you to be returned to the logon page after the redirect
				that is performed.
				
				
				
							

相关资源