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

Differenct between Servlet ans JSP?  RSS feed

 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I want to know the difference between servlet and jsp.. I expect more and effective points from all.

Thanks in advance.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think servlets and jsp are ? Did you SearchFirst ?
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet and jsp are used to develop web application (dynamic web pages).
But which one is best for develop application.(easy and powerful)
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hers is a bit of history.
 
Vijitha Kumara
Saloon Keeper
Posts: 3997
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eswara Moorthy Nec wrote:Servlet and jsp are used to develop web application (dynamic web pages). But which one is best for develop application.(easy and powerful)

They are used for different purposes these days, JSPs for view part (front end of the application) and the Servlets for controll logic.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:Hers is a bit of history.


Thanks for your nice reply. I expect this kind of explanation.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eswara Moorthy Nec wrote:I expect this kind of explanation.

 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In simple worrds, HTML code inside Java is Servlets and Java Code inside HTML is JSP..
 
Ian Stanford
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets and JSP's are complementary. A servlet is a Java class that extends javax.servlet.Servlet. A JSP is actually compiled into a Servlet when the page is run. There are advatages and disadvantages of both of these API's and web applications tend to contain a mixture of the two. Hope this helps.

Regards
 
Vijitha Kumara
Saloon Keeper
Posts: 3997
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Ian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!