Resin 3.1 URL Rewrite

[ 2008-02-18 10:33:25 | Author: zhenhua ]
Font Size: Large | Medium | Small
在Resin3.1中提供了URL Rewrite功能,不需要使用Filter,只需要进行必要的配置即可实现。有两种方法可以使用,一种在是resin-web.xml里直接写,第二种是写在任何.xml文件中,在resin-web.xml导入。现在我们只说明第二种方式:

在resin-web.xml中加入如下代码:
<rewrite-dispatch>
 <import path='WEB-INF/rewrite.xml'/>
</rewrite-dispatch>
注意路径不是从/WEB-INF/rewrite.xml,为此费了半天劲……

另外在WEB-INF下建立一个rewrite.xml,代码示例如下:
<rewrite-dispatch xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core">
 <forward regexp='^/bbs/subject/list/(\d+)/(\d+)$' target='/bbs/subjectRead.do?method=index&amp;boardId=$1&amp;page=$2'/>
</rewrite-dispatch>

例如路径/bbs/subject/list/1/12就跳转到/bbs/subjectRead.do?method=index&boardId=1&page=12
注意&以&amp;来代替。
Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=527
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=527

View Mode: Show All | Comments: 0 | Trackbacks: 335 | Toggle Order | Views: 27162
Trackback miami adipex
[ miami adipex | 2012-11-21 02:39:58 ]
Brand and Generic Drugs, Discount Pharmacy. All information about miami adipex in one place: http://perso.wanadoo.es/sociologia/adipex/miami-adipex.html
Trackback percocet
[ percocet | 2012-12-25 22:37:55 ]
Brand and Generic Drugs, Discount Pharmacy. All information about percocet in one place: http://indi.a.gp/percocet/
Trackback kenalog dose
[ kenalog dose | 2013-01-02 02:43:12 ]
Brand and Generic Drugs, Discount Pharmacy. All information about kenalog dose in one place: http://digilander.libero.it/trackselect/kenalog/kenalog-dose.html
Trackback scranton claritin
[ scranton claritin | 2013-01-07 20:34:47 ]
Brand and Generic Drugs, Discount Pharmacy. All information about scranton claritin in one place: http://digilander.libero.it/mypeople/claritin/scranton-claritin.html
Trackback ativan xr
[ ativan xr | 2013-01-10 06:06:47 ]
Brand and Generic Drugs, Discount Pharmacy. All information about ativan xr in one place: http://hem.passagen.se/vickeer/ativan/ativan-xr.html
Trackback bactrim ds price
[ bactrim ds price | 2013-01-20 22:51:05 ]
Brand and Generic Drugs, Discount Pharmacy. All information about bactrim ds price in one place: http://vevey.de.ki/bactrim-ds/bactrim-ds-price.html
Trackback soma 350 mg
[ soma 350 mg | 2013-01-26 02:46:25 ]
Brand and Generic Drugs, Discount Pharmacy. All information about soma 350 mg in one place: http://mitglied.multimania.de/zocco/soma/soma-350-mg.html
Trackback phendimetrazine dose
[ phendimetrazine dose | 2013-02-08 10:06:17 ]
Brand and Generic Drugs, Discount Pharmacy. All information about phendimetrazine dose in one place: http://top20.world.mu/phendimetrazine/phendimetrazine-dose.html
Trackback prilosec market value
[ prilosec market value | 2013-02-24 06:27:07 ]
Brand and Generic Drugs, Discount Pharmacy. All information about prilosec market value in one place: http://perso.wanadoo.es/kukaina444/prilosec/prilosec-market-value.html
Trackback get indian medicines
[ get indian medicines | 2013-03-01 09:50:45 ]
Brand and Generic Drugs, Discount Pharmacy. All information about get indian medicines in one place: http://perso.wanadoo.es/snot/tamsulosin/get-indian-medicines.html
Trackback lynn cymbalta
[ lynn cymbalta | 2013-03-10 10:31:41 ]
Brand and Generic Drugs, Discount Pharmacy. All information about lynn cymbalta in one place: http://bilque.altervista.org/cymbalta/lynn-cymbalta.html
Trackback vicodin es
[ vicodin es | 2013-04-18 07:09:11 ]
Brand and Generic Drugs, Discount Pharmacy. All information about vicodin es in one place: http://digilander.libero.it/nissan350z/vicodin/vicodin-es.html
Trackback wholesale depot
[ wholesale depot | 2013-05-30 03:34:33 ]
Brand and Generic Drugs, Discount Pharmacy. All information about wholesale depot in one place: http://digilander.libero.it/taty_graphic/flagyl/wholesale-depot.html
Trackback calgary zyrtec
[ calgary zyrtec | 2013-06-04 09:16:46 ]
Brand and Generic Drugs, Discount Pharmacy. All information about calgary zyrtec in one place: http://hem.passagen.se/orca666/zyrtec/calgary-zyrtec.html
Trackback acetaminophen
[ acetaminophen | 2013-07-04 01:49:26 ]
Brand and Generic Drugs, Discount Pharmacy. All information about acetaminophen in one place: http://perso.wanadoo.es/a.tort/paracetamol/acetaminophen.html
Trackback bontril in canada
[ bontril in canada | 2013-07-08 08:38:32 ]
Brand and Generic Drugs, Discount Pharmacy. All information about bontril in canada in one place: http://digilander.libero.it/rikkardodi/bontril/bontril-in-canada.html
Trackback hydrocodone oxycodone
[ hydrocodone oxycodone | 2013-07-19 01:05:39 ]
Brand and Generic Drugs, Discount Pharmacy. All information about hydrocodone oxycodone in one place: http://digilander.libero.it/cosmo_90/percocet/hydrocodone-oxycodone.html
Trackback modafinil off label
[ modafinil off label | 2013-08-02 08:22:45 ]
Brand and Generic Drugs, Discount Pharmacy. All information about modafinil off label in one place: http://joven.me.pn/modafinil/modafinil-off-label.html
Trackback lortab for dogs
[ lortab for dogs | 2013-08-08 07:23:35 ]
Brand and Generic Drugs, Discount Pharmacy. All information about lortab for dogs in one place: http://vigny.atspace.co.uk/lortab/lortab-for-dogs.html
Trackback houston lasix
[ houston lasix | 2013-08-23 04:41:02 ]
Brand and Generic Drugs, Discount Pharmacy. All information about houston lasix in one place: http://luvati.snn.gr/lasix/houston-lasix.html

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code