Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/Servlet Basics  RSS feed

 
Faraz Ka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am asking the basic question as I am new to JSPs. My doubt is the following line -
When a JSP is first requested, JSP engine translates it into a servlet and compiles it. Then, the servlet is run by servlet engine

The doubt is after translation JSP becomes servlet BUT post compilation it becomes what??

Thanks,
Faraz
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you're just starting out, let's take a step back: why do you think that matters? From the developer's perspective it's a JSP.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
148
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Listen to Ulf, for he is wise. The fact that servlets are used for the implementation is moot. If your JSP relies upon this fact, it's doing something wrong.

In any case, read this article to understand how JSP fits into the picture.
 
Faraz Ka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much Ulf and Bibeault. The link shared is indeed very helpful.
BTW, I'm following Murach Java Servlets and JSP 2nd Edition as I heard its a good book for the beginners. What do you say? Am I following the right material?

Thanks,
FKA
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
148
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with that particular book, but in general have not been impressed with Murach books.

The JavaRanch Bunkhouse is a great place to find out more about books.

There you will find not only lists of books on various Java and web-related subjects, but expert reviews of these books.

Take a look!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!