943,719 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 521
  • Java RSS
Jul 2nd, 2009
0

url case sensitive

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sharao is offline Offline
20 posts
since Jun 2009
Jul 2nd, 2009
0

Re: url case sensitive

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();
Featured Poster
Reputation Points: 1907
Solved Threads: 950
Posting Expert
JamesCherrill is offline Offline
5,768 posts
since Apr 2008
Jul 2nd, 2009
0

Re: url case sensitive

"http://localhost/PROJECT".toLowerCase();
thnx for response

where can i place the above code ( i want to run for both cases)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sharao is offline Offline
20 posts
since Jun 2009
Jul 2nd, 2009
0

Re: url case sensitive

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.
Featured Poster
Reputation Points: 1907
Solved Threads: 950
Posting Expert
JamesCherrill is offline Offline
5,768 posts
since Apr 2008
Jul 3rd, 2009
0

Re: url case sensitive

hi iam providing project path in the xml file (configuration file)
how to do it in that...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sharao is offline Offline
20 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: nullPointerException
Next Thread in Java Forum Timeline: can't install JFreechart





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC