已将 apache2.2 与 tomcat6 整合,但这个伪静态 到底是怎么实现 ??apache 的httpd.conf 中,也做了相应的配置:LoadModule rewrite_module modules/mod_rewrite.so<Directory />
    Options FollowSymLinks
    AllowOverride all
    Order deny,allow
    Allow from all
</Directory><IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/task/Detail_(\d+)\.html$ $1/xsdetail.action?tid=$2
</IfModule>在 list 页面中,链接是 task/Detail_1.html,task/Detail_2.html,...点击后,并没有向 xsdetail.action 跳转,直接提示找不着 task/Detail_1.html 页面,因为这个html 本身就是虚拟的,也就是 伪静态配置未能实现,请各位指教!!!

解决方案 »

  1.   

    JavaEE做伪静态本来就不太容易,网上一把文章,没有一篇文章短小的。
      

  2.   

    不会吧,关键是不知道怎么结合apache 配置伪静态呢 。配置的步骤都在那,关键不知道为什么不起作用 
      

  3.   

    1. 确保/xsdetail.action?tid=1 可以正常访问,如果不行先解决或者采用proxy;
    2. 是不是你应该配置在VirutalHost或者location中RewriteEngine On
    RewriteRule 
      

  4.   

    To icy_csdn:xsdetail.action?tid=1 是没问题的,可以正常访问,现在情形是: apache: http://localhost/  tomcat:  http://localhost:8080然后apache 和 tomcat 整合后,都能访问 tomcat 下的工程,比如 abc,即:http://localhost/list.action  &  http://localhost:8080/list.actionabc 被设为 默认工程的,所以没加工程名也就是在 http://localhost:8080/list.action 中,点击 html 链接时,提示找不着页面,不能向
    xsdetail.action 跳转,,..........