Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-06-2005, 12:56 PM   #1 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
Getting started with Servlets

I am in the process of researching technologies for a web application - our main codebase is written in Perl, but for this application I decided it might be better to look at other technologies. I originally thought PHP5, but after spending much of the day looking at it, I think Java Servlets might be better suited seeing as how I'm used to a more type-oriented language. I don't claim to know Java well, but I know the basics of writing applications, and have spent a fair amount of time on the Swing tutorial as well as the API docs. I also have a pretty good handle on Object Oriented concepts from programming C++, but Java is slightly different and it might take a bit for me to get used to that.

What I dont know much about is where to get started with Servlet programming. We have a web server set up running our Apache server on port 80 - this runs our core website, and I would need to write this tool to fit somewhere into that system. Currently the server runs PHP and mod_perl, I have heard about things like Apache Tomcat and Catalina, but I'm not sure what I'd need for my project. I'm going to start researching now but I figured I would post this question so I can check back on it and compare my results to the answer(s) here.
fp_unit is offline   Reply With Quote
Old 07-06-2005, 01:38 PM   #2 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
Tomcat will allow you to get started with servlets. There are obviously tons of books, articles, etc. on the subject. Good luck!
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote
Old 07-06-2005, 02:00 PM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,151
Belisarius is on a distinguished road
You'll want to install mod_jk (mod_jk2 is an abandoned project, don't use it) in Apache. That will connect any processing of jsp's with Tomcat (which you'll also have to install). Tomcat is the defacto open source server for servlets and JSPs. If you want a J2EE server, I'd suggest looking into JBoss, which is based around Tomcat for the Servlet/JSP aspect, but serves up EJB's itself.

Catalina is synonymous with Tomcat - Catalina is the engine name.

The absolute best book on this stuff that I've come across is actually an exam study kit entitled "SCWCD Exam Study Kit" my Hanumant Deshmukh, Jignesh Malavia and Matthew Scarpino. I've read a number of JSP/Servlet books, and this is the one that presents all the information you need to know in the easiest to understand manner. Be sure to get the Second Edition, which was just released a couple months ago.

Note that this isn't a Tomcat book, but rather a book on J2EE technology in general. It'll tell you what to do with an already-setup Tomcat, but not how to set it up in the first place - that requires a different book. I would advise against an all-in-one book to the subject, as it would end up being a jack-of-all-trades, master-of-none deal.

The easiest thing in the world, though, is to run Tomcat without Apache. Tomcat will work as a webserver just fine - it just isn't as versitile as Apache. I'd prototype on a stand-alone Tomcat server.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 07-06-2005, 04:00 PM   #4 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
Thanks for the help guys.

I think I'll play with a local Tomcat environment, see what I can come up with. I probably wouldnt need to talk the boss into buying a new server - seeing as how this is just an internal application, speed isn't a concern. I think I'll look alot deeper into mod_jk, and if that doesn't suit well for whatever reason on the production server, I can always run a full out Tomcat installation on another port, which isn't really the end of the world. And if the boss doesn't like those solutions he can shell out some cash for a new dual-core opteron server!

Thanks again
fp_unit is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Classes started with C++ classes and now I'm lost...HELP cleverest Standard C, C++ 15 04-24-2005 04:29 PM
If Then Statement domino44319 MS Technologies ( ASP, VB, C#, .NET ) 2 04-06-2005 11:52 AM
classes and servlets .. oh my sde Java 3 04-27-2004 08:00 AM
Getting started Booker44 Standard C, C++ 10 12-27-2003 12:32 PM


All times are GMT -8. The time now is 11:13 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting