aspose file tools*
The moose likes Servlets and the fly likes Dynamic URLs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Dynamic URLs" Watch "Dynamic URLs" New topic
Author

Dynamic URLs

ahmed yehia
Ranch Hand

Joined: Apr 22, 2006
Posts: 424
Not sure what it's called, but I want be able to have requests that look like:

http://www.mysite.com/users/myNameHere
http://www.mysite.com/posts/00007654

The resource URL part doesn't exist = not a web resource, but I want to strip it and use it much as I would use a usual request parameter.
ahmed yehia
Ranch Hand

Joined: Apr 22, 2006
Posts: 424
um, just by looking in the API, I found it can be done as simple as calling:

 
jQuery in Action, 2nd edition
 
subject: Dynamic URLs