Originally posted by renis balthasar:
iam new to servlets ...also i find some difficulty in running the
servlets...also i want to knew the difference between jsp and servlets...
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.
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.
A very good online books is at:
Originally posted by Himanshu Bisht:
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 ]