I want to parse a descriptive-style URL with slashes (such as server/books/thrillers/johngrisham/thefirm
), in Java.
My overall idea is to handle the data I receive to do a lookup (therefore using the URL as search criteria) in a database and then return HTML pages with data on it.
How do I do this?
What you will have is an array of strings that you can then work with.
The split() method of String class can do the work, as commented Ionut before.