Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL way to get last part of URL?

649509Nov 18 2010 — edited Nov 18 2010
Hi,

I'm using Tomcat 6.0.26 (JSP 1.2). In JSTL, I would like to be able to extract the current page of the request -- i.e. everything after the last "/" in the URL and before any query string. Since there is no "lastIndexOf" (as far as I can find), I wanted to know what suggestions the group has before I have to break down and use scriptlets.

Thanks, - Dave
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2010
Added on Nov 18 2010
1 comment
3,422 views