Referencing static html pages from jsps...

          Hi,
          This is probably a very simple thing to solve, but I'm having problems with referencing
          html pages from jsps under Weblogic.
          I get Error 404 - not found, whenever I try something like this in a JSP...
          <frame name="title" src="title.html" scrolling=no>
          The title.html file has definitely been copied into my ear file, and yet it isn't
          found. I can solve the problem by turning title.html into a jsp and registering
          it in web.xml. But this seems like serious overkill with static content!!
          Am I missing something really simple here?
          

          I've worked it out - directory mistake...
          Thanks,
          Chris
          "Matt Krevs" <[email protected]> wrote:
          >it sounds like a relative pathing problem
          >
          >is title.html reachable if you enter its address in the browser?
          >
          >is title.html in the same directory as your jsp?
          >
          >perhaps you could post your web.xml file?
          >
          >"Chris Sceats" <[email protected]> wrote in message
          >news:3d9c41b5$[email protected]..
          >>
          >> Hi,
          >>
          >> This is probably a very simple thing to solve, but I'm having problems
          >with referencing
          >> html pages from jsps under Weblogic.
          >> I get Error 404 - not found, whenever I try something like this in
          >a
          >JSP...
          >>
          >> <frame name="title" src="title.html" scrolling=no>
          >>
          >> The title.html file has definitely been copied into my ear file, and
          >yet
          >it isn't
          >> found. I can solve the problem by turning title.html into a jsp and
          >registering
          >> it in web.xml. But this seems like serious overkill with static content!!
          >>
          >> Am I missing something really simple here?
          >
          >
          

Similar Messages

  • How to cache a content item like a Static HTML Page from UCM to Coherence/C

    Hi All,
    How to cache a content item like a Static HTML Page from UCM to Coherence/Coherence Web?
    Thanks

    Hi,
    Could you explain your use case in more detail?
    It does not look like proper use of coherence to cache static content - it more suited for dynamic content like user session etc.
    Adam

  • Create a static HTML page from a CFM page

    How do I take the results of a dynamic CFM page and write it
    to a static HTML page.

    You can also use the CF administrator.
    Schedule the task. (Or just create the task to be hit by a
    call from a page.) When you set up the "task" Click Publish Save
    output to a file
    and assign the path you want it to write to. I do this for
    high volume front pages and have them created every few minutes to
    reduce the load on the sql and cf servers..

  • Re: run a HTML page from a class

    Hi all
    I was just wondering how i could invoke a static HTML page from a method within my class...Anybody know? Any help would be appreciated....

    a) show the page inside your gui:
    JEditorPane htmlContainer = new JEditorPane(new File("yourhtmlfile.html").toURL());b) start a browser and show the page:
    Runtime.getRuntime().exec("yourhtmlfile.html");b will only work if your OS will automatically start the app related to the required filetype (here: *.html). normally newer Linux distributions, Win2000 or WinXP will do this...
    not 100% sure - maybe you will have to use "cmd yourhtmlfile.html" instead of "yourhtmlfile.html"...

  • How to call an HTML page from a JSP

    Hi,
    I am getting problem in calling an html page from a jsp
    The Sample code is
    int rowsAffected = stm.executeQuery("Select * From Table");
    if (rowsAffected == 1)
    {   %>
    <jsp:forward page="xyz.html" />
    <%

    See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
    Please refrain from cross posting.

  • How to send information from HTML page to JSP without reloading HTML page?

    Hello,
    Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
    Thanks.
    Oleg.

    Yes, you can do this with framesets and a hidden frame.
    You need a bit of JavaScritp in the "visible" frame that
    sets the location of the hidden frame to the JSP.
    Add the user's choice as a parameter to the JSP URL.

  • Servlets in one machine and static html pages in another machine

    We have one technical problem concerning WebLogic Server 5.1. Our customer
              wants to install two WLS servers in two machines. Let's call these machines
              and WLS instances A, which is a front end machine, and B, which is a back
              end machine. WLS A has all the static html pages and is open to public. WLS
              B has all servlets and business logic (EJB components...) and is open only
              to machine A. We are wondering if it is possible to configure WLS A so that
              when the client's browser requests a static html page and there is a link to
              a servlet in WLS B, the http requests goes from the client's browser first
              to WLS A, which sends the same request to WLS B, which runs the request in a
              servlet and sends the response to WLS A, which sends the response back to
              the client's browser. In that way the client allways thinks that it is
              communucating with WLS A and is unaware of the existance of the WLS B. We
              are wondering if this is possible with WLS configuration and if it is, how
              this can be done.
              Sami Elomaa
              

    Use ProxyServlet:
              http://www.weblogic.com/docs51/admindocs/http.html#proxy
              btw, why don't you let WLS A serve html and servlets, and let WLS B serve
              EJBs... it's more logical that way. Well, I'm kinda biased because that's
              how we do it... ;-)
              Gene Chuang
              Teach the world. Join Kiko!
              http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
              "Sami Elomaa" <[email protected]> wrote in message
              news:[email protected]...
              > We have one technical problem concerning WebLogic Server 5.1. Our customer
              > wants to install two WLS servers in two machines. Let's call these
              machines
              > and WLS instances A, which is a front end machine, and B, which is a back
              > end machine. WLS A has all the static html pages and is open to public.
              WLS
              > B has all servlets and business logic (EJB components...) and is open only
              > to machine A. We are wondering if it is possible to configure WLS A so
              that
              > when the client's browser requests a static html page and there is a link
              to
              > a servlet in WLS B, the http requests goes from the client's browser first
              > to WLS A, which sends the same request to WLS B, which runs the request in
              a
              > servlet and sends the response to WLS A, which sends the response back to
              > the client's browser. In that way the client allways thinks that it is
              > communucating with WLS A and is unaware of the existance of the WLS B. We
              > are wondering if this is possible with WLS configuration and if it is, how
              > this can be done.
              >
              > Sami Elomaa
              >
              >
              

  • How to develope a par file with a static html pages in NWDS

    Hi to all,
    what is the procedure to put static html pages as iviews by using programming.
    In my project hierarchy where should i keep the html file, and what component should be generated? to generate a par file.
    using that par i'll generate a iview and i will link to my page.
    but i need a procedure to generate a portal component of this type.
    if any body is having the procedure of this, or any online help documentation link u have please forward to me.
    Thanks & Regards,
    sireesha.

    Hi,
    Check whether KM is installed in your server. If yes then you can view it under Content Administration>> KM content(like the Portal Content).
    In that you can see the Root folder>>documents>>Public Documents. If you wish you can create your own folder or can  just upload the file inside that folder.
    1. to create a folder go to Folder >> new folder...
    2. to upload the file click Folder>>New>>upload.. then you can browse to the local system and from there you can upload file.
    The path that you have to give in the Iview shloud be like
    \documents\Public Documents\<your foldername>\filename.
    Hope this Helps
    gEorgE

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • Publish no static html page with Web services

    Hello All,
    I would like to publish no static html page using Web services. I can't attach this html page as static because I need to change it dynamically from another vi. So, client can read this page by browser with refresh 2 sec.
    Thanks,
    Yustas

    Hi,
    I think It is not possible to create a dynamic HTML page, at  the most you could edit your page HTML and publish it again with the same URL
    I hope to be helpful.
    Sabrina

  • Static HTML pages as iViews

    Hi All,
    I have static html pages that are not published to the Web. I was wondering, can I create iViews for them to be displayed in the portal without having to publish them and creating URL iViews out of them?
    Thanks
    TM.

    Hi Tony
    Make a component with the following code and portalapp.xml. For each static piece of text, make an iView from the component and set the HTML property to the HTML you want to display, and it should work... In the HTML you may need to change any
    <
    character to
    &lt;
    Yes, it's a hack...
    The portal component code
    package com.michael;
    import com.sapportals.portal.prt.component.*;
    public class StaticHTML extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IPortalComponentProfile profile = request.getComponentContext().getProfile();
              String theHTML = profile.getProperty("HTML");
              response.write(theHTML);
    The relevent portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="com.sap.portal.navigation.service"/>
      </application-config>
      <components>
        <component name="StaticHTML">
          <component-config>
            <property name="ClassName" value="com.michael.StaticHTML"/>
          </component-config>
          <component-profile>
            <property name="HTML" value="<b>bold</b><i>italic</i>"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

  • Opening a HTML page from a Navigation link

    Hi All,
           I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
      Please help.
    Thanks
    Indranil Datta

    Hi Sujit,
        Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
    Thanks,
    Indranil Datta.

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • Report HTML page from XSL

    Hi All,
    I need help with generation HTML page from
    such XML by using XSL transformation.
    XML is generated from db table.
    <ITEM level=0 name="Page row 1" type="PR"/>
    <ITEM level=1 name="Page row 2" type="PR"/>
    <ITEM level=2 name="Table 1" type="T">
         <Captions>
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
              <Name>Caption 3</Name>
              <Name>Caption 4</Name>
         </Captions>
    </ITEM>
    <ITEM level=3 name="Table row 1" type="TR">
         <Values>
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
              <Value>Row 1 value 3</Value>
              <Value>Row 1 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=3 name="Table row 2" type="TR">
         <Values>
              <Value>Row 2 value 1</Value>
              <Value>Row 2 value 2</Value>
              <Value>Row 2 value 3</Value>
              <Value>Row 2 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=3 name="Table row 3" type="TR">
         <Values>
              <Value>Row 3 value 1</Value>
              <Value>Row 3 value 2</Value>
              <Value>Row 3 value 3</Value>
              <Value>Row 3 value 4</Value>
         </Values>
    </ITEM>
    <ITEM level=0 name="Page row 3" type="PR"/>
    <ITEM level=1 name="Table 2" type="T">
         <Captions>
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
         </Captions>
    </ITEM>
    <ITEM level=2 name="Table row 4" type="TR">
         <Values>
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
         </Values>
    </ITEM>
    HTML should looks like:
    Page row 1
         Page row 2
              |Caption 1 |Caption 2 |Caption 3 |Caption 4 |
              | Row 1 value 1|Row 1 value 1|Row 1 value 1|Row 1 value 1|               
              | Row 2 value 1|Row 2 value 1|Row 2 value 1|Row 2 value 1|                         
              | Row 3 value 1|Row 3 value 1|Row 3 value 1|Row 3 value 1|               
              | Row 4 value 1|Row 4 value 1|Row 4 value 1|Row 4 value 1|               
    Page row 3
         |Caption 1 |Caption 2 |
         | Row 1 value 1|Row 1 value 1|
         | Row 2 value 1|Row 2 value 1|
    There can be many levels but always table item is leaf,
    Thanks in advance,
    Regards Peter

    Hi
    You are probably better posting in the flash forum, as without seeing the code, (and if it is not standard flash html publish) they can probably better advise on a solution.
    PZ

  • TREX Search : static HTML pages in KM with links to other intranet websites

    Hi there,
    we have some static HTML pages stored in KM. Besides text, these pages contain links ot other intranet websites, pdf or word documents.
    I have defined an index, according to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">creating an index</a>
    Following parameters have been added :
    IndexInternalLinks = true
    indexContentOfExternalLink = true
    showWithoutDatasource = true
    Already had a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Crawlers and Crawler Parameters</a>, tried by creating a new crawler profile and setting
    Maximum Depth = 3 (we want to search three levels deep)
    There is also <a href="http://help.sap.com/saphelp_nw04/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Resource Filters</a>
    The html pages itself are included in the index, but the content of the external links is not included.
    Would this be possible? We don't want to define an <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">HTTP System</a> in the system landscape, as we don't need to index the whole external website and some parts of it are obsolete - we only want following the links and included the external content in the index.
    Portal version is NW2004S SP10.
    Thanks & best regards,
    Kevin

    Hello Kevin,
    If you don't want to create a HTTP system then you can create a simple web repository.
    For details you can follow help guide:
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/76bd3b57743b09e10000000a11402f/frameset.htm
    Also you can create a Web Repository:
    http://help.sap.com/saphelp_nw04/helpdata/en/12/47833ceb3da02ce10000000a114027/frameset.htm
    Do refer to "Dynamic and Static Web Repositories" section in the document. This will answer your query.
    Regards,
    Anjali

Maybe you are looking for

  • Deactivate a link from a report

    Is it possible to deactivate a link from a report? Here is the problem I am facing. I have a database that will be used by 6 people and I am using a report to display records to be worked. So, when one user clicks on a record to make edits, I want to

  • Why is my Mac crashing?

    Hi all, In the last month my G4 has crashed 2 times I have reviewed the crash logs and all I can find in common was com.apple.iokit.IOAudioFamily(1.5.5b2)@0x5d6000. Bellow you will find the Crash Report which came up after rebooting and the Exited pr

  • What's eval code means ?

    Hi Ya ....    I just came back to AS400 world,  I am really lost in coding :-(    I saw eval  coding in RPG ...I just wonder what's that mean ?  is mean MOVE  from FieldA  to FieldB  ?              eval    FieldB         FieldB        I tried to move

  • Firefox openes new windows whenever i go on a website

    ''locking as a dupe of https://support.mozilla.org/en-US/questions/1004969'' whenever i go on a website any website Firefox opens several window that are blank and i have to close them all whenever i go on a new website

  • Terminal Command rsync

    I use rsync to backup my macbook pro. It gets really irritating to open the terminal to type the entire command every time I want to backup. Does anyone know how to save the terminal command as an auto-executing file, so that when I double-click the