Skip to main content

deploying javahelp in an applet

1 reply [Last post]
Anonymous

Hi,

I have a helpset (and related javahelp files) and my applet class in a
directory. When i view a html page that brings up the applet, everything
loads fine, but when i bring up the same html page that loads the applet via
http connection, i loose search functionality. I can still search through my
documentation, but when clicking on a search result, the page on the right
pane of the viewer does not change (but the highlighting to reflect the new
search results does). Anyone have any ideas on how to avoid this behavior? I
was thinking about bundling up the actual helpset and all the files it
references into a separate jar file, and have the applet load the helpset
from that jar, but i cannot seem to be able to make the applet have this
behavior.

Here is the code i am currently using to load the helpset in the applet:

final ClassLoader cl = HelpViewerApplet.class.getClassLoader
();
final URL hsURL = HelpSet.findHelpSet(cl,hsName);
hs = new HelpSet(null, hsURL);

I can provide more details if necessary. Any help would be greatly
appreciated.

Cheers!

-Charlie

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Charlie Meyer

All,

I was able to find the solution to this problem on my own, and i am posting
back on the listserv so hopefully in the future it will help someone else.

I was calling the indexer from an ant build file, which was passing in a
full path to the location of the helpset rather than the relative path, so
when a user requested information, the help viewer was looking for a path
that was unique to my machine (hence why the local copy worked properly). I
was able to debug this problem by watching the web server (jetty in this
case) log files for what files the applet was requesting.

Cheers!

-Charlie

On Wed, Jan 23, 2008 at 3:28 PM, Charlie Meyer wrote:

> Hi,
>
> I have a helpset (and related javahelp files) and my applet class in a
> directory. When i view a html page that brings up the applet, everything
> loads fine, but when i bring up the same html page that loads the applet via
> http connection, i loose search functionality. I can still search through my
> documentation, but when clicking on a search result, the page on the right
> pane of the viewer does not change (but the highlighting to reflect the new
> search results does). Anyone have any ideas on how to avoid this behavior? I
> was thinking about bundling up the actual helpset and all the files it
> references into a separate jar file, and have the applet load the helpset
> from that jar, but i cannot seem to be able to make the applet have this
> behavior.
>
> Here is the code i am currently using to load the helpset in the applet:
>
> final ClassLoader cl =
> HelpViewerApplet.class.getClassLoader();
> final URL hsURL = HelpSet.findHelpSet (cl,hsName);
> hs = new HelpSet(null, hsURL);
>
> I can provide more details if necessary. Any help would be greatly
> appreciated.
>
> Cheers!
>
> -Charlie
>

--
Charlie Meyer
Department of Computer Science - University of Illinois at Urbana-Champaign

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]