Nic, I guess I'm not clear on your question about the "semantics of doing the same thing with a RequestDispatcher". Up to this point, our applications have only run in Apache+JServ, which as you know is JSDK 2.0. In this environment, the request info goes from Apache to JServ to the Apache JSSI servlet to our servlet, and the original query string from the .SHTML page request is available at the end. I believe I read somewhere that our new server uses JSDK 2.1, in which the RequestDispatcher was introduced, but again I'm unclear about the implications. I really have no idea how their SSI processing is done, whether it's another servlet (like Apache JSSI), or something else. I just assumed that if the original request TO the web server FROM the client browser was for an .SHTML page (note the "S"), AND that request for that page included query string information, then that query string info should be propagated from the web server to the SSI processor to my servlet, and then be available with getQueryString(). Jay -----Original Message----- From: Nic Ferrier [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: Re: Spec interpretation issue or bug? (getQueryString() returns null) >>> Jay Burgess <[EMAIL PROTECTED]> 01-Feb-01 5:30:49 PM >>> >Using our standard Web server (Apache), a call to >getQueryString() for the URL "http://myserver/somepage.shtml?user=Jay" >will return "user=Jay". This is exactly what I need >and expect. However, I'm currently in the process >of trying to migrate to a well-known commercial Web >server, and I'm finding that getQueryString() in their >servlet environment returns null in this case. >The developer that I've been communicating with >indicates that null is actually the correct return value. >I completely disagree. >So my question is, is this a spec interpretation issue, or >a bug in their server? It sounds like a problem with their server but I'm not sure about some of the things you mention. When a servlet recieves a request like: /somedir/?param=value the part after the ? MUST be put in the query string. However, depending on the version of the API that you're using the semantics of doing the same thing with a RequestDispatcher might not be as you expect. You'll really have to rell us what API version you're targetting with this. Nic ___________________________________________________________________________ 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
