Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JSP and the fly likes JSP Life Cycle Interview Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Life Cycle Interview Question" Watch "JSP Life Cycle Interview Question" New topic

JSP Life Cycle Interview Question

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

I was asked a question in Interview, "How JSP runs".

I answered,

1. JSP will transformed to Servlet

2. compiled to class file.

3. runs in web container.

but, i forgot to tell him, that response will be rendered in the client (which is browser).

He asked me again "JSP runs in web container??", I said "YES".
and I got rejected.

I strongly believe, I answered all the other questions properly.

Is this answer is right, I really had doubt. Is my answer is right??

Please help me to understand this.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62292

Yes, JSP "runs" in the web container -- if by that he/you meant the servlet container.

Please see this article for details.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Thank you so much for quick reply,

Yes, I mean servlet container.

I hope web container, is a widely used terminology for servlet container, thats why i used that word.


Don't get me started about those stupid light bulbs.
subject: JSP Life Cycle Interview Question