simple question about servlet
hi all , I have a simple question , let's say we have a servlet program and a web page . the question is how to make a servlet calls the web page and sends it as a respond to any request coming to the servlet.
Is there any statement something like the data file
File dataFile = new File("Input File.txt");
I know I can send the web page by coding the web page in the servlet but I don't want it in that way I need it to be fully coded in html and just let the servlet calls it and sends it back to the request
how to do that ?
please help
alsoumhi
Junior Poster in Training
66 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
alsoumhi,
It's not easy to find a question. Do you want to write something into response buffer using servlet? or Do you want to forward request and response from one servlet to another servlet?
I know I can send the web page by coding the web page in the servlet but I don't want it in that way I need it to be fully coded in html
Use RequestDispatcher.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241