Right Neeraj.......Thats perfect theoretically.

But unfortunately the servlet while executing doesn't find the getSession
method at all. This is because of the complie environment and runtime
environment are different. compile time envoronment uses the classes of the
latest version but the run time environment uses the older version which is
not having this method. The error I can find in server logs is

javax.servlet.http.HttpServletRequest: method
getSession()Ljavax/servlet/http/HttpSession; not found.

Vijayanand

-----Original Message-----
From: Neeraj Arora <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, August 31, 1999 12:48 AM
Subject: Re: Session tracking problem


>First make the default session true then send the output!!!!!!!!!
>
>try following code !!!!!!!!!!!
>
>
>
>
>try
>{
>HttpSession session = req.getSession();
>   pw = new PrintWriter(res.getOutputStream());
>                outputStream = new PrintWriter(res.getOutputStream());
>                res.setContentType("text/html");
>
>}
>
>
>
>
>
>
>
>
>
>
>
>
>--
>
>On Mon, 30 Aug 1999 15:30:34   Vijayanand Deshpande wrote:
>>Hi all !
>>
>>I AM POSTING THIS PROBLEM FOR THE SECOND TIME. CAN SOMEONE GIVE ME A
>>SUGGESTION FOR MY PROBLEM ?
>>
>>I am getting an exception (runtime error) ..........
>>
>>javax.servlet.http.HttpServletRequest: method
>>getSession()Ljavax/servlet/http/HttpSession; not found.
>>
>>in the last line of the following code.........
>>
>>
>>import javax.servlet.*;
>>import javax.servlet.http.*;
>>import java.io.*;
>>import java.util.*;
>>
>>public class class1 extends HttpServlet
>>{
>>    public static PrintWriter outputStream;
>>    public static PrintWriter pw;
>>
>>    public void doGet(HttpServletRequest req, HttpServletResponse res)
>>throws IOException
>>        {
>>                pw = new PrintWriter(res.getOutputStream());
>>                outputStream = new PrintWriter(res.getOutputStream());
>>                res.setContentType("text/html");
>>                try
>>
>>
>>                     HttpSession session = req.getSession();
>>.
>>.
>>.
>>.
>>.
>>
>>I tried using
>>
>>HttpSession session = req.getSession(true);
>>
>>also but it gives me the same error.
>>
>>    One problem I can think of is that the Domino server is using certain
>>classes which are old ones. They are not having some of the methods
present
>>in JSDK 2.1 classes. Moreover JSDK provides some additional classes. The
>>domino server uses a zip file ICSCLASS.zip that contains the older classes
>>which i cannot tamper.  Can this be the reason I am getting this error ?
If
>>yes how do i overcome it ?
>>
>>I am using the Lotus Domino Go Webserver.
>>Can somebody help me ??
>>
>>Thanks in advance
>>Vijayanand
>>
>>__________________________________________________________________________
_
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>
>Get your FREE Email at http://mailcity.lycos.com
>Get your PERSONALIZED START PAGE at http://my.lycos.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
BEGIN:VCARD
VERSION:2.1
N:Deshpande;Vijayanand
FN:Vijayanand Deshpande
ORG:Tata Infotech Ltd.;SID
TITLE:Systems Engineer
TEL;WORK;VOICE:91 20 712 3501-9 Ext 207
TEL;WORK;FAX:91 20 712 9209
ADR;WORK:;;2nd Floor Electronic Sadan 2, MIDC Bhosari;Pune;MH;411 026;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:2nd Floor Electronic Sadan 2, MIDC Bhosari=0D=0APune, MH 411 026=0D=0AIndia
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990831T052654Z
END:VCARD

Reply via email to