2005-09-14

url-pattern expression

SRV.11.2 Specification of Mappings In theWeb application deployment descriptor, the following syntax is used to define mappings: • A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used for path mapping. • A string beginning with a ‘*.’ prefix is used as an extension mapping. • A string containing only the ’/’ character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null. • All other strings are used for exact matches only. 1. 以'/'开始,以'/*'结果对应的是路径匹配 /../..../* 2. 以'*.'前缀扩展名跟后面用户资源类型匹配 *.gif 3. 以url-pttern='/'表示匹配web context的根 4. 其它的url-pattern格式用于具体匹配

1 Comments:

Blogger Gary said...

New Memeorandum Great Blend Of Top Blog & News Material
New site Memeorandum provides a Google News-like clustering of news stories and blog commentary on various topics.
Great blog! I'm bookmarking it as I write this!

By the way, I have a blog too. It gives useful information on everything to do with finding your dream woman - from relationships to where and how to talk to women. It’s for Average Guys like you and me to help us find our dream women.

Did you know that most women don’t care what you look like, they’re more concerned with your feelings and how you treat them. By the way, the site is written by women to men, so everything is coming from firsthand sources. Come check out my blog sometime, you’re sure to find some great hints and tips THAT ARE REALLY USEFUL to help you find your dream woman.

3:09 AM  

Post a Comment

<< Home