gnujsp1.0.0 installation based on Apache Jserv under Redhat
First confirm that you have installed Apache Jserv, if you have not installed Apache Jserv, please refer to the "Install Apache Jserv 1.1.2 under Redhat" article.
The default jserv is installed under/usr/local/jserv, jserv.conf under/usr/local/jserv/conf
One, the required software
Get gnujsp-1.0.0.tar.gz from http://www.klomp.org/gnujsp/
Two
#cp gnujsp-1.0.0.tar.gz/usr/local
#tar Xvzf gnujsp-1.0.0.tar.gz
#ln-S gnujsp-1.0.0 gnujsp
#cd/usr/local/jserv/etc
#cp zone.properties alph.properties
#vi alph.properties Modify Alph.properties Add:
# List of repositories
#######################
Repositories=/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar
Repositories=/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar
repositories=/your/jdbcbeans/path# the path of your JavaBean
#repositories =/home/heyl/lib/java/acme.jar
#repositories =/usr/local/webl-3.0/lib/webl.jar
# Classloader Parameters
#########################
Autoreload.classes=true
# Enable Servlet resourced autoreloading (properties and other
# Loaded resources)
Autoreload.file=true
...
# Servlet Aliases
##################
# note:if using WEBL or ACME stuff, add the jars here too
# If you are added them to the repositories above (Alph)
# in me real settings I added:usepackages=true,language=de,country=de
# but I guess you prefer the default locale:-) (Alph)
Servlet.gnujsp.code=org.gjt.jsp.jspservlet
Servlet.gnujsp.initargs=checkclass=true,pagebase=/usr/local/www/doc,
Scratchdir=/var/local/apache/jsp,debug=true,compiler=builtin-javac
-classpath%classpath%:%scratchdir%:/usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar:
/usr/local/gnujsp-1.0.0/lib/gnujsp10.jar:/your/jdbcbeans/path
-D%scratchdir%-deprecation%source%
#其中 $scratchdir Directory of Java and class files generated for the JSP file
Save
Three
#vi Jserv.properties joined
Wrapper.classpath=/usr/lib/jdk/lib/tools.zip
Wrapper.classpath=/usr/local/jserv/lib/apachejserv.jar
Wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
......
Zones=root,alph
......
Alph.properties=/usr/local/apache-1.3.6/conf/alph.properties
......
log.file=/usr/local/apache/logs/jserv.log# log File
Iv. Add in the/usr/local/jserv/etc/jserv.conf
Apjservmount/alph/alph
Action jsp-handler/servlet/gnujsp
AddHandler Jsp-handler JSP
Five
Start your Apache.
Copy the files under/usr/local/gnujsp/examples to the Web publishing directory and use the browser to invoke
http://yourserver/dir/date.jsp
Http://yourserver/dir/hello.jap
http://yourserver/dir/snoop.jsp
What, did the results come out?
Then you change the files yourself, add the Chinese test, and, as the servlet does under Redhat, the tests show that gnujsp does not have a problem with the Chinese display.
For related servlet/jsp information, please refer to java.sun.com for information