• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Servlets

 
Joe Lopes
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to call HTML file from Servlet program.
 
Edgar Sanchez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
regds
maha anna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic