Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Life Cycle Interview Question

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks,
Bennet.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, JSP "runs" in the web container -- if by that he/you meant the servlet container.

Please see this article for details.
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks,
Bennet.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic