Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes How to embed a html file in a servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to embed a html file in a servlet ?" Watch "How to embed a html file in a servlet ?" New topic
Author

How to embed a html file in a servlet ?

ganshre
Greenhorn

Joined: Jan 05, 2001
Posts: 12
When a client requests for my servlet, i've to send a html file which is located in Public_html directory of Javawebserver. Other wise I want to send a html file to my client. Can anybody please reply me ?
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi
Do you want to redirect the request to a html file?
If yes, then you can use
response.sendRedirect(String)
where you can pass the location of the html document in the String.

Suneel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to embed a html file in a servlet ?
 
Similar Threads
How to validate HTML form using servlet
requestDisaptcher
InputStream and OutputStream in javascript??
preventing direct access to html files
send a xml file to servlet and servlet send back the xml file