Customizing the body of redirections

joe user <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hello Tomcatters!

I have an unusual question: I need to do
response.sendRedirect(String) to send clients to
various different documents on my server.  The problem
is this: sendRedirect() unfortunately sends a body
with the request ("The document you have requested has
moved.  The new document is <u>here</u>.")  This is
all great except for one minor problem...

It sets the content type to "text/html".  That's fine
for all regular <b>web</b> browsers, but
unfortunately, some WML/WAP devices see that content
type, and instead of ignoring it and completing the
redirect, they bonk out saying "cannot display that
content type."  I realize they shouldn't do that, but
I have to get this thing working on some common phones
that do act that way.  So, I need to make sure that
for WAP devices, I send WML or perhaps text/plain.
How can I do that?

Thanks!


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.