URLrewritefilter(Tucky) 错误

URLrewritefilter(Tucky) error

我正在尝试使用 tucky 重写 url。这是我的规则。

<rule>
    <from>^/dev/([_A-Za-z0-9.@-]*)/([a-z.-]*)$</from>
    <to>webl?handler=developers&amp;userid=&amp;action=</to>
</rule>

错误详情:

Context Path:/OPMS
Servlet Path:/dev/benjamin/webl
Path Info:null
Query String:handler=developers&userid=benjamin&action=webl

我正在 /OPMS/webl 的页面上单击此 link。为什么 </code> 变成了 "webl"?这是我的 servlet 的名称。还有为什么他们有 servlet 路径:<code>/dev/benjamin/webl?

问题是没有上下文路径。

<to context="WebAppName">/webl?handler=developers&amp;userid=&amp;action=</to>