resin使用了struts/spring等框架与apache整合时需要注意事项

作者: 2hei 发表于2010年2月 6日 12:09
版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2010/02/resin-struts-spring-apache.html
resin使用了struts/spring等框架与apache整合时需要注意以下:

默认情况resin ResinConfigServer配置不支持除了jsp和servlet之外的其他不规则映射,apache对此类URL会返回404,或者无效的servlet,这就用到了resin的plugin_match配置。
如:
<servlet-mapping url-pattern="*.do" servlet-name="plugin_match"/>

几种常见的resin解析方式:
<servlet-mapping url-pattern="*.jsp" servlet-name="jsp"/>                  #jsp文件
<servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>    #标准的servlet
<servlet-mapping url-pattern="*.xtp" servlet-name="xtp"/>                  #resin自定义的一种格式
<servlet-mapping url-pattern="*.do" servlet-name="plugin_match"/>   #扩展匹配,如struts
| | Comments (0) | TrackBacks (0)

发表一个评论

关于这篇文章

这篇文章由2hei2010年2月 6日 12:09发布.

上一篇:device lo left promiscuous mode

下一篇:request.getScheme cann't get https in nginx proxy with apache

回到首页 或者查看归档文章

  • Powered by FeedBurner
  • Add to Google Reader or Homepage
  • Add to My AOL
  • Subscribe in NewsGator Online
  • del.icio.us/2heidel.icio.us/2hei
  • Subscribe to feed feeds