JSP server process

Explain the server process how will server identifies that and response to corresponding servlet and how it sends to that response to correct user ?

Showing Answers 1 - 1 of 1 Answers

urambu123

  • Aug 13th, 2008
 


After we request for a jsp.
There is a servlet called pagecompilor , which first parses the .jsp page to .java page.
then compiles that .java page and produces .class page.

EX.

if we have mypage.jsp

firse  myPage-jsp.java
then myPage_jsp.class
then the source code of resultant JSP-servlet page would look like the fallowing

public myPage_jsp extends httpJspbase {

   _jspService() {// what ever is coded in scriplet come here
                         }

 // you will not see any _init() or _destroy() methods here

if we look at the signature of  httpJspBase

abstract httpJspBase extend httpServlet impliments httpJspPage

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions