Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: help on session


Message #1 by Super Powerfulrez <powerfulrez@g...> on Tue, 27 Mar 2001 21:06:30 -0800 (PST)
You didn't set the par's right..

int j = (Integer)(session.getAttribute("something")).intValue;


|-----Original Message-----
|From: D Arun [mailto:darun@l...]
|Sent: woensdag 28 maart 2001 14:03
|To: Pro_JavaServer_Pages
|Subject: [pro_jsp] Re: help on session
|
|
|Use the following code snippet at appropriate places..
|Integr i = whateverInteger
|session.setAttribute("something", i);
|
|
|while retrieving use
|
|int j = (Integer)session.getAttribute("something").intValue);
|
|hope this helps..
|arun
|
|
|

  Return to Index