0 Replies Latest reply on Oct 19, 2017 6:59 AM by Emily-feng-Oracle

    how to access static content from the pl/sql application by WLS + ORDS

    Emily-feng-Oracle

      Description:

      ============

      - For static content, it exists under the directory (C: \ static_root \)  deployed to WLS as static_root.

        It will be displayed when static content is accessed from the browser as follows.

        

      http://hostname:7001/static_root/static content

       

      - PL/SQL application can be accessed by the following URL,

      but now the screen is not displaying the static content want to access.

       

      http://hostname:7001/ords/sample.menu

        

      When accessing, read sample.css and sample_menu.ini in the static content folder (refer to http: // <IP address>: 7001 / static_root / <static content>),

      It assumes that menus and comments read from the sample_menu.ini  file are displayed within the frame of the screen.

       

        As described in sample.sql, I'd like to specify the reference destination of the static content in the relative path from the root.

      Since http: // <IP address>: 7001 / ords / is the context root, I think that it is possible to set it to read it as http: // <IP address>: 7001 / static_root /.

       

      sample.sql

      -------------------<cut>---------------------

      CREATE OR REPLACE PACKAGE BODY SAMPLE AS

          fnc_val         NUMBER := 0;                                    

          menuini_alias   constant VARCHAR2(200) := '/sample_menu.ini'; 

          css_alias       constant VARCHAR2(200) := '/sample.css';         

      ----------------------------------------

       

      Please teach how to access the above static content from the pl/sql application by WLS + ORDS.