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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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:

 
wood burning stoves
 
subject: Dynamic URLs
 
Similar Threads
how to access jsps in a different pathinfo path in the same webapp using c:url
how to encode query string.
Using Directory Path as Parameters?
servlet mapping clarification
how to remove the port number in URL