• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When does a _jspService() run?

 
Ranch Hand
Posts: 43
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear..

The article was of great help.. And of course it is 'nauseating'!
 
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic