Skip to main content

Two beginner's questions

1 reply [Last post]
jnejedly
Offline
Joined: 2006-03-05
Points: 0

I have a few beginer's questions concening JavaHelp. We have a j2ee application using struts, consisting of 2 projects - model and viewController (we use JDeveloper). I dowloaded latest version of JavaHelp and managed to run serverhelp example (swing doesn't interests us). First question:

- Where to put the help files? Into separate project or somewhere inside viewController ? I must define path to *.hs file
" helpSetName="path/ourHelp.hs"/>
If I use separate project, does the relative path to .hs which works in JDeveloper, stay the same after deploying on various AS (Oracle, Tomcat) ? Will I find .hs file after deploy? Or is better to have the whole help put in some unchanging subdirectory in ViewController ?

- Is it possible (I guess that with swing displying it is) to have the whole help put in single jar library? I guess no. If I have topics from some static html pages and want to jump from one to another by clicking on link, the destination page (topic) must aleready been extracted somewhere. Am I right ?

Reply viewing options

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

javahelp@JAVADESKTOP.ORG wrote:
> I have a few beginer's questions concening JavaHelp. We have a j2ee
> application using struts, consisting of 2 projects - model and
> viewController (we use JDeveloper). I dowloaded latest version of
> JavaHelp and managed to run serverhelp example (swing doesn't
> interests us). First question:
>
> - Where to put the help files? Into separate project or somewhere
> inside viewController ? I must define path to *.hs file > helpBroker="<%= helpBroker %>" helpSetName="path/ourHelp.hs"/> If I
> use separate project, does the relative path to .hs which works in
> JDeveloper, stay the same after deploying on various AS (Oracle,
> Tomcat) ? Will I find .hs file after deploy? Or is better to have the
> whole help put in some unchanging subdirectory in ViewController ?

I haven't done much with server development and definately none with
JDeveloper so I'll have to make some generalized statements. You'll need
to decide where to put the helpset files for both development and
deployement. Generally speaking making it relative to the code base
makes constructing a URL a bit easier, but you can put it where ever you
desire.

>
> - Is it possible (I guess that with swing displying it is) to have
> the whole help put in single jar library? I guess no. If I have
> topics from some static html pages and want to jump from one to
> another by clicking on link, the destination page (topic) must
> aleready been extracted somewhere. Am I right ?

For a web based application you generally don't want to put the entire
helpset into a jar file. This is because you would have to pull the
entire helpset accross the wire instead of individual files (much more
preferable). Now if the application is going to be stored locally that
is another matter, but that is rarely the case.

Binky

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

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.