thats exactly correct, and if do not want to use forward, may be u can use a
conditional
statement

-----Original Message-----
From: Tom Drake [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:32 AM
To: Tomcat Users List
Subject: Re: Request Dispatcher


JSP provides an easier way to do what you are attempting.
However, the 'hot' include mechanism, is very much like a
function call. the output from the included jsp/servlet simply
appears in the middle of your output stream. It does not replace
the entire page.

If you need a completely different response, you may need
to use the 'forward' mechanism instead. If you do, you must
forward to the other page prior to producing any output
at all.

Tom
----- Original Message -----
From: "Scott Walter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 10:16 AM
Subject: Request Dispatcher


| I am trying to use a RequestDispatcher include with a
| JSP page, it seems to be including the content above
| the location where I have coded the include.  Any
| clues???
|
| Below is my code
| <%
| RequestDispatcher rd =
| request.getRequestDispatcher(pageName);
|
| rd.include(request,response);
| %>
|
| =====
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Scott
|
| __________________________________________________
| Do You Yahoo!?
| Find the one for you at Yahoo! Personals
| http://personals.yahoo.com
|
| --
| To unsubscribe:   <mailto:[EMAIL PROTECTED]>
| For additional commands: <mailto:[EMAIL PROTECTED]>
| Troubles with the list: <mailto:[EMAIL PROTECTED]>
|
|
|


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to