如何重写URL在Tomcat中6 [英] How to rewrite URL in Tomcat 6

查看:236
本文介绍了如何重写URL在Tomcat中6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将建立一个Web应用程序,我想使用URL重写。
在Apache中这个与mod_rewrite的完成。
但我怎么能重写URL和Tomcat 6?

I'll build a web application and I want to use url rewriting. In apache this is done with mod_rewrite. But how can I rewrite urls with Tomcat 6?

我要使用Struts 2框架。

I want to use Struts 2 framework.

推荐答案

我用 UrlRewriteFilter 一对夫妇的重要组成部分我基于Tomcat的应用程序,并已与它完全满意。

I've used UrlRewriteFilter as a critical component of a couple of my tomcat-based apps, and have been totally happy with it.

这篇关于如何重写URL在Tomcat中6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆