日期:2014-05-16  浏览次数:20835 次

apache下的action问题
我用apache跟tomcat整合后,jsp页面都出来了。但是有关action的链接问题还是无法解决。
比如有关:“action=".do?method=**"”的这些都无法显示。如何把这些丢给tomcat去处理?
我的tomcat 下的conf/workers.properties是这样配置的:

workers.tomcat_home=D:\test\Apache2\Tomcat 5.0
workers.Java_home=C:\Java\jdk1.5.0
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaXP.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)jASPer.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)webserver.jar
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.XML
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)

还有我的apache/conf/httpd.conf
添加了这些东西:
<VirtualHost *>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "D:\test\Apache2\Tomcat 5.0\webapps"
    ServerName *.test111.com:8080
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "D:/test/Apache2/Tomcat 5.0/conf/workers.properties"
JkLogFile "D:/test/Apache2/Tomcat 5.0/logs/mod_jk2.log"
JkLogLevel info
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
Alias /web "D:/test/Apache2/Tomcat 5.0/webapps/"

<Directory "D:/test/Apache2/Tomcat 5.0/webapps">
Options Indexes MultiViews
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>

对了,管理员积点德啊,小弟刚出来在IT届混不容易啊!3天前发了一贴。被拉为隐藏贴。害我3天不能发贴。。大家出来混不容易啊!~!出现问题逼不得已向各路英雄好汉请求帮忙!