I have build the code for jdbc-Servlet, I made jdbc connection for Data retrieving.Now I want to call servlet,How do I call one Servlet to another Servlet?
Asked
Active
Viewed 52 times
1
-
Does this answer your question? [How do I execute multiple servlets in sequence?](https://stackoverflow.com/questions/3024949/how-do-i-execute-multiple-servlets-in-sequence) – SternK Dec 31 '19 at 05:56
1 Answers
0
RequestDispatcher rd = request.getRequestDispatcher("servlet2");
//Forwards a request from a servlet to another resource (servlet, JSP file,
// or HTML file) on the server.
rd.forward(request,response)
//Includes the content of a resource (servlet, JSP page, HTML file) in the response.
rd.include(request,response)

Sumit Singh
- 15,743
- 6
- 59
- 89
-
hello sumit singh..can you help me over here--> https://stackoverflow.com/questions/59526045/how-to-run-java-and-xml-code-fetched-from-api-into-another-fragment ... – Wini Dec 31 '19 at 08:22