How to include html generated by a cgi-script ?

Here's the problem:
I need to include an html-header dynamically generated by a cgi-script: "web_nav.cgi" into my jsp-page.
According to some documentation the <jsp:include page=... tag can only be used to include servlet, jsp or html files, and according to other sources it doesn't matter what technology the target uses, as long as it delivers html....
I get a "..include failed, only jsp or html files can be included" error messsage so maybe the first theory is correct.
But the problem remains: If not with the <jsp:include tag , How do I do it??
Fast help would be really appreciated.
Thnx a bunch.
/Henrik

Hi Henrik,
1. the <jsp:include page="local_url" flush="true"/>
works for local url which is context-relative only
(within the same server and same context -application-)
2. So where is your web_nav.cgi ? is it local or remote
(on another server)
3. You can do it, look into the jsp book or documentation
for either jsp:include action and jsp:include directive for your need.
--Paul

Similar Messages

  • How to include html page or html code in adobeflex 4 web application please give me a solution.

                     How to include html page or html code in adobeflex 4 web application please give me a solution.
                       Thank you
                       Chandra Sekhar

    hi,
    go thru this link, may be of some help for you
    About IFrames
    http://www.deitte.com/archives/2006/08/finally_updated.htm
    IFrame Src
    http://code.google.com/p/flex-iframe/
    About the IFrame Approach
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm

  • How to include HTML page on a screen

    Hi,
      How to include HTML page on a module-pool screen. i want to handle hyperlinks on that page. how ca n i do that?....plz send me reply vvvery fast

    Hi Amarnath,
    1. RSDEMO_HTML_VIEWER
       Check the above program.
    Regards,
    Amit M.

  • How to  include a report  into the  SAP-SCRIPT

    plz tell me 
    How to  include a report  into the  SAP-SCRIPT
    ASAP

    creat a z report like this....................
    REPORT  zmmgl_picklist1.
    TABLES : likp,ltap,ltak.
    data : lv_NUM1 type c .
    data : lv_NUM type c.
    *&      Form  get_data1
          text
         -->IN_DATA    text
         -->OUT_DATA   text
    FORM get_data1 TABLES in_data STRUCTURE  itcsy
                         out_data STRUCTURE itcsy.
    READ TABLE in_data WITH KEY name = 'LTAP-VBELN'.
    lv_NUM = lv_NUM1 + 1.
    out_data-name = 'lv_NUM'.
      out_data-value = lv_NUM .
    APPEND out_data.
    endform.
    *&      Form  get_data
          This form is to read  details from  LIKP    *
         -->IN_DATA    text
         -->OUT_DATA   text
    FORM get_data TABLES in_data STRUCTURE  itcsy
                         out_data STRUCTURE itcsy.
      READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single bldat from likp into likp-bldat where lgnum = ltap-lgnum.
      out_data-name = 'LIKP-BLDAT'.
      out_data-value = likp-bldat.
      APPEND out_data.
       READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single vstel from likp into likp-vstel where lgnum = ltak-lgnum .
      out_data-name = 'LIKP-VSTEL'.
      out_data-value = likp-vstel.
      APPEND out_data.
    READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single kunnr from likp into likp-kunnr where lgnum = ltap-lgnum.
      out_data-name = 'LIKP-KUNNR'.
      out_data-value = likp-kunnr.
      APPEND out_data.
    ENDFORM.                    "get_data.
    after this go to the script editor......
    /: perform get_data in program zmmgl_picklist1.
    /: using &ltap-vbeln&                 (Reference field.this field          should be there in both program and script.....)
    /:changing &likp-bldat&         
    /:changing &likp-vstel&
    /:changing &likp-kunnr&
    \[removed by moderator\]
    Regards
    Anbu
    Edited by: Jan Stallkamp on Jun 10, 2008 2:26 PM

  • ANT how to include NetBeans Jar  files in my script of ANT ??

    ANT how to include NetBeans Jar files in my script of ANT ??

    I mean the library say swing layout ...
    which is SwingLayOuts1.0.jar ...
    in side this there is folder org.jDesktop....
    I want this folder in my jar file ...
    also ....
    My question ... i know the path of the jar file of NetBeans .... i can copy that ...dirctly ... but if m using Netbeans editor ... can i give NetBeans class to my jar command for ANT...........

  • How to Include html tag in xml

    Hi,
    Is there any way to include html tags in xml?
    For Example, I'm using xsl to get the value of FIELD_1 from fetch.xml
    In fetch.xml, I have the tag
    <FIELD_1>
    <font color='#8080ff'>&#160;<font face='Times New Roman, Times' size='28'>Testing font and color</font></font>
    </FIELD_1>
    But If I tried to read the value from xsl like <xsl:value-of select="FIELD_1"/> I'm just gettig the display 'Testing font and color' without the specified font and color....
    How to achieve this?
    Thanks
    Selva.

    Hi,
    Thanks for the input.
    I tried with the below code
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    But I'm getting the below error...
    "An invalid XML character (Unicode: 0xa0) was found in the element content of the document."
    Below is the code included in the xsl....
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="Values"><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="3cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
    <fo:region-body/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    </fo:flow> </fo:page-sequence> </fo:root> </xsl:template></xsl:stylesheet>
    Is there any mistakes in the above code?
    Regards,
    Selva.

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • How to include html files in another html files?

    Hello,
    I am wondering if there is any way of including content (html code) inside another html page..
    I've tried:
    - iframe - it's working fine but IE7 doesn;t like it.
    I am looking for something similar with:
    - Server Site Include <!--#include virtual="/directory/included.html" -->
    but without to have to change the portal settings.
    Any idea?
    Thank you
    Anca

    HI did u try using the omniportlet? on Portlet builders

  • How to include HTML link in BI Publisher Report?

    Hi,
    I am trying to include an HTML link in a BI Publisher report. But I get the HTML Code, not the link.
    I have put this in the Data Set SQL Query:
    select id_constancia, rfc, apellido_paterno, apellido_materno, nombre, e_mail_empleado,
    'a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:'||ID_CONSTANCIA||'">CITA</a ' as liga_cita
    from geiq_constancias
    where entregada = '0' and sust_rh = '0'
    And I have included the field LIGA_CITA in the rtf template,
    But I get this in the HTML output:
    =======
    Please clic on the link below to log into the system:
    a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183">CITA</a
    =========
    (I removed the beginning and ending '<''>' to prevent the text to be shown as a link)
    I have put the property "Make HTML output accessible" to TRUE in the report configuration, but nothing changes.
    Does anyone know how to make this work?
    Thanks.
    Francisco

    Hi Francisco,
    Note:
    your xml should only have
    <URL>http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183</URL>
    Show me your sample XML , i can help you.
    What is your expected output ? PDF or HTML ?
    here it is.
    option1:
    If the XML data includes an element that contains a hyperlink , then you can use that element to create dynamic hyperlinks at runtime.
    a. insert hyperlink from word menu
    b. In the Type the file or Web page name field of the Insert Hyperlink dialog box, enter the following syntax:
    c. {ELEMENT_NAME_WHICH_HAS_URL_LINK}
    where ELEMENT_NAME_WHICH_HAS_URL_LINK is the xml data element name
    option2:
    create a form field, you can add it
    <fo:basic-link external-destination="http://www.google..com">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link external-destination="{ELEMENT_NAME}">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link>
    <xsl:attribute name="external-destination"><xsl:value-of select="ELEMENT_URL"/>
    </xsl:attribute>
           <xsl:value-of select="LINK_NAME"/>
    </fo:basic-link>

  • How to include HTML in XML for OMNIPORTLET

    I have an OMNIPORTLET where I need to display a list of names along with a link to a story if they have a story.
    The goal is to list that NAME and if they have a story then show a (STORY) with a link under the STORY, and then for those names that do not have stories nothing would show for the second column.
    example below:
    ACME Rockets
    ACME Skis ( [Success Story|http://www.oracle.com])
    ACME Sleds
    The feed works correctly in displaying the names, but I need some guidance on how to handle displaying the Story link.
    In the XML file I have a tag for REFERENCE_URL and then within that tag is the &lt;a href="..."&gt; coding using *&lgt;* type escape characters to insure the HTML comes across embedded in the case where there is a Reference story. Also, when there is not a story, then the tag is left blank.
    The file looks fine when I check it out, but then when I include it in the OMNIPORTLET and run the Test button on the first page of the portlet configuration, all of the ampersands in front of the less than and greater than escape characters show that they are turned into having an extra ampersand in front of them.
    In the OMNIPORTLET I am using:
    * an HTML View
    * in the Layout in the Repeating Section with in the table column I display the ##COMPANY_NAME## and then the ##REFERENCE_URL## expecting to have the Reference URL push out a live HTML anchor and link.
    What happens is that I get a text display of the anchor instead of it coming out in HTML code to actually be an anchor.
    i.e.: ACME Systems &lt;a href="http://www.oracle.com/examplelink.pdf" target="_blank"&gt;Success Story&lt;/a&gt;
    Any guidance on what I should change or another method to handle what I am needing to do?
    Thanks,
    Stephen
    Edited by: slsmith on Feb 5, 2010 2:27 PM

    The define the "should not alter part" as CDATA?
    http://www.w3schools.com/XML/xml_cdata.asp

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

  • How to include HTML-Files / Temlplates in Servlets ?

    Yep, that's what i need to know.
    In JSP there is the include-Command, but with Servlets this Command doesn't work. It's for something else, i think.
    I wanna include a header- and a footer-Template within the most of my Servlets.
    Thx for Help
    Tobias

    You can use the request's dispatcher to include the contents of a template in your response:
    request.getRequestDispatcher("header.jsp").include(request, response);
    request.getRequestDispatcher("template1.jsp").include(request, response);
    if(...)
      request.getRequestDispatcher("template2.jsp").include(request, response);
    request.getRequestDispatcher("footer.jsp").include(request, response);This enables your Servlet to dynamically construct the view.
    Typically you'd decide which template to forward to in your Servlet and then just use the include directive in your JSP. However, sometimes the decision about what to include can only be resolved by the controller.
    There are various other ways of achieving the same result such as passing flags from the Servlet to the top-level JSP template via the request to instruct the JSP to include another template.
    Use whichever approach you feel most comfortable with.
    Hope this helps.

  • How to include a Header in the Open Script

    Hi
    I have a header called "X-Forwarded For", and i want it to be used in the script, i have tried the following statements to do so:
    1) http.headers(http.header("X-Forwarded-For", "12.1.1.1",Header.HeaderAction.Modify));
    2) http.headers(http.header("X-Forwarded-For", "12.1.1.1",Header.HeaderAction.Add));
    But none of the ways worked for me. Can you please help me out to deal with this problem?
    Thanks & Regards
    - Fahim

    Perhaps I was not clear in my previous reply. You must send the header with the first navigation, and then it will be sent with all future navigations. Your cannot call http.headers() directly unless you save the return of the headers, and then pass the returned headers to the first navigation. After that first navigation, you will not need to send the new header in any subsequent navigations assuming the proper HeaderAction.
    http.get(1, "http://testserver2",
      http.querystring(http.param("QueryString1", "QueryValue1")),
      http.headers(http.header("X-Forwarded-For", "12.1.1.1", Header.HeaderAction.SetIfNotSet)),
      false, "ASCII", "ASCII");The 12.x OpenScript users guide explains the http.get and http.post in full detail in sections "6.6.2 Adding HTTP Get Navigation", and "6.6.3 Adding HTTP Post Navigation", which includes setting http.headers()

  • How to include PL/SQL routines in a script

    I have some procedures in PL/SQL scripts (as libraries) and I need to use it in some other scripts.
    So I want to "include" the first ones in the seconds.
    Anything works ...
    PS : I use TOAD to update my database.
    Thanks for your help

    I have some procedures in PL/SQL scripts (as libraries)I'm not clear what you mean by "libraries". Oracle Developer has a concept of Libraries (.PLL files that can be shared by Forms etc) - but since you say you use TOAD, I suspect that is not what you mean.
    I want to "include" the first ones in the seconds.Procedures, packages, types etc can be used without you having to list them in an "include" section.
    Do you really mean a "script", i.e. an OS file containing arbitrary uncontrolled commands to be evaluated dynamically at runtime, or do you mean stored PL/SQL code?

  • How to use html template on a php script, if possible..

    Hello,
    I buy it smartjobboard script which is made in php (
    ''SmartJobBoard software design and layout is based on ‘Templates’ system.
    Templates used in the software are built on html and Smarty. '')
    . This is advanced job board script with user registrations/payment getway/ search ,etc. This script have default templates which are very old and ugly. So, I deciced it to build my own template. The only problem is that I didn't knew that my script is made php, so I lost 2 weeks working on a html job template with maps and everything need it for a nice site hoping that I will only have to paste some codes on my html code.. Now I'am stuck with my template and shocked with php, although I have acces to edit php template I found it impossible to make it to the level I create it my htlml template (not that I have tried..) . I have around 30 js files and 5 css on my template.
    I tried to download my own php site on pc hoping I will have html format /it works only as a template but it does not connect to database for login/register/search ,etc...
    There is any hope for my to actually use my html template ?
    thank you

    Looks like you need a Template that is designed to work with your scripts.
    They appear to have serveral you could use.  
    http://www.smartjobboard.com/templates.html
    If you want a customized Template, contact one of their partners to help you.
    http://www.smartjobboard.com/custom-design/
    Nancy O.

Maybe you are looking for

  • Windows XP won't read istall disc for Acrobat 9 PRO

    I cannot make the computer read the install disc, I even tried downloading the free version and entering the serial number and it said the number was invalid. Any suggestions would appreciated, thanks

  • Fetch PB

    Hello everyone, I am working on a PL/SQL query that should return a variable number of lots. The PB is that in some cases my function works and in other it returns a PL/SQL error. Is there a problem with my data or is the function not taking every ca

  • Stun server and stun client

    I came across a concept stun server and stun client....is it possible to use these things in video conferencing in internet.pLease help.....for implemenation and materials,code also

  • System status CRTD is active

    Hi, I am having a problem with a service order. When i am tryin to book time on it using CAT2 i get an error message "System status CRTD is active." Can any one please advice what is that i need to do in order to remove this error message. Regards, C

  • Unknown error 13019 please help!

    Ok I know what you're going to say...read all the other posts! But I have. My problem is more specific and if anyone here can at least offer me advice, I'd appreciate it. I've been using my brother's MacBook Pro for quite a while. I purchase CD's for