Including output as done with JSP can be done with servlet too. You may use the
RequestDispatcher class and it's include method.
Spec says it can be used to include output of servlet, jsp or html file into
your current output. See javadoc on how to obtain a
RequestDispatcher.

Peter

"Ramaswamy, Rathnapriya (CORP, GTS, L531741)" wrote:

> Hi,
> I really also would like to know if there is any way of including a file
> within a servlet.
>
> The option here would be to convert the servlet into jsp and use the include
> syntax provided by JSP.
>
> Regards,
> Priya.
>
> -----Original Message-----
> From: suresh chaluvadi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: including html in a servlet fileURGENT
>
> Hi,
>  I'm writing a servlet file.In that I want to include
> a htnk page that was written in a seperate file.
> How to do that.I don't want to redirect to html page.
>   I just want to include html page just like including
> javascript file .js as a src.
>   Please help me in this regard.
> Thanks
> suresh
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> ___________________________________________________________________________
> 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
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
> ___________________________________________________________________________
> 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

--

Peter Huber
(IT Consultant)

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

evodion Information Technologies
GmbH & Co KG
Gesch�ftsstelle M�nchen
Witneystr.1
D-82008 Unterhaching
Telefon: +49-89-66561 - 128
Fax:     +49-89-66561 - 199
e-mail: mailto:[EMAIL PROTECTED]
Germany Web: http://www.evodion.de

___________________________________________________________________________
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

Reply via email to