wood burning stoves 2.0*
The moose likes Servlets and the fly likes Java Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Servlets" Watch "Java Servlets" New topic

Java Servlets

Joe Lopes

Joined: Dec 27, 2000
Posts: 4
How to call HTML file from Servlet program.
Edgar Sanchez

Joined: Oct 12, 2000
Posts: 21
You mean to include an HTML file as part of the output generated by a servlet?
Originally posted by Joe Lopes:
How to call HTML file from Servlet program.

maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Use either .forward or .include of RequestDispatcher. A sample code is

We can forward to .html/.jsp/anyServlet resource. But the /Login/login.jsp is the virtual path of browser URL.
maha anna
I agree. Here's the link: http://aspose.com/file-tools
subject: Java Servlets
Similar Threads
Downloading HTML page
Export in Excel
Un-downloadable Applets
WA #1.....word association
Capturing Form Data