This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL butchering

 
smitha rai
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Weinberg
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");
 
Eric Weinberg
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic