File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes total newby question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "total newby question" Watch "total newby question" New topic
Author

total newby question

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
I have a html doc C:/Documents and Settings/TonyCavanagh/Desktop/BrowseReason.html

I need to load it into a java 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

Tony
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

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:

file:///C:/Documents and Settings/TonyCavanagh/Desktop/BrowseReason.html

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: total newby question
 
Similar Threads
Java 3d applet and HTML
cannot access site from subdirectory
mark/reset not supported on getResourceAsStream
file path to url
2 ways of getting a RequestDispatcher