I presume the Lotus Go Webserver should have someway to set the classpath
with which  it comes up. So may be you can try adding the JSDK2.1
"jsdk.jar" path in the server and see if it works.
Now apparantly if webserver does not handle the cookies, then u have to
design a technique like transforming url(Append some string at the end of
url & extract it before processing) to track the session or
adding a hidden field in the html generated( a bit clumsy at times but
very simple) which can be extracted
by each servlet. please note the session information will be stored as
an
object shared between the servlets so  best way would be to put this
shareble common code in a servlet class and  derive your servlets from
it(e.g static reference to a hash table)
amit
..


 On Mon, 30 Aug 1999, Vijayanand Deshpande wrote:

> Thats absolutely right. Those environments are different.......I use JDK 1.2
> and JSDK 2.1 classes for compiling because I want to use the getSession()
> method. Unfortunately this Lotus domino Go Web server uses JDK 1.1.4 and
> older versions of the HttpServlet etc. classes.........It doesn't even
> support cookies.....and by some means I want this kind of system to work for
> me. :-(
>
> -----Original Message-----
> From: AMIT RUSTAGI <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Monday, August 30, 1999 6:09 PM
> Subject: Re: Session tracking problem
>
>
> >On Mon, 30 Aug 1999, Vijayanand Deshpande wrote:
> >
> >How come the servlet is compiling.. apparently the compile time & runtime
> >environments differ...
> >
> >amit
> >> 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
> >>
> >
> >___________________________________________________________________________
> >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
>
> ___________________________________________________________________________
> 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
>

Amit Rustagi
E-mail: [EMAIL PROTECTED]
Office: +91-22-8291261 xtn 2786
Tata Infotech Limited.
Seepz,Andheri
Mumbai-96.

___________________________________________________________________________
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

Reply via email to