To answer the question about what the page source displays, that question is
not applicable.

To give greater detail about my situation....

I have a servlet which does one of two things.  If there is no ACTION query
string parameter, it displays the form.  If there is an ACTION query string
parameter, it takes action on the data and sends a redirection.  The form
that is output in the first case has as it's target the very same servlet
(so that the servlet will then process the data when the ACTION parameter is
present).

The form displays fine.  I fill in data, hit submit and it goes to the
server.  The action is taking place and the redirection response being sent
(I verified by packet sniffing).  But, Netscape does not recognize the
redirection.  Instead, it sees no page data (only the redirect header which
it ignores) and complains.

HOWEVER, someone pointed out that if I add a trailing slash to the
redirection URL, it might work.  Before, I redirected to
".../servlet/admin", with the trailing slash it's ".../servlet/admin/".
With this trailing slash, Netscape DOES redirect and everything is dandy.
Without the trailing slash, Netscape fails.

But, just to make things MORE confusing, there is another servlet I have
that sends the redirect without the slash (just like the servlet in question
did originally) and it DOES work OK!  No trialing slash is needed.

I've also looked in JRun's release notes for newer evrsion (I still run 2.3,
btu an older build I think).  Looking through the build history, I found the
follwoing notes for build 144:

build 144
--------------
- Cookies headers are still sent when sendRedirect() is called.

- Preview release of JSP Command line compiler is now included
  in <jrun>/contrib/jspc.  See JSPCompiler.txt in that directory
  for mor inforation. (Full install only)

That first item strikes me.  If, for some reason, the servlet is also
setting cookies, what if they are getting sent along with the redirect
header.  Redirect headers are supposed to be isolated, I think, without any
other page-related data (like cookies).  Perhaps IE ignores it but Netscape
sees that and expects to see a page (and ignores the redirect header).  The
hole in this theory, though, is that appending a "/" fixes the cases where
the redirect failed.

Can ANYONE shed some insight into this?

--
Brian J. Sayatovic
mailto:[EMAIL PROTECTED]

------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to