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,
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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.