File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: Java Servlets
It's not a secret anymore!