Making sure setting ojsp-init tags-reuse from orion-web.xml is used

I'm facing a problem with the following setting in my application's orion-web.xml:
<ojsp-init tags-reuse="compiletime-with-release"/>
previously, we had this setting in global-web-application.xml, but we would like to specify it per application, to get rid of the OC4J post-installation step to manually add the following lines:
<init-param>
<param-name>tags_reuse_default</param-name>
<param-value>compiletime_with_release</param-value>
</init-param>
However, the latter works, and the former doesn't seem to have any effect whatsoever. But as far as I can see, the orion-web.xml is correctly following the XSD:
<?xml version="1.0"?>
<orion-web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"      deployment-version="10.1.3.3.0"
     deployment-time="1198148775354"
     jsp-cache-directory="./persistence"
     jsp-cache-tlds="standard"
     jsp-taglib-locations=""
     temporary-directory="./temp"
     servlet-webdir="/servlet/"
     context-root="/messagecontrol"
schema-major-version="10" schema-minor-version="0" >
     <!-- Uncomment this element to control web application class loader behavior.
          <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
     -->
     <ojsp-init tags-reuse="compiletime-with-release"/>
</orion-web-app>
http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
Am I missing something here? Do we need to do something specific to make sure the ojsp-init values are actually used? The documentation seems to indicate that the two settings are equivalent:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28961/devconfig.htm#BHCFICDA
Any help would be appreciated.
Jaap

Update:
In the meantime I've logged a SR for this. The settings "none" and "compiletime" do work and behave the same as their global-web-application.xml counterparts. It's just the "compiletime-with-release" that does not work as expected.

Similar Messages

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • How to gather a set of floating point numbers from a web page form?

    I am pretty new to Java and I am working on a project to apply Benfords law to find the probability of digits submitted by the user. My first step is to gather set of floating point numbers from a web page. How do I go about doing this? Any suggestion or a proper site where I can learn this stuff will be highly appreciated.

    I am using NetBeans IDE 5.5.1 and for this project. I have realized that the first question was not well phrased.
    I created a web project with 2 jsp files and a class file in it. When my jsp file runs I ask the user to enter a number for finding the probablility based on Benfords law.
    This is what I got so far:
    This is input.jsp
    <h1></h1>
    Please enter a number to be checked
    <form action="result.jsp" method="post">
    <input type="number" name="number" >
    <input type="submit" value="Check number">
    </form>
    </body>
    </html>
    This is result.jsp
    String number=request.getParameter("number");

  • About the element, 'expiration-setting' in the orion-web.xml

    orion-web.dtd says
    <!-- Specifies the Expires setting for a given set of resources, useful for caching policies (for instance for browsers not to reload images as frequently as documents etc). -->
    <!ELEMENT expiration-setting (#PCDATA)>
    <!ATTLIST expiration-setting expires CDATA #IMPLIED
    url-pattern CDATA #IMPLIED
    >
    I thought this element will help for tuning.
    My question is,
    if there is a frequently accessed images, and url-pattern is "http://image.myserver.com", i assumed the syntax like the following,
    <expiration-setting expire="?" url-pattern="http://image.myserver.com">
    but i don't know what's the meaning of the attribute value 'expire'? And big or small one in my situation? and Basically does it work in the oc4j server?
    null

    See
    Oracle® Application Server Performance Guide
    *10g Release 2 (10.1.2)*
    *6.6 Improving Servlet Performance in Oracle Application Server*
    Here is an example:
    --- snip ---
    <PRE>
    <orion-web-app
    deployment-version="2.0.0.0"
    jsp-cache-directory="./persistence"
    temporary-directory="./temp"
    servlet-webdir="/servlet/">
    <!-- Session-tracking settings for this application.
    Do not use cookies to track servlet sessions -->
    <session-tracking cookies="disabled"/>
    <expiration-setting expires="86400" url-pattern="*.jar"/>
    <expiration-setting expires="never" url-pattern="*.gif"/>
    </orion-web-app>
    </PRE>
    --- snap ---

  • How to send data from a web dypro application using workflow

    Hi All,
    I am working on a web dynpro application where the user will enter the header and item details for a FI document to be posted. Once the user enters the data the workflow should initiate and should also send the data across to the approver to approve. To initiate the workflow I am using the function module 'SAP_WAPI_START_WORKFLOW' and it's working fine and generating a uniquw workflow item id. Now my main concern is how to send the data across from web dynpro application through the workflow. I have my data in three internal tables: 1. header table. 2. G/L table and 3. Currency table, I am capturing all this data from the web dypro screen entered by the user. Right now I have the following code in my web dypro application.
    METHOD execute_bapi_acc_document_post .
      DATA: return TYPE TABLE OF bapiret2.
      DATA: wa_return LIKE LINE OF return.
      DATA lo_bapi_acc_document_po TYPE REF TO if_wd_context_node.
      DATA lo_changing TYPE REF TO if_wd_context_node.
      DATA lo_accountgl TYPE REF TO if_wd_context_node.
      DATA lo_currencyamount TYPE REF TO if_wd_context_node.
      DATA lo_importing TYPE REF TO if_wd_context_node.
      DATA lo_documentheader TYPE REF TO if_wd_context_node.
      DATA lo_element TYPE REF TO if_wd_context_element.
      DATA lt_elements TYPE wdr_context_element_set.
      DATA ls_c_documentheader TYPE if_componentcontroller=>element_documentheader.
      DATA lt_c_accountgl TYPE if_componentcontroller=>elements_accountgl.
      DATA ls_c_accountgl LIKE LINE OF lt_c_accountgl.
      DATA lt_c_accountgl_cp TYPE if_componentcontroller=>elements_accountgl.
      DATA lt_c_currencyamount TYPE if_componentcontroller=>elements_currencyamount.
      DATA ls_c_currencyamount LIKE LINE OF lt_c_currencyamount.
      DATA lt_c_currencyamount_cp TYPE if_componentcontroller=>elements_currencyamount.
      DATA wa_c_currencyamount type bapiaccr09.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
      EXPORTING
        TASK                      = 'TSXXXXXXXXXX'            
       USER                      = sy-uname
    IMPORTING
       RETURN_CODE               = L_RETURN_CODE
       WORKITEM_ID               = LV_WIID
    TABLES
    *   INPUT_CONTAINER           = lt_input_container
       MESSAGE_LINES             = lt_message_lines
       AGENTS                    = ls_agents
      lo_bapi_acc_document_po = wd_context->get_child_node( wd_this->wdctx_bapi_acc_document_po ).
      lo_changing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_changing ).
      lo_accountgl = lo_changing->get_child_node( wd_this->wdctx_accountgl ).
      lo_currencyamount = lo_changing->get_child_node( wd_this->wdctx_currencyamount ).
      lo_importing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_importing ).
      lo_documentheader = lo_importing->get_child_node( wd_this->wdctx_documentheader ).
      lo_element = lo_documentheader->get_element( ).
      lo_element->get_static_attributes(
        IMPORTING static_attributes = ls_c_documentheader ).
      lt_elements = lo_accountgl->get_elements( ).
      LOOP AT lt_elements[] INTO lo_element.
        lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_accountgl ).
        INSERT ls_c_accountgl INTO TABLE lt_c_accountgl[].
      ENDLOOP.
      lt_c_accountgl_cp = lt_c_accountgl[].
      lt_elements = lo_currencyamount->get_elements( ).
      LOOP AT lt_elements[] INTO lo_element.
        lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_currencyamount ).
        INSERT ls_c_currencyamount INTO TABLE lt_c_currencyamount[].
      ENDLOOP.
      lt_c_currencyamount_cp = lt_c_currencyamount[].
      READ TABLE lt_c_currencyamount INTO ls_c_currencyamount INDEX 2.
      ls_c_currencyamount-amt_doccur = ls_c_currencyamount-amt_doccur * '-1.0000'.
      MODIFY lt_c_currencyamount FROM ls_c_currencyamount INDEX 2.
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader = ls_c_documentheader
        TABLES
          accountgl      = lt_c_accountgl
          currencyamount = lt_c_currencyamount
          return         = return.
    ENDMETHOD.
    Please suggest.
    Thanks,
    Rajat
    I am not sure if this falls in webdynpro or workflow threads.. so I am posting it here also
    Edited by: rajatg on Jun 23, 2010 9:28 PM

    Dear Colleague,
    You have different method to send parameters to Workflow.
    1. Method
    Container Set Element
    DEFINE SWC_SET_ELEMENT.
      CALL FUNCTION 'SWC_ELEMENT_SET'
        EXPORTING
          ELEMENT   = &2
          FIELD     = &3
        TABLES
          CONTAINER = &1
        EXCEPTIONS
          OTHERS    = 1.
    END-OF-DEFINITION.
    Set the data into Workflow container
        SWC_SET_ELEMENT IT_CONTAINER 'parameter1' lv_parameter1.
    Start the Workflow
        CALL FUNCTION 'EWW_WORKFLOW_START'
          EXPORTING
            X_TASK          = 'WS90000001'   " your wf
          IMPORTING
            Y_WORKFLOW_ID   = WF_ID " your workitem id
          TABLES
            X_CONTAINER     = IT_CONTAINER
          EXCEPTIONS
            INVALID_TASK    = 1
            NO_ACTIVE_PLVAR = 2
            START_FAILED    = 3
            GENERAL_ERROR   = 4
            OTHERS          = 5.
    2. Method,
    You can also add your parameters direly to a container,
      DATA: lt_simple_container TYPE TABLE OF swr_cont,
            ls_simple_container TYPE swr_cont.
      ls_simple_container-element = 'parameter1'.
      ls_simple_container-value = lv_parameter1.
      APPEND ls_simple_container TO lt_simple_container.
      CALL FUNCTION 'SAP_WAPI_WRITE_CONTAINER'
        EXPORTING
          workitem_id      = WF_ID " your workitem id
          do_commit        = 'X'
        TABLES
          simple_container = lt_simple_container.
    Bulent.

  • Configuing web.xml for using JSTL tags in WAS

    Hi All
    I have an application deployed in websphere.
    After extracting jakarta-taglibs-standard-current.zip I copied the jar files ( from the \jakarta-taglibs-standard-1.0.6\lib folder) to the web-inf\lib folder.
    Then I saved the c.tld ( from the jakarta-taglibs-standard-1.0.6\tld folder) to the \web-inf\taglibs\ folder
    Then I modified the web.xml to include
           <taglib>
                 <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
                 <taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
          </taglib>The problem is when i restart the application from the WAS administrative console. The application does not restart with the error
    Exception:
    com.ibm.ejs.sm.exception.ActiveObjectException--------
    com.ibm.ejs.sm.client.command.ExecutionException: Command HostPubServer.start Sub-command Error.     at com.ibm.ejs.sm.client.command.AbstractCommand.handleAct(AbstractCommand.java:288)
         at com.ibm.ejs.sm.client.command.StartCommand.execute(StartCommand.java:94)
         at com.ibm.ejs.sm.client.command.CommandManager$ExecutionThread.run(CommandManager.java:264)
         at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)
    When I remove the " <taglib-location>/WEB-INF/tlds/c.tld</taglib-location> " I am able to restart the application. But the path is right.. and the tld is ther. What cud be the issue here ??
    Any thoughts ??
    Thanks
    RV

    Hi
    The position of the tablig tag in web.xml was wrong. So it was not validated according to the dtd specification. I placed the tag after the errortag in the web.xml and it resolved the issue.
    Thanks
    RV

  • Problems with the tag error-page in web.xml

    hi all, here is my code in my web.xml:
    <error-page>
    <exception-type>java.sql.SQLException</exception-type>
    <location>/ex.html</location>
    </error-page>
    it seems not to work, because my JavaBean where its the code to connect to my database and execute a query has an error i made it at purpose to see if the error page works, my JavaBean reports an error: column name not valid but the error-page didn�t work, i use a servlet which instantiates my JavaBean and then my servlet redirects to a JSP, obviouslly if an error occurs my servlet didnt redirect to any place, here is the code into my JavaBean, if anyone could help me i really appreciate it...
    public BeanLista seleccionaCliente()
    int nBandera = 0;
    BeanList lp = new BeanList();
    String cadena = "SELECT CODCLI, APEPATI FROM TESO.CLIENTE WHERE CODCLI like '2001120%' ";
    try
    context = new InitialContext();
    pool = (DataSource)context.lookup("jdbc/PRUEBADS");
    catch (NamingException ne)
    ne.printStackTrace();
    System.out.println("No se ha podido efectuar el Pool de Conexiones");
    try
    cc = pool.getConnection();
    ResultSet rs = cc.createStatement().executeQuery(cadena);
    cc.close();
    while(rs.next())
    BeanPrueba bp = new BeanPrueba();
    bp.setCodcli(rs.getString(1));
    bp.setApepat(rs.getString(2));
    lp.add(bp);
    return lp;
    }catch(SQLException sql){
    System.out.println("A ocurrido un error de SQL");
    System.out.println("Error de SQl capturado como : "+sql.getMessage());
    //sql.printStackTrace();
    return lp;
    }

    Can it be because you are catching your exception? Why don't you try throwing the same exception in the catch block and let the server handle it for you.
    Just a guess... Hope it works.
    VM

  • How to write from database to XML file using JAVA and back..

    Hi....
    I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

    Hi,
    In java world, there is a tutorial on what you are looking for :
    http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
    It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
    Hope it helps.

  • Is it possible to set a custom tag attribute from a TagExtraInfo?

    Hi Everyone,
    I'm developing my own tags and I need to set some optional attributes of my custom tag if the user doesn't do it.
    Is is possible to do that on the IsValid method of a TagExtraInfo class?
    The code is running without exceptions but is not setting the attribute.
    My Tag (The optionValue attribute is optional):
    <qe:select name="cars" optionBody="carName" optionValue="carID" />My TagExtraInfo class:
    public class SelectTei extends TagExtraInfo {
        private static final Logger logger = Logger.getLogger(SelectTei.class);
        @Override
        public boolean isValid(TagData tagData) {
            String optionBody = tagData.getAttributeString("optionBody");
            String optionValue = tagData.getAttributeString("optionValue");
            if (optionBody != null && optionValue==null){
                    tagData.setAttribute("optionValue",optionBody);
            //Other validations.... 
            return true;
    }

    CFGadget wrote:
    It's not obvious as to how to set a background color which is by default, black.
    Assuming you mean set the background color of a new image, just set the desired canvas color using hex or a named color ie "red", "white", ...
                    ImageNew([source, width, height, imageType, canvasColor])

  • How to set text size when printi from a web page

    can't increase text size when printing a web page

    If you're using IE, click on View, Text Size and then whatever size you'd like.  You'll see the changes on the screen and it should print out the same way.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • Problems in create graphical report from Oracle FSG xml output using BIP

    We are trying to create graphical reports from Oracle Financial Statement Generator (FSG) xml output. I personally have extensive exposure working with XML (BI) Publisher but until recently I have never tried to use the BIP charting wizard to create graphical reports from FSG xml output out of EBS 11i/R12.
    I created an SR with Oracle but they had to create an enhancement request for this issue. Does anyone know or have any idea on how we can accomplish this. The charting wizard pops up but the xml tags available do not make any sense.
    If anybody has any idea please send me an email at [email protected]
    Thanks,
    Leo

    Try some thing like following
    http://oraclebizint.wordpress.com/2008/03/10/oracle-bi-ee-101332-sending-reports-to-non-obi-users-delivery-manager-api-of-bi-publisher/

  • Firefox will open a 1Mb PDF file. With 30Mb PDF file Firefox gives error "File not found". Both PDFs from Adobe web site. Using PC with XP-sp3. Firefox 3.6.13

    Option in "Tools/Options/Applications/Adobe Acrobat Document" is set to "use Adobe Acrobat in Firefox". If I change the option to "Use Adobe Reader 9.2 (default)" then the large file gets downloaded and then opens in Reader.
    Any help appreciated.

    I originally posted this nearly 2 months ago. Is no-one else having this problem...???
    I upgraded to Firefox V3.6.16; problem still happening.
    Anyone got any ideas please...???

  • Automated process to pull data from a web page without using VS and PS.

    Hello,
    I'm looking at finding a solution to pull data from an external web page and creating a list. I'm looking for a NON-POWERSHELL AND NON-VISUAL STUDIO solution. I am open to using InfoPath Designer.
    There exists a custom, non-SharePoint page built for us which has raw data. We've already created a custom list to match the data and now need to come up with a solution to automatically update the data. In this particular scenario, power shell and visual
    studio cannot be used.
    Thanks in advance.

    Why would you cripple yourself and restrict PowerShell at the very least which has perfect functionality for doing exactly that.
    I doubt you could use the InfoPath data sources to pull the raw data in, re-map it and save to SharePoint without resorting to some sort of coding within InfoPath.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to view HR photo from a web-site NOT using ArchiveLink NOR ContentRep.

    Hello,
    We have a web site where ALL our employees' photos are maintained.
    It is accessible via HTTP with one of the parameters is the ID number of the employee.
    Is it possible to customize the PA in such a way that it will display the photo in the SAPgui by accessing the photo using a URL ?
    For example the following URL:
    http://<server_name>:<server_port>/hr_photo/EMPLOYEE_ID.jpg
    Please, help.
    Thanks and kind regards,
    Gil Halevy

    I know what you are asking for but sadly, it is NOT possible without customization. I have had 2 past clients with this issue....typically they had the employee photos on some common intranet server in some folder and simply referenced them by "(username).jpg" through some kind of custom employee directory app/web page. Since ESS services, many MSS services, HRAS services, etc. via the portal and then also SAPGui transactions rely on the ArchiveLink config for photos as standard, we had to load all the photos into ArchiveLink and do it the "right" way. It actually is VERY easy to do. The added benefit that the clients like too is that you can have SEVERAL photos (such as photos over time) for a single employee (since there is no longer the dependence on the naming of the image file such as (employee#).gif or (userid).jpg. Sooooo....sorry I don't have the answer you wanted, but hopefully my answer helped.

  • Can not access in box or contacts from tiscali web mail when using firefox as browser

    I can not access my in box or contacts list at my tiscali web mail when using firefox as my browser. I have been able up to a few days ago and I can access these when using internet explorer browser.

    Thanks for the helpful solution!

Maybe you are looking for

  • EFT Functionality For payment method V

    Hi We are currently enabling EFT Functionality for our client .our Aim is to Generate a DME File for payment Method V( EFT for Domestic).We have a Format EFTS_EIRE.I have Following Questions 1.Is the Format SAP standard One? 2.Where we are assigning

  • No data comes when extracting data for 2LIS_06_INV

    Hi, I am trying to extract data from 2LIS_06_INV into my BI system.I see the invoice numbers in RSEG table as created from SRM 5.0 into my R/3 system but unfortunately no data gets extracted.Please provide some pointers if some setting needs to be do

  • Quicktime Won't Open

    About a month ago I reinstalled Windows XP Pro SP2. Instead of installing Quicktime, I installed the Quicktime Alternative which has worked for me in the past. I could never open .mov files in firefox or media player classic. I finally got fed up wit

  • Week number calculations not working ...

    Why doesn the week number calculation (ISO 8601) using datepart ('ww',#date#,crMonday,crFirstFourDays) not work? As an example do the following formula: DatePart('ww',CDate(2005,1,1),crMonday,crFirstFourDays) The result is 9363, quite an impressive w

  • Pre defined, in built

    Hi,      I want to know all in-built functions,programs,reports,tables,fields, transaction codes,and all other standards which are in-built and there description,How can i?