File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Feb 26, 2010
Jul 16, 2010 06:31:35
can anyone explain me request.getSession() with a simple example?thanks in advance
You can do anything, but not everything
Joined: Sep 29, 2008
Jul 16, 2010 07:08:21
What specifically don't you understand? And what would an example look like other than setting a reference to it?
Joined: Jul 14, 2010
Jul 16, 2010 18:28:17
request.getSession(); // OR request.getSession(true);
you get a new session if doesnt exists.
If you do
if the session doesn't exist it wont creat one.
You can use session to store objects to navigate beetwen the requests. Like an user attribute.
Full WebApplication JSF EJB JPA JAAS with source code to download
One Table Per SubClass
I agree. Here's the link:
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014