需要帮助URL重写Spring框架J2EE使用Tuckey Filter

我在apache tomcat 5.5上使用带有spring framework 2.0的J2ee应用程序。 我使用URL映射将扩展名从.jsp更改为.htm。我有一个看起来像这样的网址
localhost:8080/promotion.htm?cid=12345
。 我想把它改成
localhost:8080/12345
有人可以帮我写一个规则,使用tuckey URL重写过滤器在urlrewrite.xml中执行所需的重写 这就是我在web.xml中提到的
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewrite Filter</filter-class> </filter>
我只需要更改为
http://localhost:8080/12345
的URL。我不希望任何重定向发生。我只需要一个干净的URL,以便URL看起来整洁。我自己尝试了很多规则,但没有成功。 如何才能做到这一点?     
已邀请:
经过很长一段时间没有回复/评论我自己用urlrewrite.xml中的以下规则实现了这一点
 <rule>
 <from>/([a-zA-Z0-9]{1,}$)</from>
    <to >/promotion.htm?cid=$1</to>
</rule>
    
更多信息: http://www.tuckey.org/urlrewrite/manual/3.0/     

要回复问题请先登录注册