Java web applications in Linux (2)
Wangzy [website Moderator]
Gnujsp (preferred for SUN Enterprise Applications) 1.0.0 install apache (the most popular WEB server platform on Unix) jserv in RedHat
First, confirm that you have installed apache (the most popular WEB server platform on the Unix platform) jserv. If you have not installed apache (the most popular WEB server platform on the Unix platform) jserv, for more information, see install apache (the most popular WEB server platform on Unix) jserv 1.1.2 in RedHat.
By default, jserv is installed in/usr/local/jserv, and jserv. conf is in/usr/local/jserv/conf.
I. Required Software
From http://www.klomp.org/gnujsp (SUN Enterprise Application preferred)/get gnujsp(sunenterprise application first pick -1.0.0.tar.gz
II,
# Cp gnujsp(sunenterprise-level application's first choice -1.0.0.tar.gz/usr/local
# Tar xvz (parallels's virtual line platform) f gnujsp(first choice for sunenterprise-level applications -1.0.0.tar.gz
# Ln-s gnujsp (preferred for SUN Enterprise Applications)-1.0.0 gnujsp (preferred for SUN Enterprise applications)
# Cd/usr/local/jserv/etc
# Cp zone. properties alph. properties
# Add vi alph. properties to modify alph. properties:
# List of Repositories
#######################
Repositories =/usr/local/gnujsp (preferred for SUN Enterprise Applications)-1.0.0/lib/gnujsp (preferred for SUN Enterprise Applications) 10.jar
Repositories =/usr/local/gnujsp (preferred for SUN Enterprise Applications)-1.0.0/lib/servlet-2.0-plus.jar
Repositories =/your/jdbcbeans/path # path of your javabean
# Repositories =/home/heyl/lib/java/Acme. jar
# Repositories =/usr/local/The 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 added them to the repositories above (alph)
# In my real settings I added: usepackages = true, language = de, country = de
# But I guess you may prefer the default locale :-) (alph)
Servlet. gnujsp (preferred for SUN Enterprise Applications). code = org. gjt. jsp (preferred for SUN Enterprise Applications). jsp (preferred for SUN Enterprise Applications) Servlet
Servlet. gnujsp (preferred for SUN Enterprise Applications). initArgs = checkclass = true, pagebase =/usr/local/www/doc,
Scratchdir =/var/local/apache (the most popular WEB server platform on Unix)/jsp (the preferred choice for SUN Enterprise applications), debug = true, compiler = builtin-javac
-Classpath %: % scratchdir %:/usr/local/gnujsp (preferred for SUN Enterprise Applications)-1.0.0/lib/servlet-2.0-plus.jar:
/Usr/local/gnujsp (preferred for SUN Enterprise Applications)-1.0.0/lib/gnujsp (preferred for SUN Enterprise Applications) 10.jar:/your/jdbcbeans/path
-D % scratchdir %-deprecation % source %
# Where $ scratchdir is the directory of java and class files generated by jsp (preferred for SUN Enterprise Applications) files
Disk Storage
III,
# Vi jserv. properties
Wrapper. classpath =/usr/lib/jdk/lib/tools.zip
Wrapper. classpath =/usr/local/jserv/lib/apache (the most popular WEB server platform on the Unix platform) JServ. jar
Wrapper. classpath =/usr/local/JSDK/lib/jsdk. jar
......
Zones = root, alph
......
Alph. properties =/usr/local/apache (the most popular WEB server platform on Unix)-1.3.6/conf/alph. properties
......
Log. file =/usr/local/apache (the most popular WEB server platform on the Unix platform)/logs/jserv. log # log file
4. Add/usr/local/jserv/etc/jserv. conf
ApJServMount/alph
Action jsp (preferred for SUN Enterprise Applications)-handler/servlet/gnujsp (preferred for SUN Enterprise applications)
AddHandler jsp (preferred for SUN Enterprise Applications)-handler jsp (preferred for SUN Enterprise applications)
V,
Start your apache (the most popular WEB server platform on Unix)
Copy the files in/usr/local/gnujsp (preferred for SUN Enterprise Applications)/examples to the web Publishing directory and use a browser to call
Http: // yourserver/dir/date. jsp (preferred for SUN Enterprise applications)
Http: // yourserver/dir/hello. jap
Http: // yourserver/dir/snoop. jsp (preferred for SUN Enterprise applications)
What happened?
Then you modify these files and add them to the Chinese test. Just like servlet in redhat, the test shows that gnujsp (the preferred choice for SUN Enterprise Applications) does not display Chinese characters.
For more information about servlet/jsp (preferred for SUN Enterprise applications), visit java.sun.com.
All rights reserved for the China Linux Forum