My total exposure to web delivered Java is Applets. What is the current
Java technology that you would use to create an interactive website that
requires a database to manage data on the server end? I'm looking for
the simplest technology to do this. The web server that I am familiar
with is Apache. Does Apache have built-in Java capabilities?
Thanks very much,

Signature
Knute Johnson
email s/nospam/linux/
------->>>>>>http://www.NewsDem
Daniel Pitts - 12 May 2008 20:16 GMT
> My total exposure to web delivered Java is Applets. What is the current
> Java technology that you would use to create an interactive website that
[quoted text clipped - 3 lines]
>
> Thanks very much,
Look for web application container. There are a few popular ones. I'm
personally familiar with Resin.
Also, it might be worth learning about Spring (to manage your
application) and Hibernate (for the database).
Apache is organization that creates products. I'm assuming you're
talking about Apache's httpd, which does not have built-in Java
capabilities. You can use Resin in conjunction with Apache httpd by
using proxy-pass rewrite rules. Resin can run on its own as a
web-server too.
Hope this helps,
Daniel.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
Dave Miller - 12 May 2008 21:10 GMT
> My total exposure to web delivered Java is Applets. What is the current
> Java technology that you would use to create an interactive website that
[quoted text clipped - 3 lines]
>
> Thanks very much,
Apache (the web server) does not have Java built in. Apache (the
foundation) has Apache-Tomcat which is a Servlet and JSP engine. It is
relatively simple to integrate the two via mod_proxy or mod_jk2. In both
cases Apache handles static content and transparently passes JSP and
Servlet calls to Tomcat.
You can use either Servlets or JSP to connect to resources on the server
including (obviously) your database. JSP can be thought of as html pages
with integrated java code while Servlets are more like applications that
easily handle GET, POST, etc. calls. While a Servlet can be built to
write to output and generate an html page, JSP is the better route for that.
Most db have ready made jdbc drivers to make that process relatively
painless as well.

Signature
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
Mark Space - 12 May 2008 23:44 GMT
> My total exposure to web delivered Java is Applets. What is the current
> Java technology that you would use to create an interactive website that
[quoted text clipped - 3 lines]
>
> Thanks very much,
It depends on what you mean by "interactive."
Click on links: use anything.
Forms and validation: many things do this, including I think Struts,
Java Server Faces, and Spring.
Web games, movies: get Flash.
A "J2EE Web container" is a program that sits behind a web server like
Apache and servers up Java to the web server. J2EE is a little like PHP
or CGI -- it's an add-on that allows the web server to "speak" Java and
a few other J2EE dialects (JSPs for example). Tomcat is probably the
best known J2EE container. Glassfish and WebBoss (IBM) are also often used.
And you can add a large number of frameworks to the J2EE container. And
I do mean large. Struts, Java Server Faces, Spring, Hibernate, lots
lots more. Check around the Apache website or Google. You might also
try to ask more specific questions, some folks here might be able to
give you direct advice.
Roedy Green - 13 May 2008 12:21 GMT
On Mon, 12 May 2008 15:44:29 -0700, Mark Space
<markspace@sbc.global.net> wrote, quoted or indirectly quoted someone
who said :
>Forms and validation: many things do this, including I think Struts,
>Java Server Faces, and Spring.
Each of these has a learning curve. It won't pay for one small
project. It depends on your goal -- getting your own skillset
upgraded or getting the small job done quickly.
It is the old hammers to kill gnats problem.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Hal Rosser - 12 May 2008 23:47 GMT
> My total exposure to web delivered Java is Applets. What is the current
> Java technology that you would use to create an interactive website that
[quoted text clipped - 3 lines]
>
> Thanks very much,
this book will walk you through Java Server Pages (JSP) ans Servlet
technology using Apache Tomcat server.
http://www.murach.com/books/jsp2/index.htm
Roedy Green - 13 May 2008 12:30 GMT
On Mon, 12 May 2008 18:47:22 -0400, "Hal Rosser"
<hmrosser@bellsouth.net> wrote, quoted or indirectly quoted someone
who said :
>this book will walk you through Java Server Pages (JSP) ans Servlet
>technology using Apache Tomcat server.
>http://www.murach.com/books/jsp2/index.htm
How did you come to pick that book?

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Hal Rosser - 14 May 2008 02:57 GMT
> On Mon, 12 May 2008 18:47:22 -0400, "Hal Rosser"
> <hmrosser@bellsouth.net> wrote, quoted or indirectly quoted someone
[quoted text clipped - 5 lines]
>
> How did you come to pick that book?
its the book I used to learn servlets and JSP.
take a look at it - its really good.
Roedy Green - 14 May 2008 06:36 GMT
On Tue, 13 May 2008 21:57:25 -0400, "Hal Rosser"
<hmrosser@bellsouth.net> wrote, quoted or indirectly quoted someone
who said :
>its the book I used to learn servlets and JSP.
>take a look at it - its really good.
It is just that is an obscure publisher. I wondered how you came
across it.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Hal Rosser - 14 May 2008 20:21 GMT
> On Tue, 13 May 2008 21:57:25 -0400, "Hal Rosser"
> <hmrosser@bellsouth.net> wrote, quoted or indirectly quoted someone
[quoted text clipped - 5 lines]
> It is just that is an obscure publisher. I wondered how you came
> across it.
Go to Amazon and search books for Java JSP and Servlets - that book is one
of many returned from the search, and its rating is good.
Roedy Green - 13 May 2008 11:56 GMT
On Mon, 12 May 2008 11:58:14 -0700, Knute Johnson
<nospam@rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted
someone who said :
>My total exposure to web delivered Java is Applets. What is the current
>Java technology that you would use to create an interactive website that
>requires a database to manage data on the server end? I'm looking for
>the simplest technology to do this. The web server that I am familiar
>with is Apache. Does Apache have built-in Java capabilities?
The simplest is a pure Servlet with data files. You need almost no
extra knowledge than you already have.
Next most complex would be adding a real SQL database. See
http://mindprod.com/jgloss/sql.html
http://mindprod.com/jgloss/jdbc.html
Sun JDK comes with a simple small one called Derby.
One's often used for small projects include MySQL, Derby, PostGreSQL.
For others see http://mindprod.com/jgloss/sqlvendors.html
If you don't need the bullet proofness of transaction rollback,
recovery etc. you can use an "embedded" database, just a class you add
to your jar. This simplifies deployment. Very commonly your ISP will
have installed MySQL for you and a Servlet womb, most commonly TomCat.
See http://mindprod.com/jgloss/servletwomb.html
It gets tedious embedding reams of HTML inside Java strings, since
your outputs are complete HTML pages. So people have created scores of
rinky dink ways of embedding Java code in HTML that gets compiled into
the equivalent Java code dynmacially. I find them all utterly
revolting. You might have a look at some:
see http://mindprod.com/jgloss/framework.html
Sun's basic one is called JSP.
see http://mindprod.com/jgloss/jsp.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 13 May 2008 12:19 GMT
On Mon, 12 May 2008 11:58:14 -0700, Knute Johnson
<nospam@rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted
someone who said :
>Does Apache have built-in Java capabilities?
Apache is not a product, but a group of people who write code. You
most likely want Apache Tomcat, a free, fairly simple Servlet womb. It
also serves vanilla HTML pages.
see http://mindprod.com/jgloss/tomcat.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Knute Johnson - 14 May 2008 00:59 GMT
> My total exposure to web delivered Java is Applets. What is the current
> Java technology that you would use to create an interactive website that
[quoted text clipped - 3 lines]
>
> Thanks very much,
Thanks very much for all the replies. I'm trying to avoid writing the
form and database parts of this website with Perl. I guess I'll have to
do more study.
Thanks,

Signature
Knute Johnson
email s/nospam/linux/
RedGrittyBrick - 14 May 2008 10:04 GMT
>> ...
>> to create an interactive website that requires a database to manage
[quoted text clipped - 4 lines]
> I'm trying to avoid writing the form and database parts of this
> website with Perl.
Shucks, Perl CGI DBI is the simplest way I know of to do this sort of
thing. AFAIK most Linux servers have LAMP as standard.
I'd be interested to know what you end up using.

Signature
RGB