Session Tracking In Servlets - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Session Tracking In Servlets (1350 Views)
| Session Tracking In Servlets by bigboyslim(op): 3:32am On May 26, 2009 |
Does anyone have an easy to understand tutorial on session tracking in servlets. All the materials i've come across have been quite difficult to understand. |
| Re: Session Tracking In Servlets by enohj2ee(m): 7:35am On May 26, 2009 |
what are your competence skills |
| Re: Session Tracking In Servlets by bigboyslim(op): 1:16pm On May 26, 2009 |
I dont think I understand what you mean by competence skills, but as far as the question is concerned, I can basically write a servlet to read form data from a single webpage. What i'm trying to do is write a single servlet to read form data from multiple web pages one after the other. |
| Re: Session Tracking In Servlets by kencas: 4:55pm On May 26, 2009 |
HttpSession session = request.getSession(); session.setAttribute("name","kencas" ;dats all |
| Re: Session Tracking In Servlets by Bossman(m): 5:38pm On May 26, 2009 |
Make sure you are passing control to the next page by forwarding the request via requestDispatcher. So, your servlet will act as a controller. The first form/page submits to it, you create the session object, store appropriate attributes, then forward the request to the next page/view. Google for "Core servlets and JSP" by Marty Hall. Read the chapter on session management and it should help. |
| Re: Session Tracking In Servlets by bigboyslim(op): 6:33pm On May 26, 2009 |
Thanks Guys, Bossman, I think i'm going to go with your flow. What I actually want to do is use hidden form fields to track session as opposed to using the httpsession API |
| Re: Session Tracking In Servlets by logica(m): 10:03am On May 27, 2009 |
Gee, see what I found with google. http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Session-Tracking.html http://www.novocode.com/doc/servlet-essentials/chapter2c.html If you don't get the tutorials, you have no business with programming. |
| Re: Session Tracking In Servlets by bigboyslim(op): 10:43am On May 27, 2009 |
logica:Thanks for the link, but I dont think your last comment was necessary. I'm here to learn and just because i'm struggling with a new concept doesn't make me a numb skull or bad programmer. |
How To Build Geo-tracking Apps With AngularJS, Ionic & The Salesforce REST API • How To Create A Shipping Tracking On Website.? • 2 • 3 • 4
Abeg Guys What Is Wrong With This C Code • Voice To Text Software • Want To Learn How To Build Mobile Apps
;