url case sensitive

Reply

Join Date: Jun 2009
Posts: 13
Reputation: sharao is an unknown quantity at this point 
Solved Threads: 0
sharao sharao is offline Offline
Newbie Poster

url case sensitive

 
0
  #1
Jul 2nd, 2009
hi frnds

http://localhost/project

using the above url iam running my project

how to run when i type my project in uppercase

like this url http://localhost/PROJECT
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 972
Reputation: JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice 
Solved Threads: 146
JamesCherrill JamesCherrill is offline Offline
Posting Shark

Re: url case sensitive

 
0
  #2
Jul 2nd, 2009
URLs are case-sensitive, so do you want to change http://localhost/PROJECT into http://localhost/project ?
If so, the toLowerCase method in the String class will do it:
"http://localhost/PROJECT".toLowerCase();
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 13
Reputation: sharao is an unknown quantity at this point 
Solved Threads: 0
sharao sharao is offline Offline
Newbie Poster

Re: url case sensitive

 
0
  #3
Jul 2nd, 2009
Originally Posted by JamesCherrill View Post
"http://localhost/PROJECT".toLowerCase();
thnx for response

where can i place the above code ( i want to run for both cases)
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 972
Reputation: JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice 
Solved Threads: 146
JamesCherrill JamesCherrill is offline Offline
Posting Shark

Re: url case sensitive

 
0
  #4
Jul 2nd, 2009
That depends on your program! But I guess there's somewhere you have a String variable that you set from the user input, so you can use the toLowerCase on that immediately after reading it in, but before doing anything else with it.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 13
Reputation: sharao is an unknown quantity at this point 
Solved Threads: 0
sharao sharao is offline Offline
Newbie Poster

Re: url case sensitive

 
0
  #5
Jul 3rd, 2009
hi iam providing project path in the xml file (configuration file)
how to do it in that...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC