Regarding this post: how to redirect url to jsp in web.xml
it is obvious that one can make an url, for example, http://mypage.com/details/?id=20 where details is mapped to details.jsp
<servlet>
    <servlet-name>details</servlet-name>
    <jsp-file>/details.jsp</jsp-file>
</servlet>
<servlet-mapping>
    <servlet-name>details</servlet-name>
    <url-pattern>/details/*</url-pattern>
</servlet-mapping>
So, my question is as follows:
- how would I get the "/details/" parameter from the url within a .jsp (or servlet)?
- is it possible to format the url in this manner http://mypage.com/details/20/ and if so, how?
Thanks!
 
     
    