You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Sebastian Mangels <ko...@freiheit.com> on 2001/06/20 11:35:30 UTC

sendRedirect problem with Internet Explorer

Hi!

I encountered a problem with the
response.sendRedirect method and HTML
anchor-links.

supposing we have a jsp that accepts a
Parameter ID.

eg: test.jsp?ID=25

this jsp produces a html -page which
containes an anchor link:

<html>
 ...
 <a name="foo"/>
...
</html>


so: test.jsp?ID=25#foo

shlod result in calling the jsp and
displaying the page scrolled to a
position
somewhat near to tha anchor named "foo"
(correct?!)

Well this works with IE and Netscape
perfectly fine...
except when sending the url (i.e.
test.jsp?ID=25#foo)
from a servlet using sendRedirect.

then IE has big problems.
The call results in calling the jsp with
prameter ID and value "25#foo"

I think this is an IE problem, but I'm
not quite sure.

Has anybody encountered the same
Problem? Anybody got an idea?

Thanks,
    Sebastian.


--
-------------------------------------------------------------
 Sebastian Mangels
 freiheit.com Technologieberatung
GmbH
 Westend Village, Haus 6a, Loft 636
 Theodorstrasse 42-90              Tel.:
+49 40 890 584 - 0
 22761 Hamburg                     Fax.:
+49 40 890 584 - 20
-------------------------------------------------------------