File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63838

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] [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.


I agree. Here's the link:
subject: JSP Life Cycle Interview Question
It's not a secret anymore!