Hi,

You can use the following method of the javax.servlet.jsp.PageContext
object:

(from the JSP 1.1 API)

public abstract javax.servlet.http.HttpSession getSession()Returns:
the HttpSession for this PageContext or null

Cheers,

James


> -----Original Message-----
> From: Desmond [mailto:[EMAIL PROTECTED]]
> Sent: 15 February 2003 02:46
> To: [EMAIL PROTECTED]
> Subject: How to get session in the servlet
>
>
> Hi, May I know how to get the session for the JSP page in servlet?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to