urlrewrite多参数重写 多参数

来源:互联网 发布:网络歌手小螃蟹舞蹈 编辑:程序博客网 时间:2024/06/09 14:28

在urlrewrite.xml中配置重写的参数的时候要注意&用&代替。参数后面的值用$123456---依次代替

 <rule>
  <from>^/small/([0-9]+)/([0-9]+)/([0-9]+)/sort.jsp</from>
  <to>
   /goodsrent!getAllPsubclass.action?bigId=$1&amp;mypsubclass=$2&amp;currentPage=$3
  </to>
 </rule>

在页面上多参数的写法为:

small/${goodslist.id}/${goodslist1.id}/1/sort.jsp

x相对应的中间为你所传递的参数!!