• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding servlets

 
renis balthasar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
iam new to servlets ...also i find some difficulty in running the
servlets...also i want to knew the difference between jsp and servlets...
thanks
renis
 
Michael Duffy
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by renis balthasar:
hai,
iam new to servlets ...also i find some difficulty in running the
servlets...also i want to knew the difference between jsp and servlets...
thanks
renis


What is your difficulty?

Start with a good tutorial or book.

A servlet is a Java class that runs in a servlet container, listening for HTTP requests from clients.

A Java Server Page is a template for an HTML page that is compiled into a servlet for execution. Think of a JSP as an HTML factory.

I highly recommend Hans Bergsten's JSP book from O'Reilly.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Renis
Welcome to Javaranch. You would be very confortable while sharing your problem in this forum.

If you are a new in Servlet then Go and purchase "HEAD FIRST SERVLET & JSP" By Kathy Sierra,Bert Bates, Bryan Basham.

Now you asked what is the differnce between the servlets and jsp? I will explain you.



Servlet and jsp both are server side programming language. but the difference is that the Jsp contains the server side code as well as html code( which is for the view for the client/user).

jsp is automatically tranform into servlet during the translation time.

whenever the servlet code is changed then the user has to recompile the servlet and redeploy the servlet restart the web application(Tomcat/weblogic/websphere/jboss/jrun etc).
But in jsp the programmer doesn't bother about the recompilation, redeployment and restart the web server. all done by the Jsp container.

Today everybody knows that the changes in teh web application is done at the client side rather than the server side. Thats why jsp is suitable.


 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As others have posted, you are better off getting one of the tutorials online. Then, if you have any specific questions, you can post them here.

A very good online books is at:

Core Servlets
 
Himanshu Bisht
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chidanand Chauhan:

Servlet and jsp both are server side programming language.


Is it
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Himanshu Bisht:


Is it


Well, they're not "programming languages", but they are both server-side mechanisms.

Please read this if you think otherwise.
[ December 28, 2005: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic