However, getRequestDispatcher only work for URL within the same server. It does not 
work for outside servers. For example, I want to redirect to 
http://www.yahoo.com/mail, it will not work. Correct?

> -----Original Message-----
> 
> 
> getRequestDispatcher's forward must use buffer stream to avoid 
> content flush out before forwarding, do you take care of this?
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Terence Kwan
Sent: Monday, May 08, 2000 2:44 AM
To: Orion-Interest
Subject: sendRedirect and WAP



In my servlet program, I call:
        response.sendRedirect("http://www.yahoo.com")
It works in html. However, it does not work in WAP. 

I believe that the problem is that sendRedirect creates a redirect "HTML" file (html 
file with the reference tag in it) and send it to client instead of directly redirect 
to the URL. Since the WAP cellphone cannot under html file. It cannot do redirect.

Anyway to fix it? (I tried to use getRequestDispatcher's forward, but it does not work 
neither...)

Thanks

TK

Reply via email to