HttpSession interface has methods to store and retreive the objects from session scope.The methods are:
setAttribute(String name, Object value)
Object getAttribute(String name)
If you want to store the premitives in the session scope you have to wrap them into corresponding object types and retreive the values by casting the return values.
For example, int values can be wrapped into Integer object and stored .
Hope this helps.
Thanks and Regards,
SCJP 1.4, SCWCD 5
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
Devious Experiments for a Truly Passive Greenhouse!