Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!