----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I have encountered a problem accessing Cookies

My servlet can be launched in 2 different ways:

1/ With an alias in zone.properties (as per any normal servlet), i.e:

servlet.testme.code=com.ogc.www.servletkernel.TestServlet 

2/ With an AddHandler in jserv.conf to process a certain file extension (as
per Cocoon), i.e:

Action testme /servlet/com.ogc.www.servletkernel.TestServlet
AddHandler testme xml

I am currently debugging in JServ using the ServletDebugger code I found in
the JServ forum: 

public class ServletDebugger {

  public ServletDebugger() {
  }

  public static void main(String[] args) {
    try {
      JServ server = new JServ();
      server.main(args);
      System.out.println("ServletDebugger exited normally");
    } catch (Exception e) {
      System.out.println("ServletDebugger exception: " + e);
    }
  }

}

I pass the location of jserv.properties as an argument to main(). The
ApJServManual flag is set to on

THE PROBLEM:
With method 1/ the HTTPRequest object returns a Cookie, but with method 2/
the cookie is not there. Is this a bug in JServ or is there a logical
explanation for this behaviour? Any suggestions would be welcome!!!

Regards

Mark




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to