Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitting the URL

Status
Not open for further replies.

Enya

MIS
Dec 3, 2004
17
US
How can I split a URL (QueryString) obtained off a browser??
Could anyone please suggest solutions.

Thanks in advance.
 
Thanx 'dustyfido'!!

I have one more question - very similar to the above one.
If I had a URL say:
How would I split the strings between '/ /'??
To get:
download
sw

I've been programming in ASP for a while and relatively very new to Java programming. In ASP we use a function called 'Split' - I'm assuming this could be done in Java using StringTokenizers. I'm not sure about how StringTokenizers work.

Could anyone help me with this, please!!
Thanks in advance.
 
hey,

Just take a look at java.net package. An class called URL will allow you to manipulate URL's very easily.

java.net.URL

Joel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top