1) What is the differences between two ?
res.sendRedirect("http://localhost:8080/authendication/Logout/body_logout.jsp";);      
or
getServletContext().getRequestDispatcher("/authendication/Logout/body_logout.jsp").forward(req,
 res); 
 
2) 1 )Whenever for the first time if the user enters, I want to store the 
username,rights in the session  How to do it in Servlet. Is it right ?
 
HttpSession session = request.getSession(true); //can u tell me when we have keep 
false here.
session.setAttribute("username",usernamevalue);
session.setAttribute("rights",rights");


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Reply via email to