This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Url from String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Url from String" Watch "Url from String" New topic
Author

Url from String

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
My war has an images folder. In my java class, I need to create an url object from string path for one of image in the images folder. how can i do this?


$Hi/\bEr
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Have looked at the Java Doc for java.net.URL ??


Regards, Rene Larsen
Dropbox Invite
Anupam Dee
Ranch Hand

Joined: Oct 18, 2010
Posts: 42

Do you want to convert String to URL object?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Url from String
 
It's not a secret anymore!