How can I parse a URL using JSP/JSTL?

Posted by codeninja on Stack Overflow See other posts from Stack Overflow or by codeninja
Published on 2010-04-09T18:40:43Z Indexed on 2010/04/09 18:43 UTC
Read the original article Hit count: 143

Filed under:
|
|

I want to capture the base path of a given url

http://mydomain.com/mypath/coolpath/favoritepath/file.htm

so basically i just want this:

/mypath/coolpath/favoritepath/

Any ideas how to do this without using straight Java?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about jstl