Re: Customizing the body of redirections

Shinichi Na <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Use response.setContentType() and print the result of HTTP access to
your content using java.net.URLConnection instead of sendRedirect().

On Wed, 2 Apr 2003 18:20:39 -0800
joe user <[email protected]> wrote:

> 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?

Shinichi

___________________________________________________________________________
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.