Hello,
You should get the requestDispatcher and do an include() of your file.
something like this,
RequestDispatcher myDispatcher = request.getDispatcher("/myHtml");
myDispatcher.include(request,response);
Check the J2EE API, ServletRequest and RequestDispatcher classes for exact method
names, but this should be close.
Have a nice day,
Xavier,
Original Message -----------------------
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
___________________________________________________________________________
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