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

Similar Messages

  • 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

  • While i integrate crystal And Jsp I got the Error messgae- any one help Me

    While i run my jsp ,i can view these error msg in server log file. please any one help to me....java.io.IOException: Unable to recover report source java.io.IOException: Unable to recover report source     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.readExternal(Unknown Source)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1207)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
         at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1369)
         at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:864)
         at org.apache.catalina.session.StandardManager.load(StandardManager.java:440)
         at org.apache.catalina.session.StandardManager.start(StandardManager.java:655)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3585)
         at org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfig.java:614)
         at org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
         at java.lang.Thread.run(Thread.java:479)

    That sounds like the equivalent of a FileNotFoundException.
    ie you have told it the rpt file to load, and it can't find it.
    1 - check the spelling of the filename
    2 - where have you put the file?
    3 - What is your config for this?
    Do you have CRConfig.xml (Crystal 11) or CrystalReportEngine-config.xml(Crystal 10) in your WEB-INF/classes directory?
    That file tells it where to find the rpt files.
    I think the default is WEB-INF/lib for some reason.
    I keep my reports in the WEB-INF/reports directory
    Mine looks something like this:
    <?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
        <reportlocation>../reports</reportlocation>
        <timeout>10</timeout>     
    <keycode>[insert your keycode here]</keycode>
    </CrystalReportEngine-configuration>Hope this helps,
    evnafets

  • My developer cannot integrate webhelp into JSP and I'm not a developer.

    I have a developer in India who has never integrated
    context-sensitive topics into a JSP application and I'm only
    marginaly ahead of him, so I pointed him to the Adobe article at
    http://www.adobe.com/devnet/robohelp/articles/context_help.html.
    However, he says that while he can call the help, it always
    defaults to the welcome page.
    He sent me his code:
    javascript:ShowWebHelp('help/TASCHelp.htm',1,HH_HELP_CONTEXT,
    14)
    I also gave him an .h file named TASC_Help_mapfile.h and an
    example of the mapID lines go as follows:
    #define Getting_Started 14
    I asked him why it was different than the code in the
    example.
    <a
    href="javascript:RH_ShowHelp(0,'WebHelp/default.htm>WithNavPane',
    HH_HELP_CONTEXT, 5)">Help</a>
    However, being in India, I don't expect to hear from him till
    tomorrow.
    In the mean time, can anyone tell me if what he wrote is
    acceptable and if it isn't, where he went wrong that I can point to
    him when he gets back to me?

    I am no expert with javaScript, but I think that the
    difference between your developer's code and the example is only
    the name of the method call. I assume that he has written a method
    called ShowWebHelp that opens your chm file.
    Also, I think that he should be able to make as many calls as
    necessary to this method and replace the last parameter (14) with
    the appropriate MapID to open the chm file to the appropriate
    place.
    As I said, I am only guessing really, so if I am wrong can
    someone please correct me?
    Cheers
    darkagn

  • Integrate a JSP in Java?

    i know you can do it the other way round..
    but now i wonder, if you can also integrate/import a .jsp in a java-file.
    thanks for help

    getServletContext().getRequestDispatcher("/myPage.jsp").forward(request,response);
    This line is taken out of a servlet, but you should be able to apply it just fine :)

  • Swing and jsp

    hello world
    i have a projet web application with jsp. how integrate swing in jsp?
    thank you in advance

    hello world
    i have a projet web application with jsp. how
    integrate swing in jsp?
    thank you in advance1)You can Send a POST Request Using a URL
    http://www.javaalmanac.com/egs/java.net/Post.html
    2)You can get Text from the server
    http://www.javaalmanac.com/egs/java.net/ReadFromURL.html
    3)You can get Cookies
    http://www.javaalmanac.com/egs/java.net/GetCookies.html
    4)You can send cookies
    http://www.javaalmanac.com/egs/java.net/SendCookie.html
    5)You can view html pages using JEditorPane.
    also check
    http://www.javaalmanac.com/egs/java.net/pkg.html
    You need to write and handle everything

  • Building charts in a jsp page

    hi all,
    I have seen jfreechart for making charts. Iam new to jsp. so I dont know how to integrate
    jfreechart with jsp. I dont know how to start with it. can any one help me. Its very urgent.
    Pls show me the coding to implement a bar chart in a jsp page fetching values from the database and things to be configured for making it.
    thanx
    Balaji

    I've never used jfreecharts but maybe I can help you from the JSP side of the coin.I assume you are at least somewhat proficient with Java programming and if you are not then this is the wrong place to start. Think of JSP as a code generating tool. It's typically used to generate HTML or XML content. So from within a JSP page you are generating HTML to be rendered by the browser. So the 1st thing is that you have to understand what the resulting HTML page with the embedded chart would look like. Then you have to figure out how to generate the chart outside of JSP. I'm thinking that the resulting charts are images but I'm not sure because I've never used it before. You would code the Java logic to create the chart.then you can invoke that logic from your JSP to generate a chart upon request.

  • Need Information about  how to integrate with Struts

    i need information/sample code for how to integrate flex with
    jsp/struts.
    please help me

    Hi Dimitri,
    I am looking for 820,824 for ANSIX12 format.
    And i guess SAP has provided example mappings only for 810,830 and 850.
    I am unable to see the example mappings provided by sap for 820/824 in B2B mapping toolkit.
    Is there any way or place to find the example mappings for these formats?
    Regards,
    DInesh Male

  • Sytax highlighiting for Jsp Dyn Pages for portal development.

    Hey,
    I am doing JSP with the htmlb taglib for portals. When I edit a jsp page in the Developer Studio, I expect syntax highlighting. This is what I see in the documentation for jsp editing as well - you know where the keywords are highlighted.
    Sytax highlighiting for jsp in Developer Studio for portal development.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ce/e0a341354ca309e10000000a155106/content.htm
    OutputSuccess.jsp, OutputSuccessText.jsp are the two jsp's that are syntax highlighted on this page.
    In my Developer Studio this is not the case. Is a JSP editor and its highlighting not part of the Developer Studio. If it is, how do I get it to work.
    I also know that given the right taglib's, the editor also gives autocomplete for taglibs with its settings. I am hoping to speed up my development with this.
    Right now I am using a text editor for this. There are a couple of jsp plugin's such as Exadel or Lomboz which I can integrate if a jsp syntax editor is not there in the Developer Studio. I just wanted to know the right way to go about this.
    Thank you for your help.
    Sumit.

    Never mind. I was in the preview mode.

  • How can I use normal JSP-Scripting in Studio Creator pages ?

    Hello,
    if I try to integrate for example
    <jsp:scriptlet>
    for(int i=0; i < 10; i++) {
    out.println("Txt: " + i);
    </jsp:scriptlet>
    in my JSP Page it dosn't wok because the IDE complains that the jsp-document isn't wellformed due to the < sign.
    If you replace the < by and < the IDE dosn't complain any longer but you get an runtime error during execution of the page because the jsp-page can't be compiled by the jsp-compiler.
    Does everybody nows how to integrate normal jsp-scripting in the page

    Hi
    I have not copied any jar files to any folders. The default installation executes this code without any compilation errors. I am running this on Sun Application Server. I have not tried on Tomcat. But if it asks for tools.jar, you can copy this jar file to <creator-root>/java/lib directory or <Creator-root>/SunAppServer8/lib directory.
    Thanks
    Srinivas

  • JavaHelp ... help

    Hi, I was wondering how do I integrate javahelp into my current jdk (I am using 1.4.2). I've set the environment variable JHHOME so what's next..?
    I am also using Netbeans 4.0. I want to integrate javahelp into netbeans too. I've done the following:
    Tools => Java Platform Manager
    I've chosen my current java platform and under tab "Sources" I clicked button "Add JAR/Folder" and selected the src.jar to import. A weird thing is that netbeans actually sees javaHelp but does not recognise it. Specifically when I pause typing after having typed javax. the help package appears in the list. However compiler says that package javax.help.* does not exist and project won't compile.
    Any ideas?
    Thnx in advance

    Hi,
    Did you solve this problem, im using NetBeans 5.0 and im having the exact same problem, and its driving me up the wall...
    Cheers

  • JSP 2.0 as JSF component encoders - continued

    This is in continuation to this topic:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=414850&tstart=15&trange=15
    As I look further into JSP 2.0, I am more and more sold to the idea of encoding JSF components thru JSP 2.0 tag files and/or SimpleTag handlers ...
    Like, I was trying to figure out how could I derive the functionality of JSF facets from JSP tags - and the answer was amazingly straightforward - fragment attributes ... the tag could treat the fragments as facets while evaluating the body with its normal course ...
    If the benefits of tag files/simple tag handlers are felt among the JSF team, I was wondering if the tag file/simple tag handler could be made part of the JSF rendererType paradigm?
    I was wondering if it were a feasible idea to work in encoder-decoder pairs? The declarations in faces-config.xml for the renderers could be something along these lines:
    If the encoding was with a simple tag handler:
    <render-kit>
      <renderer>
        <renderer-type>Component1Renderer</renderer-type>
        <decoder>decoder.Component1Decoder</decoder>
        <encoder type="SimpleTagHandler">encoder.Component1EncoderTag</encoder>
      </renderer>
    </render-kit>
    If the encoding was with a tag file:
    <render-kit>
      <renderer>
        <renderer-type>Component1Renderer</renderer-type>
        <decoder>decoder.Component1Decoder</decoder>
        <encoder type="TagFile">/WEB-INF/tags/component1Encoder.tag</encoder>
      </renderer>
    </render-kit>
    The above may all be very far fetched but I thought I'd just put across what I had in mind.
    Thanks!

    This is in continuation to this topic:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=4
    4850&tstart=15&trange=15
    As I look further into JSP 2.0, I am more and more
    sold to the idea of encoding JSF components thru JSP
    2.0 tag files and/or SimpleTag handlers ...
    As has been pointed out by others, this isn't feasible at all unless JavaServer Faces were to choose JSP 2.0 as the minimum platform. However, even if that were to happen, there are some crucial problems in at least two dimensions:
    * JavaServer Faces integrates nicely with JSP, but does not
    require it. Therefore, the encoding functionality of a
    component (or renderer) needs to operate correctly even for
    a non-JSP rendering environment. How can that be reconciled
    with a desire to use JSP-specific rendering capabilities?
    * JSP 2.0 is very cool, but it doesn't deal at all with the
    issue of handling an incoming request. Therefore,
    a solution that uses JSP as a templating environment (which
    violates the "don't require JSP requirement as mentioned in
    the previous paragraph"), will STILL require some non-JSP
    functionality to do the decoding, validation, and event handling
    parts of the application. To me, it does NOT seem like forcing
    component writers to master two technologies (instead of one)
    would make JavaServer Faces easier to use.
    Implementation technology aside, the logic of decoding (what request parameters do I look at?) is very tightly coupled with the logic of encoding (what markup do I generate?). Splitting those two aspects of the problem into different source files, implemented with different technologies, and requiring changes in both placeds when you make changes, seems like something that goes against all the best practices design principles we've all been learning over the past several decades.
    If JSP had a way to express the functional logic needed for handling events, validations, and calls to business logic, I might be more sympathetic to this approach -- but it doesn't. It is also interesting to note that Struts (among many other frameworks) has embedded markup generation for user interface components in Java logic (in the case of Struts, it's in the HTML tag library) from the very beginning. Why should it be OK there (and 75,000 downloads per month says it's pretty popular) and not in JavaServer Faces?
    Further, why should a page author that is just using components give a rip what the implementation technology is? Isn't that a concern solely of the component writer? I would contend that anyone who builds a non-trivial component, in any technology framework, is going to need functional programming knowledge (be it Java, VB, C#, some XML-based variant, JavaScript, whatever) anyway. Rendering is about 20% of the problem -- the 80% that still needs to be solved is going to require programming knowledge anyway. And JSP, even with all the fantastic things added in 2.0, doesn't address any of those needs.
    Craig McClanahan

  • 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 !

  • Sytax highlighiting for jsp in Developer Studio for portal development.

    Hey,
    I am doing JSP with the htmlb taglib for portals. When I edit a jsp page in the Developer Studio, I expect syntax highlighting. This is what I see in the documentation for jsp editing as well - you know where the keywords are highlighted.
    Sytax highlighiting for jsp in Developer Studio for portal development.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ce/e0a341354ca309e10000000a155106/content.htm
    OutputSuccess.jsp, OutputSuccessText.jsp are the two jsp's that are syntax highlighted on this page.
    In my Developer Studio this is not the case. Is a JSP editor and its highlighting not part of the Developer Studio. If it is, how do I get it to work.
    I also know that given the right taglib's, the editor also gives autocomplete for taglibs with its settings. I am hoping to speed up my development with this.
    Right now I am using a text editor for this. There are a couple of jsp plugin's such as exadel or lomboz which I can integrate if a jsp syntax editor is not there in the Developer Studio. I just wanted to know the right way to go about this.
    Thank you for your help.
    Sumit.

    Never mind. I was in the preview mode.

  • Need help on Flex JSP tag library

    I am new to Flex and currently developing portlets where I
    need to integrate Flex into JSP pages. According to various
    documents from Adobe and other online discussions, this can be done
    with Flex JSP tag library. It appears that the taglib used to be a
    separate package that you could download but no longer available (I
    was only able to find a few broken links). Instead, the library is
    now part of the LiveCycle DS product according to Adobe. However, I
    have downloaded LiveCycle DS and couldn't find the necessary taglib
    in the package. Your help will be highly appreciated.

    I'm trying to do the same thing you are. Its mentioned that
    the library is part of LifeCycle DS but I couldn't find it in there
    either.
    Here's a site I found where you can download
    FlexModule_j2ee.zip It includes some instructions too.
    http://opensource.adobe.com/wiki/display/flexsdk/Downloads
    Here are some other links which may be helpful.
    http://livedocs.adobe.com/flex/3/html/help.html?content=apache_2.html
    http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers, _and_Flex_Builder
    http://download.macromedia.com/pub/labs/flex_mod_apache/flex_mod_apache.pdf

Maybe you are looking for

  • Time Capsule Connection Help Needed (Flashing Amber)

    Guys, I've been trying to troubleshoot my Time Capsule connection for a week now and I have had zero luck.  I have a Imac with OSX 10.6.8  that uses AirPort v 5.6.1.  I have a Cat-5 (ethernet cable) plugged from my Time Capsule port (looks like this

  • Is there a way to retrieve contacts accidentally deleted?

    Several times recently I have entered a lot of info in the 'notes' section of a contact, inadvertently swiped my finger (in that section) and brought up the red delete option. In trying desperately to NOT delete the info, I somehow must hit Delete an

  • 1Z1-554-ENU: Oracle ADF Essentials exam, beta results?

    Hello, The results for '1Z1-554-ENU: Oracle Application Development Framework Essentials' where supposed to be made available yesterday, but there is no sign yet. I was logging in to my PEARSON VUE account, but there when clicking 'View Results' link

  • HELP PLEASE. MY GARAGE STOP SOUNDING

    HI. I have used the garage band for first time yesterday. i used a few tracks, some digital from the G.Band and a couple of instruments; voice and guitar. I used a few effects. It worked perfectly. But today when i started it on THE SOUND SIMPLY HAS

  • Exchange 2007 Certificate Expired Error when using VPN

    We recently did a server migration to a new domain (split away from part of the company - sept 2013).  I set up the exchange certs and everything worked fine, even when people used the vpn.  Recently (it probably started a few months ago) it has star