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

Servlets?!?*****?!?

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
I am on the cattle drive, getting ready to plunge headlong into servlets, but I don't have any clue as to what a servlet is. Any ideas as to where I should turn for enlightenment? I am a true novice to programming AND computers in general, so I need simple language and no assumption of prior knowledge. Any help would be greatly appreciated.
I am trying to remain calm, but inside I am on the verge of panic. Anything new like this really freaks me out!
Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
Originally posted by Carol Murphy:
I am on the cattle drive, getting ready to plunge headlong into servlets, but I don't have any clue as to what a servlet is. Any ideas as to where I should turn for enlightenment? I am a true novice to programming AND computers in general, so I need simple language and no assumption of prior knowledge. Any help would be greatly appreciated.
I am trying to remain calm, but inside I am on the verge of panic. Anything new like this really freaks me out!


Hi Carol,
No need to panic.
Help is at hand. If you are really new to programming, get some programming primer to just see what the so-called programmers do for a living. I assure you it will be interesting !
Also get a basic book on Java. Anything will do. On the other hand the best resource for Java is of course the Sun's site.
As for Servlets again Sun's site for servlets will tell you all you want.
You can get lots of tutorials on Sun's page. So just check them out. And of course there is JavaRanch ! So happy learning !


------------------
Raghav.


Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.<br />- Dr. Seuss
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Thanks for your response! I found something at Sun that looks like it will answer my questions. It seems like I'm learning something whose purpose is unclear to me! Like, this is cool, but what good does it do?
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Servlets and JSPs (Java Server Pages -- don't worry about them yet, but they're like a servlet) can be used to generate dynamic content on a website.
An applet is a small application that runs on the client side, a servlet is a small application that runs on the server side.
Servlets and JSPs are used to make things like a shopping cart, a bulletin board -- any web page that needs dynamic content can be written in the form of a servlet or JSP.
That of course is just the surface of what a Servlet can do -- but it hopefully gives you an idea of their usefulness.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Okay, so if I am using my computer to run a servlet then it is acting as a server. Then when I open the web page with my browser and interact with the servlet my computer is also acting as the client? Am I getting warm?
mansoor iqbal
Ranch Hand

Joined: Aug 14, 2000
Posts: 91
i am in the same boat as jessica...
this is what i want to do: i want to make a STANDALONE application, which is browser based. there is a ofcourse a back end database as well.
the reason i want it browser based is because i want lots of animation and plug ins etc...
anyway...
i have just installed tomcat and jsdk. but i dont have the startserver.bat to start the server and my code does not compie either...
see my post on jdsk...
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328

Okay, so if I am using my computer to run a servlet then it is acting as a server. Then when I open the web page with my
browser and interact with the servlet my computer is also acting as the client? Am I getting warm?

Very warm indeed!
When you install an application server you must tell it what IP address( and port number )to serve the app. on, so it will listen for requests all the time it is running.
When someone installs, say, Tomcat on their PC the default settings are to serve on IP address 127.0.0.1 which ( not by pure coincidence ) is also the standard settings for windows software to create a connection point called "localhost" - a self explanitory name. In fact if you install ANY type of app server - cold fusion, PHP, etc they generally adhere to this standard.
Think of touching the tips of your two index fingers together. They come from opposite directions but meet at a common point. That is how a client and server work.
The standard port for JSP/Servlets is 8080 so if you open a JSP file by clicking on it in a Folder window it wont work. But if you have your app server running and you type in http://localhost:8080/file_path... you will see the output from the JSP.
Hope that (rather long) explanation helps,

------------------
Terry Doyle
Sun Certified Programmer for Java 2 Platform


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlets?!?*****?!?