aspose file tools*
The moose likes Servlets and the fly likes regarding servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding servlets" Watch "regarding servlets" New topic
Author

regarding servlets

renis balthasar
Greenhorn

Joined: Dec 03, 2005
Posts: 2
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

Joined: Oct 15, 2005
Posts: 163
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

Joined: Nov 10, 2005
Posts: 77
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

Joined: Nov 06, 2000
Posts: 1510
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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Himanshu Bisht
Ranch Hand

Joined: Aug 27, 2004
Posts: 96
Originally posted by Chidanand Chauhan:

Servlet and jsp both are server side programming language.


Is it
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding servlets