Hi, you know on digg.com when you click on an article "This is an article" it links to a url in the form digg.com/this_is_an_article. Is this possible to do with Servlets? Seems like the parameter is being passed as part of the url but not using the typical ?story=this_is_an_article. I tried google but not sure what it's called.
Thanks.
This message was edited 2 times. Last update was at by Bart Stanz
Bear Bibeault
Author and opinionated walrus
Marshal
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.
Using a title of "Servlet question" in a forum completely dedicated to questions on Servlets isn't very helpful. What everyone named their post "Servlet question"?
Please go back and change your post to add a more meaningful subject by clicking the
Also, please read this with regards to using the term "urgent".
This message was edited 1 time. Last update was at by Bear Bibeault
Bart Stanz wrote:Hi, you know on digg.com when you click on an article "This is an article" it links to a url in the form digg.com/this_is_an_article. Is this possible to do with Servlets? Seems like the parameter is being passed as part of the url but not using the typical ?story=this_is_an_article. I tried google but not sure what it's called.
If you are using a web framework like struts 2, it should let you swap out the ActionMapper for one that uses friendly URLs. If you are doing straight servlets, you will have to do it yourself with URLRewriteFilter.
Bart Stanz
Greenhorn
Joined: Feb 06, 2010
Posts: 13
posted
0
Thanks Bear, I fixed the ambiguity in the title.
Tim: Thanks, I think this is what I am looking for. Cheers!
-Bart
Bear Bibeault
Author and opinionated walrus
Marshal