Forums Register Login

URL butchering

+Pie Number of slices to send: Send
Hi I am in a process of testing a web application. I do not have an idea on URL butchering. Can any one advise me on what is URL butchering? and how is exactly done?

Thannks a lot,

Smitha
+Pie Number of slices to send: Send
I didn't know it was called URL-butchering,

but when you navigate to a page and you want to get to a higher level on the same site, you edit the URL, hack off the end to see if you can get to some kind of menu for the section of the site you are looking at.

longer explanation

Because we know that users try to understand URLs, we have an obligation to make them understandable. In particular, all directory names should be human-readable and should be either words or compound words that explain the meaning of the site structure. Also, your site structure should support URL- butchering where users hack off trailing parts of a URL in the hope of getting to an overview page at a higher place in the site hierarchy. Of course, it is better if users can navigate your site structure using your navigation buttons, but we know that a lot of users use URL-butchering as a shortcut: Such users should get reasonable results (typically a table-of-contents-like page listing the information available at the desired level of the hierarchy).



Thank you for triggering my curiosity enough that I looked up "URL Butchering" in google and found this nice explanation.
+Pie Number of slices to send: Send
hmm i'm not sure i understand url butchering.

but if you mean pulling values from a url such as

http://www.javaranch.com

the value of ubb, f, t. Then I might be able to lead you in the right direction.

i'm going to assume your using jsp's and the code is pretty simple..

String ubb = request.getParameter("ubb");
+Pie Number of slices to send: Send
hmmm..very cool. Suppose i should refresh the screen before i look silly.


now how to do that. Well i'm not sure. I'd guess something along the lines of using substring and going from the start to the "?" maybe there is something in the api that can help ya out as well? java.sun.com
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 767 times.
Similar Threads
Happy Nigel Tufnel Day
Say4b.java
Proverbs that moved you!!
Golf War I, Today, and ...
Morality: relative or absolute?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:35:38.