|  String path = request.getPathInfo(); 
  |         if(path.equals("/")){
  |             response.sendError(HttpServletResponse.SC_FORBIDDEN);
  |             return;
  |         }
  |         String[] p = path.split("/");
  |         String uName = null;
  |      UserMgr uMgr = (UserMgr)Component.getInstance("userMgr",SESSION);
  |        User u;
  |         if(p.length == 2){
  |             uName = p[1];
  |             u= userMgr.findByUserName(uName);
  |         }else{
  |             response.sendError(HttpServletResponse.SC_FORBIDDEN);
  |         }
  | if(u != null)
  |             RequestDispatcher rd;
  |             rd = 
request.getRequestDispatcher("/user/showSetting.do?userID=" + user.getId() );
  |            rd.forward(request,response);
  |             return;
  |         }else {
  |             response.sendError(HttpServletResponse.SC_FORBIDDEN);
  |             return;
  |         }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035895#4035895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035895
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to