Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Site Redirect


  • From: mailing_list_sg@xxxxxxxxx (Kwan Hon Luen)
  • Subject: Site Redirect
  • Date: Tue, 31 Oct 2000 20:56:41 +0800

Hi ,

    I understand that using the RequestDispatcher() will let this servlet B
return the contents to the client instead of servlet A.

    Is there a way to use this RequestDispatcher() to send an image file
e.g. gif or wbmp, back to the client??


Rdgs,
Hon Luen




> From: "Kwan Hon Luen" <mailing_list_sg@xxxxxxxxx>
>
> >     Is there another way of redirecting request?
> >
> >     Is there a way such that the message can be passed to servlet B from
> > servlet A directly by not using sendRedirect??
>
> The three ways to get the RequestDispatcher are as follows:
>
> 1. ServletContext.getRequestDispatcher();
> 2. ServletRequest.getRequestDispatcher();
>
> and from 2.2 onwards
> 3. ServletContext.getNamedDispatcher();
>
> The two methods to use on RequestDispatcher are .forward() and .include().
>
> There lot of material on how these methods behave and how to use these
> methods on the servlets interest list archive available at the link
> http://archives.java.sun.com/archives/servlet-interest.html
>
> Just search for RequestDispatcher on the above link and all you will find
> answer to all your questions.
>
>
> > Rdgs,
> > Hon Luen
>
> Regds,
> Gokul


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx