Skip to main content

Getting help content from web server (not Server-based help)

1 reply [Last post]
weberjn
Offline
Joined: 2003-11-11
Points: 0

Hi,

is it possible to get the help content from a web server, but display it using local JavaHelp (and not in the Web browser)?

At least hsviewer does not, it can display an URL like file:D:\java\jh2.0\demos\hsjar\animals.jar
but not http://myserver.com/animals.jar
(which results in "HelpSet not found")

Is this only a restriction of hsviewer?

Can JavaHelp read content from a web server?

Thanks,
Juergen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
weberjn
Offline
Joined: 2003-11-11
Points: 0

OK, the answer is: yes it is possible

[code]
URL u = new URL("http://myserver.com/animals.jar");
// or even exploded: URL u = new URL("http://myserver.com/animals/");
URL[] us = {u};

URLClassLoader cl = new URLClassLoader(us);

URL url = HelpSet.findHelpSet(cl, "Animals.hs");
System.out.println(url);
helpViewer = new JHelp(new HelpSet(cl, url));
[/code]