Aj 20 May
Aj 20 May
http://localhost:8082/Servlet_App1/
ii
ath
ServletContext:
aip
hM
=>ServletContext is an interface from javax.servlet package
deployed on to Server.
tes
ServletConfig:
nk
ServletRequest:
execution.
form.
ServletResponse:
ii
=>ServletResponse is an interface from javax.servlet package
ath
and which is also instantiated automatically whil service()
method execution.
aip
response.
hM
faq:
syntax:
nk
PrintWriter pw = res.getWriter();
faq:
res.setContentType("text/html");
=========================================================
Assignment-1:
ii
ath
Assignment-2:
aip
Assignment-3:
Note:
tes
=========================================================
a
*imp
nk
RequestDispatcher:
(i)forward()
(ii)include()
(i)forward():
process.
ii
SecondServlet will give the response.
ath
(SecondServlet can be replaced by JSP or HTML)
Diagram:
aip
hM
a tes
nk
(ii)include():
Ve
process.
Diagram:
ii
ath
aip
hM
======================================================
a tes
nk
Ve