| | |
simple question about servlet
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
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
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?
Use RequestDispatcher.
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.
Last edited by adatapost; Jul 17th, 2009 at 3:18 am.
Failure is not fatal, but failure to change might be. - John Wooden
![]() |
Similar Threads
- simple question (Python)
- help! simple question (Python)
- HI/ I have a simple question (Domains and DNS)
- A simple question about Ram (Motherboards, CPUs and RAM)
- A Simple Question (Java)
- simple question (C++)
- Simple array question (C++)
- Servlet and JAVA Script + JSP (Java)
- This has to be a simple question to answer. (Visual Basic 4 / 5 / 6)
- Simple question (Windows Servers and IIS)
Other Threads in the JSP Forum
- Previous Thread: how to create download link for .doc
- Next Thread: JSP and MySQL
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






