大家看下我这代码对吗??我想实现的是在浏览器的地址栏上看到的是html的地址 <outbound-rule>
<from>^/xinxis.shtml\?method=welcome&shortId=([0-9]+)&key=</from>
<to>%{context-path}/xinxins/welcome/$1.html</to>
</outbound-rule>
<from>^/xinxis.shtml\?method=welcome&shortId=([0-9]+)&key=</from>
<to>%{context-path}/xinxins/welcome/$1.html</to>
</outbound-rule>
<rule>
<from>^/xinxi/getXinxiById/([0-9]+).html$</from>
<to>/xinxi.shtml?method=getXinxiById&id=$1&key=</to>
</rule><outbound-rule>
<from>xinxi\.shtml\?method=getXinxiById&id=([0-9]+)&key=$</from>
<to>/xinxi/getXinxiById/$1.html</to>
</outbound-rule>
超链处是用的response.encodeURL(
<%=request.getContextPath() %>+"/xinxis.shtml?method=welcome&shortId="+<%=fenlei.getId()%>+"&key="${key})
可为什么没有点超链后显示的还是原来的地址,没有自动转成html页面呢????