A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
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:
Comparator and Comparable
lastIndexOf() method doubt??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015