1. Where do I put session information? In HttpServletRequest.setAttribute()? stackoverflow.comI have a servlet class which handles login. At the end of my login procedure, I do this:
in ... |
2. Servlets: setAttribute in HttpServletRequest vs setAttribute in HttpSession stackoverflow.comwhats the difference between setAttribute() in HttpServletRequest and setAttribute() in HttpSession? Under what circumstances are they used? Thanks for any help! |
3. why not session.setAttribute working ? coderanch.comI want to display count of page hit through session but every time its displaying s1=0,either its not setting the attribute of session or what? The code is given below : <%@ page import = "java.io.*, java.util.*, java.sql.*" session="true" %> <%! int a; %> <% Integer s1 = (Integer)session.getAttribute("sess"); out.println("s1 before " + s1); if (s1==null) { s1 = new Integer(0); ... |
4. session.setAttribute() not working coderanch.comfile name GetName.html file name SaveName.jsp <% String name = request.getParameter( "username" ); session.setAttribute( "theName", name ); %> Continue file name NextPage.jsp Hello, <%=session.getAttribute("theName") %> when ... |
5. Session.putValue VS Session.setAttribute coderanch.com |
6. session setAttribute null not working coderanch.com |