読者です 読者をやめる 読者になる 読者になる

たぷつきません

おなかがでてきた。もうたぷついてるやん。

Servlet API 2.5 仕様のurl-pattern

詳細まじめに見ようとしたら、

SRV.11.2 Specification of Mappings

In the Web 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

    Java Servlet 2.5 Maintenance Release 2

たったこれだけだったっけ? /*/abc とか /*/*.ext とか面倒見てくれないなんて、もうちょっと柔軟性持てよー。