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>

Similar Messages

  • 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

  • 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

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

  • How to display static HTML pages in Oracle Forms 6i

    I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.

    Suresh,
    there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
    Frank

  • Is it possible to serve a few plain old simple static HTML pages with ITS?

    Hi,
    I am looking for a way to serve a few plain old simple static HTML pages (together with some javascript and image files) with ITS?
    The HTML page should be served unaltered.
    Is this possible somehow?
    Thanks,
      Wolfgang

    Hello Wolfgang.
    Yes, that is possible.  What ITS are you using, Integrated or Standalone?
    With Standalone you could just put the static HTML anywhere in the web server directory. 
    With Integrated ITS you will need to upload it to the Integrated ITS and then publish your static HTML.  There is an example of this in the SYSTEM service.  Just go to SE80 > SYSTEM Internet Service > Topic SL > Mime Objects > PAGE > aboutbox.html.
    Edgar

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

  • 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

  • Creating User Defined Static HTML Page

    Hi Everybody
    For my new application, I have to write a program where user can create static html page with text content and image like MSN Groups
    Add a new page.
    I need some guidelines on how to do this.
    Any help will be much appreciated
    Thanks in advance

    Creation of static pages / or pages with static content- the site administrator must be able to create
    static html pages with content. And the links to these pages must be available to all the visitors of
    the site as sub links to useful information( the add page and manage page tools
    in MSN groups is aimed )

  • 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

  • Static html pages in carousel

    Hi,
    I'm very new to web-center.
    I am trying to add static html pages into carousel.
    Is it possible to do it?
    If possible can anyone please tell how to do it?

    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

  • How to create a HTML page like iView, thanks in advance!

    How to create a HTML page like iView, thanks in advance!
    I'm a newcomer, would you please tell me how to create a HTML page in WebDynpro ? In fact, i want create one welcome page which use html format and include some javascript.
    thanks again.

    jakinapallykrishna , thank you very much for you reply.
    The pdf file is a simple application, but i want know how create a view in HTML format (<HTML>... </HTML>), maybe use HTMLB control, i don't sure it.
    In fact, I need create a view in portal, some pictures in it, once mouse over one picture, it need change another picture replace old one. I don't know how to do it, just know it can be handled in HTML page. So, i need help.
    Thanks.

  • Client Eventing between a html page and iviews

    I have an iview with static html(anchor tags) in the navigation panel, basically these links should open up corresponding iviews in the content area. What would be the best way to solve this problem.

    hi Mukesh,
    you should use the follow link to open an iview and mkark the navigation:
    a href="/irj/portal?NavigationTarget=ROLES://portal_content/YourRoleID/YourWorksetID/YourPageID/YouriViewID" target="_top">
    you can stop the link string at a page or an iView a page is a better option
    Hope it helps,
    Yoav

  • Can I use data from Servlet in my static html page?

    First of all, I can NOT use jsp because of web server's restriction.
    I have a servlet which will give me some image links in html file via doGET and doPOST method. I also need the sizes of the images and compress the images if too large.
    My question is how I can pass the image sizes to the html page and how I can use them in html files.
    Please advise me some solutions to this problem.

    Yeah, you have 2 choices:
    1) Change your web server to one that allows JSP.
    2) Re-build the JSP system from scratch so that the one you make will work in your server. This would involve changing your so called static HTML to have markings (like <% %> tags) where you should insert the values you need to insert. You would then have a servlet that reads the 'static' HTML, parses our the insertion tags, and inserts the values. It would then stream the results back to the user.
    Of course, your HTML is not really static, it is dynamic because the values you are inserting are capable of changing.
    If you don't want to upgrade the server to one that supports JSPs (if yours really doesn't), the have fun making your own system.

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

Maybe you are looking for