• Post Reply Bookmark Topic Watch Topic
  • New Topic

When does a _jspService() run?  RSS feed

 
Vimal Kumar Venugopal
Ranch Hand
Posts: 43
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy Ranchers,

I could not bridge the connection between Servlets and JSPs. In a servlet, the service() is invoked which in turn calls the doPost() or doGet(), which ever method we decide to override. But what happens in JSP? I know that a _jspService() runs, but when?
Correct me if am wrong..

Ron
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ron Fields wrote:I could not bridge the connection between Servlets and JSPs.

Not sure why you feel you need to. The fact that JSPs are transformed into servlets is almost an irrelevant implementation detail. They both have different life cycles, and even different class loaders. The servlet lifecycle isn't relevant to JSPs at the page author level.

But what happens in JSP? I know that a _jspService() runs, but when?

Again, that's rather a moot detail unless you are planning on writing a JSP and servlet container yourself.

Perhaps this article might help on the conceptual level. If you want nitty gritty details on what's going on a lower level than is needed to know for just using JSP, the JSP Specification goes into nauseating detail.
 
Vimal Kumar Venugopal
Ranch Hand
Posts: 43
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear..

The article was of great help.. And of course it is 'nauseating'!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!