permaculture playing cards*
The moose likes Cattle Drive and the fly likes Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Servlets" Watch "Servlets" New topic
Author

Servlets

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Just wondering if someone could give a few references to what someone needs to have to learn Servlets. I don't really know HTML besides what you do with applets (HTML and APPLET tags is all). Are there any books that start off with an assumption that the only thing you know in regards to servlets is basic Java?
I'd like to start looking at the servlet stuff soon, but haven't got a clue as to how they work and what I need (downloaded the JSDK 2.1, but haven't gotten any servlets to work... and those were the servlets I downloaded pre-made from Sun.)
I've been through the Sun tutorial, and they expect a lot more understanding of a wider variety of things than I have.
Thanks!
Jason
ps Feel free to move this if it should be in the Servlets forum, I just thought other Driver's would like to know, also.
Greg Harris
Ranch Hand

Joined: Apr 12, 2001
Posts: 1012
jason, i downloaded orion server through the link in the servlets assingment page... it is an easy install and quick configuration. i have it working on my desktop and laptop.
i also typed and compiled a "trivia server" program from one of the java books (Sams Teach Yourself Java 2) and it works perfectly. if you want that source code, post here and i will email it to you or put it on my website so you can download it. it does not need the orion server (or any other) to run because it creates a socket for the other computers on the network to connect to. ( there are 2 class files, on "server" and one "client" )
other than that, i do not have a clue about servlets.
[This message has been edited by Greg Harris (edited July 23, 2001).]


what?
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Thanks Greg, anything can help. I know enough about Java that I think I can muddle my way through some source code (with the help of the API's and other resources, of course). My email is jason.c.adam@lmco.com
I'll give the Orion server a try. Do you have to know all the HTTP stuff to get an ok grasp on servlets? I know there is the HTTPServlet class that you would extend when using servlets with a web server, so could you use other servlet classes to run non-browser applications?
I have several books on Java (Ivor's big ol' book, the green one with the bugs, Just Java, couple others, all at home or else I would write the titles ), none seem to have sections dedicated to servlets.

[This message has been edited by jason adam (edited July 23, 2001).]
Michael Matola
whippersnapper
Ranch Hand

Joined: Mar 25, 2001
Posts: 1746
    
    2
Installing the Orion server and just plowing right into the assignments worked for me. (Did the first 3 so far. Haven't had the extra time for the rest or do any outside reading on servlets yet.)
For assignments 1-4 you use a helper class in the com.javaranch.common package that shields away some of the complexity. Then assignment 5 you have to write without the helper class.
Greg Harris
Ranch Hand

Joined: Apr 12, 2001
Posts: 1012
okay, the files are on the way... the big one ("TriviaServer") is only 179 lines long, so it will not take too long to figure out what is going on. they did not put a lot of documentation in the source, i guess because it goes with the book, but i think you will be able to see what they are doing.
as for the HTML, i do not know that much myself. i have learned a little from creating my company website, and by looking at source code when i want to see how something is done... i plan on migrating the company site to .jsp after i get through the cattle drive and feel confident.
none of my books go into servlets enough to satisfy me, either. i am going to find one after i finish my final exams thursday.
Daniel Olson
Ranch Hand

Joined: Jan 05, 2001
Posts: 81
There are a lot of good resources for learning more about servlets on the web. Here are a few:
http://www.servlets.com/
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://coldjava.hypermart.net/servlets.htm
http://www.jspinsider.com/index.view
Amber Woods
Ranch Hand

Joined: Mar 28, 2001
Posts: 111
Thought I would add this link in case it can help: http://www.novocode.com/doc/servlet-essentials/
The other suggestion I have is to just do a search for java, servlets, and/or jsp on google.com or ask.com or whatever search engine you prefer.


"Happiness is a way to Travel, <b>Not</b> a Destination" -- Unknown
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Originally posted by jason adam:
ps Feel free to move this if it should be in the Servlets forum, I just thought other Driver's would like to know, also.

Thanks for asking here, jason. Servlets are a ways off for me yet, but I'll have lots of sources to check out when the time comes.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Servlet questions (or OOP questions or JDBC questions, etc) related to the Cattle Drive assignments are fine.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Thanks all of y'all, the resources are a definite help in learning not only how to write servlets, but what they are in general (that was my biggest problem, learning what exactly a servlet can do and what it's good for).
Now I won't be so scared once I graduate OOP... of course, at the rate I'm going with OOP-3, I will be writing my own Java web server by the time I graduate
Jason
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets
 
Similar Threads
How to download a huge file from server
Servlets Future!!
Using Sun App Server instead of Orion
Java Blueprints for Wireless
Installation issues