File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
total newby question
Joined: Jun 29, 2002
Sep 14, 2006 11:02:00
I have a html doc C:/Documents and Settings/TonyCavanagh/Desktop/BrowseReason.html
I need to load it into a
program but it should be loaded as a url, is there a way I can fake it, convert the file path into some kind of url path.
Thansk for any help
Author and ninkuma
Joined: Jan 10, 2002
Sep 14, 2006 12:30:00
If the means you are using to load the page is robust enough to deal with protocols other than HTTP, the file protocol url for the file would be:
And Tony, you've been around the Ranch long enough to know that "total newby question" is a poor excuse for a topic title.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: total newby question
mark/reset not supported on getResourceAsStream
file path to url
Java 3d applet and HTML
2 ways of getting a RequestDispatcher
cannot access site from subdirectory
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015