How do you access second parameter of a servlet's web.xml file?

Posted by chustar on Stack Overflow See other posts from Stack Overflow or by chustar
Published on 2010-03-30T19:22:47Z Indexed on 2010/03/30 19:33 UTC
Read the original article Hit count: 338

Say in my web.xml file, I define a servlet like so:

<url-pattern>/MyURL/*</url-pattern>

How do i access anything passed in the * in my servlet? I'm planning to use use this scheme for pretty(-ish) URLs.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp