jQuery in Action, 3rd edition
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 Introducing JavaFX 8 Programming this week in the JavaFX 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
It's not a secret anymore!