首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

JSP的Login程序代码

整理日期:2008年02月18日 【字体:

<!-- Login Manager -->
<JAVA TYPE="class">

public static boolean checkUserPermission(HttpSession mySession, }
HttpServletRequest request, HttpServletResponse response)
{
if (mySession.getValue("hasPermission") == null || !((Boolean) mySession.getValue
("hasPermission" )).booleanValue())
{
String requestedUrl = HttpUtils.getRequestURL(request).toString();
String queryString = request.getQueryString();
if (queryString != null)
{
requestedUrl = requestedUrl + "?" + queryString;
}
requestedUrl = response.encodeUrl(requestedUrl);
mySession.putValue("requestedUrl", requestedUrl);
return false;
}
else
{
return true;
}

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-02/1203320414.html
}
Tags:
JSP的Login程序代码
'http://www.etoow.com/html/2008-02/1203320414.html
1
 
2
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved