JavaHelp on JSP

I'm new to both JSP and JavaHelp. The JavaHelp documentation is not entirely clear about how to create a help page that accesses a JavaHelp Set.
First, it says to get jhtags.jar. I can't find it anywhere. Does anyone know where to get it?
Second, if I create this JSP that uses the ServletHelpBroker to access my helpSet, how will it be displayed? I have succesfully added help to an application in the menu bar and it comes up in the defaultViewer. Is that how it will come up on the website? Or will it just be the HTML files that are created for JavaHelp, with no viewer? The website is using STRUTS, so if anyone has example with STRUTS and JavaHelp that would be great as well.
Third, I have all of my help files in a .jar file. Do they need to be unjarred on my server or can I access the help set and files while in the jar?
I've done a lot of searching and can't seem to find anything. Any help is most appreciated. Thank You

hi,
I am trying to use JavaHelp in my web application. I tried serverhelp example with javahelp2_0_1 with Tomcat 5.0, it works fine. But when I tried to migrate to Orion server, I got the following errors:
Only java.io.Serializable, javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a session in a distributable web-application, not: javax.help.ServletHelpBroker@1cd4acb (class javax.help.ServletHelpBroker)
there is one line code in jsp file:
<jsp:useBean id="helpBroker" class="javax.help.ServletHelpBroker" scope="session" />
which required ServletHelpBroker to implement Serializable because it is put in the session. I check ServletHelpBroker, it is not implement Serializable interface, obviously.
Just wondering how come it works in Tomcat, not in Orion. Is it a bug in JavaHep 2.0 or a bug in Orion, how can I go around this problem?
Thanks.
Lihua

Similar Messages

  • Integrate JavaHelp in JSP

    Can anyone let me know how to integrate javahelp .hs in a jsp?

    I have done some more investigation about my UI problems with Java Help via JSP.
    Firefox has a nice Javascript Console window and I am seeing many Javascript errors reported there.
    When I first bring up the JavaHelpDemo (under tomcat 4.1.30) and click the link on index.jsp:
    To Animals - Black Bear.
    I do get the main help display window shown (TOC on left, main content window on right), but I already see a Javascript error:
    Error: top.allOpenWindows has no properties
    Source File: http://localhost:8080/JavaHelpDemo/index.jsp
    Line: 19
    Indeed, there is Javascript code in index.jsp that tries to get the property top.allOpenWindows.length to set the top.allOpenWindows array to a new window that is being created.
    This is all untouched code from the Java help 2.0 demo.
    Then, if I try to use the back button above the main content display frame, I see more Javascript errors:
    Error: top.findHelpID is not a function
    Source File: http://localhost:8080/JavaHelpDemo/update.jsp?url=http://localhost:8080/JavaHelpDemo/vertebrates/Pages/Pictures/Chimp.html
    Line: 7
    In this case, I believe that top refers to the main page which is help.jsp and I don't see the function findHelpID even loaded within the page. There is such a function in the Javascript file tree.js and that file is loaded as part of javax.top.TOCView.jsp and javax.help.IndexView.jsp so I am not sure how the Javascript within update.jsp can rightfully expect access to the findHelpID function.
    So I suspect there is some weirdness in Javascript and frame interaction that may be at the root of the problems I am seeing. I would like to get this demo app to behave properly since I then have a chance to get a real application that I am working on the help system for to work properly.
    Any one have an idea to work around this?
    Jim

  • Installing JavaHelp in Websphere

    Hi!
    I'm trying to install a javahelp web application in websphere application server 5 and somehow it doesn't work!
    It's supposed to be a server based Javahelp, invoked by a JSP in a web application. I tried to call Javahelp using the following code:
    <jh:validate helpBroker="<%= helpBroker %>"
    helpSetName="/Help/PT/CpyProd.hs"/>
    <body onload="location='JavaHelp/help.jsp'">
    It works fine on Websphere test environment and on Tomcat4.1 but it can't compile the JSP on WAS!
    I supposed that it was a problem while finding the helpset and so, I tried to do this manually using the following code also in the JSP:
    <%
    java.net.URL hsURL = new java.net.URL("http://i2sseg.i2s.local:9080/I2SHelp/Help/PT/CpyProd.hs");
    javax.help.HelpSet hs = new javax.help.HelpSet(null, hsURL);
    helpBroker.setHelpSet(hs);
    %>
    I created manually the Helpset's URL but I have a problem creating the HelpSet. I get the folowing exception:
    [17-06-2004 14:39:16:909 UTC] 25e50d5f WebGroup E SRVE0026E: [Servlet Error]-[Could not parse]: javax.help.HelpSetException: Could not parse
    java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
    java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33)
    Once again, this works fine on websphere test environment and on tomcat... (and I used the exact same WAR fine on tomcat)
    I'm also using the same .hs in all installations so, there is no problem there
    I'm running out of ideas... can anyone help me with this?
    Thanx in advance
    Filipe Teixeira

    got rid of this exception for javahelp on websphere.
    Nested Exception is java.lang.RuntimeException: Could not parse
    Got an IOException (http://localhost:9081/http://localhost:9081/.ContextName/TaxCalculatorHelp/TaxCalculatorHelpSet.hs)
    Parsing failed for null
    I noted a few things in my scenario :
    If code below is used to get the URL of helpsetName with context ,
    response.encodeURL(request.getContextPath() + "/somefolder/hsName.hs") then it creates problem with jh:validate tag
    Using 'jh:validate' tag appends servername:portnumber to the fully formed helpset name, causes the wrongly formed URL of the helpset.
    So what we need is ONLY the 'context' name, which we don't get from request.getContextPath()  (cos it returns protocol, servername, portnumber , .. ) ..
    As I am doing it in Portlets , used renderRequest.getContextPath() that solves the purpose.
    hope it helps .
    have a good day !

  • Does anyone know where i can get a tree like help document template

    Hi, I am creating an email client and want a help index like a tree structure as you would find in netbeans for example. Does anyone know where i can find such a template.
    thanks.

    You mean like [url http://java.sun.com/products/javahelp/index.jsp]JavaHelp?
    : jay

  • How to get javahelp release install path?

    How to get javahelp release install path?
    currently usage their tool <MagicHelp>.
    magichelp is multi-user help authoring tool,
    currently Support Java help 1.0/2.0.
    Home:http://www.gethelpsoft.com

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • Javahelp

    Hello, I am trying to use the serverhelp in javahelp 2.0. The following error occurs when trying to run the index.jsp page under the JavaHelpDemo context.
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I am using JBoss/tomcat 5.0 and deployed the javahelp using the ant command in the README file. I know this class exists in the javax.servlet.jar, but I believe the versions of TagAttributeInfo.class vary in the constructors depending on what version of Tomcat/JBoss's servlet/jsp jars are included. Any leads to the correct .jar file that contains the correct constructor arguments for the javahelp would be appreciated.
    Thanks in advance.
    Jay

    Hello again. Fixed my own problem, but there is a bug in the javahelp version 2.0 for serverhelp (jsp pages). I installed version 2.0 serverhelp on Tomcat 3.2 so I would be using the servlet.jar that contained the correct TagAttributeInfo class. The application runs as it should. The TagAttributeInfo class within Tomcat 4.1 and Tomcat 5.0's servlet-api.jar are the incorrect class definition for TagAttributeInfo and therefore the NoSuchMethod exception occurs.
    Be aware of this bug. Are there any plans or version updates to fix this?
    Jay

  • Exception thrown while doing a full text search in JavaHelp

    hi,
    I am using JavaHelp 2.0_02 in my web application. The Table of contents (TOC ) and the[b] Index work absolutely fine. But when I try to do a text search i get the following exception ..
    Exception while creating engine named com.sun.java.help.search.DefaultSearchEngine
    for view: javax.help.SearchView@1e20a9a
    .. java.lang.reflect.InvocationTargetException
    .. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    .. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    .. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    .. at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    .. at javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:169)
    .. at javax.help.search.MergingSearchEngine.<init>(MergingSearchEngine.java:63)
    .. at javax.help.tagext.SearchTOCItemTag.doStartTag(SearchTOCItemTag.java:77)
    .. at org.apache.jsp.javax_help_SearchView_jsp._jspService(javax_help_SearchView_jsp.java:101)
    .. at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    .. at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
    Caused by: java.security.InvalidParameterException
    at com.sun.java.help.search.DefaultSearchEngine.<init>
    DefaultSearchEngine.java:75)
    ... 28 more
    My Helpset(.hs) file is located in the Help folder of my application and the entry for search is as follows
    <view>
        <name>Search</name>
        <label>Search</label>
        <type>javax.help.SearchView</type>
        <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
       </view>
    </helpset>and the jh.jar file is located in the applications classpath.
    and I have successfully done the indexing using jhindexer
    I searched through many sites including the java forum.. but not able to find a solution.
    Can anyone help me and point out where I could have made a mistake or how to go about this
    thanks in advance

    I had approximate the same problem, and I've fixed it. In my jar file the javaHelpSearch Folder was named with a leading lower case "j". But in my helpset.hs it was with an upper Case "J"
    <name>Search</name>
        <label>Search</label>
        <type>javax.help.SearchView</type>
        <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
       </view>When the helpset is called from a folder: windows ignore it, but when the helpset is called from into a jar you must type it correct!

  • CLASSPATH problem, deploying JSP app without right to modify classpath...

    I want to deploy a JSP web app to apache server with JRun for running JSP, but I don't have the permission to copy the required library files to the classpath, nor modify the classpath to append my application's path. Is there any way to workaround? Thank you

    Well, thanks for the tip. The answer is yes and no. Yes, the jar is in my classpath, but no the lib directory containing the jar is not included in the dist directory when I clean and build the project. This only happens when I include either the JavaHelp jars or just the jh.jar (which should be all I need) in the classpath. When I read the manifest file, it's clearly looking for /lib/jh.jar, but the directory does not get created on build (whereas, the lib directory is there if the JH jars are not included).
    Makes no sense to me. Any idea as to what's happening here? The help system works great in the IDE.
    Thanks for your help.

  • How to make countdowntimer in java bean to use in jsp form

    i make an aplication in jsp with XHTML MP format..i have problem to maka a countdowntimer in java bean to use in the jsp form.could anyone help me with this problem

    Use JHelp, downloadable from Sun. This is a quit big package, you have to read a lot before applying.
    http://java.sun.com/products/jfc/tsc/articles/javahelp/index.html
    enjoy
    sergio

  • JavaHelp for web based systems

    Hi,
    Can I use JavaHelp in web based system to provide web based help using JSPs or Servlets.
    Best Regards,
    Chamal.

    Yes, as long as you conform to what the HelpSet specifies you can use Servlets / JSPs.

  • JavaHelp for web app?

    Hello,
    I'm trying to include JavaHelp for our web application.
    Has anyone used this tool or any other tool with javascript for displaying help for web apps?
    I tried to follow the browser demo that is in applet and comes with javahelp zip. It worked fine for me, but when tried to follow the same setting for the web application, I am getting this error.
    java.lang.NoClassDefFoundError: Could not initialize class com.inmedius.mentor.support.amecr.JavaHelpApplet
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I know it cannot find the class, but I'm not sure how to configure it.
    I have the following call to applet:
    <Applet WIDTH = 26 HEIGHT = 26  codebase="http://tetra:80/AMECR" code = "com.inmedius.mentor.support.amecr.JavaHelpApplet.class" archive="AMECR.war">
         <PARAM NAME = HELPSETURL VALUE ="AMECR/GAPIHelp.hs">
         <PARAM NAME = HELPSETNAME VALUE ="GAPIHelp">
    </Applet>Also, since applet approach is not that much favored, do you know if any other way to include this tool within web applications or any other tool that would do the same thing?
    Any input is greatly appreciated.
    Thanks,

    Yes, as long as you conform to what the HelpSet specifies you can use Servlets / JSPs.

  • JavaHelp for struts

    I have a web application which uses struts. I also have made the help file and have compiled it as a jar file. How should I integrate the help jar file in the web application.

    hi,
    I am trying to use JavaHelp in my web application. I tried serverhelp example with javahelp2_0_1 with Tomcat 5.0, it works fine. But when I tried to migrate to Orion server, I got the following errors:
    Only java.io.Serializable, javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a session in a distributable web-application, not: javax.help.ServletHelpBroker@1cd4acb (class javax.help.ServletHelpBroker)
    there is one line code in jsp file:
    <jsp:useBean id="helpBroker" class="javax.help.ServletHelpBroker" scope="session" />
    which required ServletHelpBroker to implement Serializable because it is put in the session. I check ServletHelpBroker, it is not implement Serializable interface, obviously.
    Just wondering how come it works in Tomcat, not in Orion. Is it a bug in JavaHep 2.0 or a bug in Orion, how can I go around this problem?
    Thanks.
    Lihua

  • JavaHelp and JSF VWP

    Hi,
    My first time trying to use JavaHelp. I am developing a VWP using JSF and got the following error -
    JSF1015: Request path '/faces/com_sun_webui_jsf/help/navigator.jsp' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'.
    ApplicationDispatcher[VWPTutorial] Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /com_sun_webui_jsf/help/navigator.jsp(43,40) File "/jhlib.tld" not found
    Anyone familiar with this error?
    Don

    Hi Raymond,
    Thanks for the reply. The issue we are having currently is rendering nested jsf components and in particular the centering of them on a browser page. I have a grid panel containing 3 columns containing two spacer text labels separated by another grid panel which contains the page content.
    When previewed the page looks good when the app is run the spacer text labels are not rendered....
    Any ideas welcome
    Thanks
    Jim

  • Where  tag libs related to JavaHelp can be downloaded?

    Where the JSP tag libs related to JavaHelp can be downloaded? .It was not available as part of JH2.0 downloadable.

    Thanks Ingo! I realized (while following your link) that my access profile was not containing enough roles to download the packages from the Marketplace. So, I have downloaded the installation package and installed the BusinessObjects SAP Integration Kit XI3.1. However, during the installation process I received the following error message (sorry if it is alredy the n-th time it is mentioned in this forum): "Error 1904. Module C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\CrystalExtension.dll failed to register. HRESULT -2147024769. Contact your support personnlel." And the buttons - Abort, Retry, Ignore. I have chosen Ignore and the installation has finished "successfully".
    But when I start Crystal Reports now, and I am trying to use the Open command on the SAP menu, Crystal Reports shuts down (and Windows starts looking for a "solution of the problem" - without any result, of course).
    Could this Crystal Reports shutdown be the result of that .dll registration error during the installation, or it is other known issue of the Integration Kit? Thanks a lot for any idea.

  • How to deploy JavaHelp server help demo on JBoss?

    I tried JavaHelp's server help demo on tomcat it worked fine. I was able to view all the help docs. But I need to change the configuration for the demo to work on JBoss-4.0.1. I deployed the content on Jboss but when running the index.jsp, I got this error. What am I missing? Do I need to change the implementation or what? Any input is appreciated.
    org.apache.jasper.JasperException: File "/jhlib.tld"; not found
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
           org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

    BPEL Console is for deploying BPEL projects. And when you talking about war file, those are web archive files, application server specific. Please refer to the Application Server document for deploying war files. Like for OC4J, you can do the same via Enterprise Manager.

Maybe you are looking for

  • Prem Pro CS3. Title screen resizes itself.

    Each time I open the titling screen it will gradually enlarge the two left hand panels (a little each time I open it) eventually squeezing the right hand side properties panel (fonts etc) down to almost nothing. I have to keep dragging things back to

  • I have an idea for physical keyboard lovers

    When I got my first iPhone 1st generation, I struggled to get used to the touch screen keyboard. I always wished to somehow modify the phone to have one. I eventually got used to the keyboard and its not bad. But with the release of ios4 and the abil

  • Adobe Story won't start

    Hi, I'm a new subscriber and am kinda alarmed by the first non-Photshop thing I try to use, doesn't seem to work. I'm trying to connect to Adobe Story, and when I log in and connect, the screen goes gray, there's the little "Adobe Story" dialog with

  • Sound Blaster SE, driver not install

    Hi, I just went out and bought Sound Blaster SE and installed it on my computer. But, no sound... so I uninstalled it fully and came here and downloaded the newest driver, I installed it and still.. no sound. So I came here and followed all of the gu

  • Help wanted for making a picture page in Dreamweaver.

    Hi for my site www.dorff.nl i want to make a page full wilth pictures.. I want to make it so my client can add pictures to this site himself with cushy. Ive just add cushy to the whole site.. so now i want to add a page full with images.. who knows h