Created
December 31, 2010 00:12
-
-
Save ericanderson/760520 to your computer and use it in GitHub Desktop.
For Post: Using pretty URLs with Spring and Annotations (pt3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] parts = UrlUtils.breakUri(req.getRemoteUri(), URL_POST); | |
if (parts == null) { | |
// Do code to show an archive or whatever you want when the * part is missing | |
} | |
else { | |
// parts[0] will have what you want. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment