• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are Servlets ?

 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have in mind going to a business oriented website (which makes sense at this point in my skills progression) and have decided to use Java Script on the Client side and very very likely JAVA on the server-side because it lends it's self to server-admin's security needs.

My mind is saturated right now, so I am asking the obvious to be sure.

Servlets are the base server-side employment of JAVA technology.

Is this correct ? I just want to make sure I read the right docs and books.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is correct.

There is a link to the servlet spec in my signature.
The first few sections contain a high level descriptions of servlets.
It's a great place to start.

Good-Luck
[ January 07, 2007: Message edited by: Ben Souther ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
That is correct. There is a link to the servlet spec in my signature.

Thank you, already opening the window.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets and JSPs certainly are the server side components that make Java based websites work. And the admin part can be as simple or as complicated as you want to make it.

For my own websites, which I just recently converted from php to Java, I just work on a war locally, and when I think it's ready, I just copy it to my Tomcat server. It's hardly much admin at all.

Have fun with Servlets and JSPs.

-Cameron McKenzie
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cameron W. McKenzie:
....I just copy it to my Tomcat server. It's hardly much admin at all.
....
-Cameron McKenzie


All I have had time to do so far is take the link the noted in the first reply, get the zip file and open it up. I obtained server space and wish to do a business-oriented website, but tend to race ahead of my skills.

If and when you have the time and interest, expand on the above two sentences. All I have noted is that the built-in index page uses Tomcat, I asssume that I can just take the sources returned by this built in page and study them - thus providing a seasoned place to start.

What directory do Servlets go in, and does one have to do chmod on the directory ?
[ January 12, 2007: Message edited by: Nicholas Jordan ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nicholas Jordan:

.. What directory do Servlets go in, and does one have to do chmod on the directory ?


There isn't 'a' directory for servlets.
An entire webapp can be deployed either as a war archive (jar file with a specific directory structure) or as a directory tree.
Within that webapp, there are a couple options for packging up your Java class files (including your servlet class files).

You'll save yourself a lot of time and headaches if you start out by reading a book or tutorial on servlets before starting to hack out your own stuff.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
You'll save yourself a lot of time and headaches if you.....

Okay, will take your adivice and move forward as directed.

Books can lead back here, but I wasted a lot of time re-inventing Hashtables, only to find them along with a rich toolbox of already rolling wheels in Java.

Don't want to end up like the Moose.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!