OK no help from the gurus ;-) so I'll answer my own question.
Our graphics designer was using a HTML editor to create his shtml pages
(dreamweaver - but I expect that they're all the same).
So when he inserted a <FORM> tag the editor added the following element :
ACTION=""
even though he hadn't asked for anything.
Removing this manually allowed netscape to correctly interpret the redirection.
Simon.
Simon Edwards wrote:
> Help please,
>
> We have a problem running servlets when using Netscape navigator (4.x)
> while both MSIE 4 and 5 work fine.
> This problem exists both when running through the web server (Netscape
> Enterprise 3.0I/WAICoolRunner) and in testing with servletrunner and
> thus seems to be an implementation problem in the browser.
>
> The problem seems to be the redirection from a servlet to itself but
> with a
> different "path info".
>
> eg. http://www.mysite.com/servlet/MyServlet/path1 to
> http://www.mysite.com/servlet/MyServlet/path2
>
> Following the redirection we test the request URL using
> httpUtils.getRequestURL( useragentrequest )
> and we have the following results :
> With MSIE we have : http://www.mysite.com/servlet/MyServlet/path2
> With Netscape we have : http://www.mysite.com/servlet/MyServlet/
>
> Netscape throws an error, which when run through the server gives a 404
> in the server log.
> servletrunner gives : requestGetPathInfo(): /
> With MSIE servlet runner gives : requestGetPathInfo(): /path2 and
> the redirection works.
>
> The redirection is made by :
> res.setStatus(res.SC_MOVED_TEMPORARILY);
> res.setHeader("Location", gotoURL); where the gotoURL is hard coded
>
> We had tried sendRedirect(gotoURL) but this did not work through the web
> server and led to the same problems with servletrunner and Netscape
> navigator.
>
> Thanks for any ideas you may have on how I can solve my problem.
> Simon Edwards
> [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> 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