Roland Carlsson wrote:
>
> I have a server that runs Apache with Apache jserv and it
> works fine. But the servlet that runs on the server does
> much of the work i could do with javaserver pages. So I
> would like to start moving my servlet to jsp but i'm not
> sure how to do this... I'd guess that i have to do some
> changes in the http.conf in apache to.
What a co-incidence - I just did this today. Attached is a
snippet from the history file I keep of system changes. I
hope it helps.
Chris Kakris
"Ask not what Linux can do for you, but what you can do for Linux."
Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos
414 Gilbert Road [EMAIL PROTECTED]
Preston, Victoria 3072 61 3 94718224 - voice
Australia 61 3 94711622 - fax
Tue Jun 15 12:48:45 EST 1999
# installed gnujsp from http://www.klomp.org/gnujsp/
# howto build apache with jserv: http://www.dynamic.net.au/christos/apache/
cd /usr/local
tar xzvf /tmp/gnujsp-0.9.10.tar.gz
cd /usr/local/apache/etc
vi jserv.properties
wrapper.classpath=/usr/local/gnujsp-0.9.10/lib/gnujsp.jar
wrapper.classpath=/usr/local/jdk1.2/lib/tools.jar
mkdir /home/christos/jsp
vi servlets.properties
servlet.gnujsp.code=org.gjt.jsp.JSPServlet
servlet.gnujsp.initArgs=repository=/home/christos/jsp
vi jserv.conf
ApJServAction .jsp /servlets/gnujsp
vi httpd.conf
AddHandler jsp-handler .jsp
Action jsp-handler /servlets/gnujsp
/etc/rc.d/init.d/apache restart
cp /usr/local/gnujsp-0.9.10/examples/date.jsp /home/httpd/html/test/date.jsp
lynx http://localhost/test/date.jsp
echo "woohoo"