Re: *Beginner Que* - Servlet - What all do i need on my Comp to run Servlets???



On Feb 26, 5:01 am, Lothar Kimmeringer <news200...@xxxxxxxxxxxxxx>
wrote:
martian...@xxxxxxxxx wrote:
Sorry for this absolute beginner que on Servlets, but can someone
direct me to what all do i need to get started with Servlets. Would i
need Java EE SDK or can i just add a Servlet Package to a Java SE SDK
(. If yes, what exact package?) .

For running Servlets you need a server like Tomc@ or Jetty.
For running these servers you need the Java SDK (including the
compiler, otherwise JSP-pages will not be compiled). For
compiling and running servlets, you need the Java EE.

Tomc@ you can download athttp://tomcat.apache.org/
Jetty you can download athttp://sourceforge.net/project/showfiles.php?group_id=7322
All related Java-stuff you can download athttp://java.sun.com/

Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamf...@xxxxxxxxxxxxxx
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!



To start coding, you've got to intall a bit of software. There's
probably three, core components you need, and a few other peripheral
components that might get installed gradually over time.

The three major components you need are:

1. The Java Development Toolkit (JDK) for the Java 2 Standard
Edition (J2SE)
2. A Development Environment
3. An application server to test your J2EE applications.

The components I will use are:

1. JDK 6, from www.javasoft.com
2. Eclipse with the Lomboz plugins
3. The Tomcat 5.5 Servlet and JSP engine.

JDK 6 can be found at www.javasoft.com
Lomboz can be downloaded at: http:/

I got version: org.objectweb.lomboz-all-in-one-S-3.2.1RC1-200702191711-
win32.zip It was like a 200 meg download, so be prepared.

Tomcat can be downloaded at: http://tomcat.apache.org/ As I said, I'm
using version 5.5



For the development environment, I will use

Why install the JDK?

All of the products we are using, such as the Lomboz development tool,
eclipse, and Tomcat, are Java based applications. These applications
can run anywhere, on any hardware, and any operating system, so long
as that system has a Java Virtual Machine installed. The JDK provides
not only a Java Virtual Machine (JVM) and Java Runtime Environment
(JRE), but it also provides tools such as javac, javadoc and java -
jar, to compile, test, package and create documentation for you Java
applications. But for Tomcat and Eclipse (Lomboz) to run, you need to
install the JDK.

To install the JDK, I'm using Java 6 (version 1.6), you go over to
www.javasoft.com and head to downloads. Look for the JDK. You don't
need JDK with Java EE, or JDK with NetBeans (NetBeans is development
environment from Sun, similar in purpose to eclipse) Just download and
install a simple JDK.

java.sun.com/javase/downloads/index.jsp

What is an Application Development Environment?

When putting together Servlet, JSP, EJB and Java applications, you
need a program that will help you code, test, and deploy your
applications. This is the job of an application development
environment. There are a number of application development
environments out there on the market, some of which are free, and some
of which are very, very pricey.

I'm an IBM dude, so my history of Application Develop Envirnomments
includes VisualAge for Java (no longer around), WebSphere Studio
Application Developer WSAD, rebranded to IRAD), and now, IBM's
Rational Application Developer (IRAD). These development environments
are IBM based, and come with a price tag attached to them.

Now, if you can't afford IBM's pricetag, there are a few opensource
and freely available development enviornments. IBM's Rational
Application Developer is actually based upon eclipse, which is the
open-source, freely available Java development environment,
downloadable at www.eclipse.org. Lomboz is freely available J2EE
development tool that builds on top of Eclipse, just like IRAD, and
it's great to help you develop J2EE applications. I will recommend
using Lomboz. The great thing about Lomboz is that if you get familiar
with it, moving into IBM's IRAD is pretty easy.

What is an Application Server? Is Tomcat and Application Server?

The job of an application server, is to server up content from an
application. If we are building applications based on Servlets and
JSPs, then an application server would be any tool that hosts, runs,
and sends content back to a user, based on Servlets and JSPs that have
been coded. A good Servlet and JSP application server is Tomcat.

Hosting Servlet and JSP Applications with Tomcat

For learning enterprise Java development, the best way to start out is
by coding some Servlets and JSPs. To test Servlets and JSPs, you need
a Servlet and JSP engine, and the open-source, freely available
runtime environment for Servlets and JSPs is Tomcat, which can be
downloaded from http://tomcat.apache.org

Moving Beyond JSPs and Servlets

Tomcat will not host EJBs. We'd need JBoss or something to host
Servlets and EJBs together. But as a Java web container, Tomcat is
great.

As the learning progressed beyone Servlets, we might look at a portal
server, such as JetSpeed2, for hosting portlet applications, or
install JBoss, for hosting full blown J2EE applications, but for now,
Tomcat is good.

In the future, I'd probably suggest installing a database, such as DB2
or MySQL, and perhaps even a web-server, such as apache, with a few
php or perl plugins. For an easy installation of these products, you
can check out www.apachefriends.org I install the XAMPP product all
the time.

One thing you don't have to do, if you want to get started learning
J2EE, is spend alot of money. If you've got money to burn, go out and
get a super-computer, but you won't need it.

Buy a Used Dell Desktop - GX150 to a GX260 with a Gig of RAM

For me, I'm recommending a computer with 1 gig of RAM. Memory is the
biggest bottleneck in J2EE applications, but pretty much any computer
that can take a gig of RAM will be good enough for running and
developing J2EE applications. This assumes the environment will
include Eclipse with the Lomboz plugins, Tomcat and/or JetSpeed for
testing Servlet and JSP applications, and perhaps a database like
MySQL.

Personally, I bought a couple of used Dell computers, GX260s, which
have a P4, 2.0 GHz processor in them. The computer cost me $250
Canadian ($220 USD) at a used computer store on Kennedy Road in
Scarborough Ontario. A 19 inch CRT monitor cost me $50, and I paid an
extra $50 for a RAM upgrade. So, for about $350, I'm in.

And to be honest, a P3 that took a gig of RAM would have been fine. I
do alot of development and testing on a Dell GX150, which performs
extremely well.

I like checking out the Computers at this website for good, ballpark
prices on used computers:

www.factorydirect.ca

I rebuild and upgrade alot of computers. I especially like working
with Dell. I'm actually not a huge Dell fan, as I found their latitude
laptops kinda flimsy, and I do believe the computers they build are
somewhat overpriced. Plus, a neighbour bought a PC from Dell, and it
was loaded up with all sorts of "30 day trial software" which I
thought was very annoying. So, I'm not a big Dell fan. BUT, Dell makes
it incredibly easy to find and download drivers for their computers.

www.dell.com/

Why I Hate eMachines

When I buy a used computer, I always like to get a Dell tower, as
they're easy to work with, and driver support from dell.com is dead
easy. When you're imaging computers over and over again, and
constantly installing new hardware, you can't underestimate the need
for good driver support, and from that perspective, I give Dell top
marks. On the other hand, I bought an eMachine the other day and their
website had absolutely no drivers for the model. I called technical
support, and they said they had to mail me the drivers. It took like 5
days. I'll never buy another eMachine again just for that reason.

Okay, enough of a rant against eMachines.

Get a good, used computer with a Gig of RAM, and a 19 inch screen. If
you buy used, it should cost you much less than $500, which isn't a
bad investment if you're looking at getting a job that pays you a good
$50,000 annually.

By the way, my friend Kerri is using a used IBM laptop, an X30, with a
1.2GHz processor and 512 megs of RAM, and it seems to be doing okay.
When we install WebSphere, it'll choke, but for basic J2EE stuff, it
seems fine.

http://studyguides.scja.com/pebble/default/2007/02/25/1172417520000.html

-Cameron McKenzie

Free Mock Sun Java Certification Exams: http://studyguides.scja.com/ExamScam/get.jsp?

link=mockexams
Free JSR168 Portlet Tutorials: http://www.portorials.com/jsr168/index.jsp
Free Servlet, JSP and J2EE Tutorials: http://www.mcnz.com/j2ee/index.jsp

.



Relevant Pages

  • Java / J2EE Interview questions
    ... Core Java and OOP's Interview questions ... Servlets / JSP Interview questions ... What’s an interface and how will you go about implementing an ... Servlets and JSP ...
    (comp.lang.java.gui)
  • Re: Advice: Rapid self-study of backend Java programming
    ... So I just need enough GUI to get by. ... For Java, the idea is to avoid all platform-specific programming. ... Servlets and JSPs are ... Tomcat is a Servlet/JSP server. ...
    (comp.lang.java.programmer)
  • RE: Why Writers Buy Asbestos Undies
    ... Java lives fine. ... When you look at those servlets, ... those money making applications to the applications which aren't ... I think there are a few that implements SOA via SOAP ... ...
    (comp.os.vms)
  • Re: jsp servlet code seperation confusion
    ... > Microsoft Technologies and Java specifically J2EE. ... > everything I have read on servlets reference outputing HTML back to the ... Java Server Pages (JSP) can be misused by incorporating ...
    (comp.lang.java.programmer)
  • jsp servlet code seperation confusion
    ... provide more of an accurate answer considering the help group is ... Microsoft Technologies and Java specifically J2EE. ... In the last couple of years this code seperation theory has overloaded ... is servlets. ...
    (comp.lang.java.programmer)