Include Modules dynamically

Hi there!
I have to face the following scenario. It's no nice, but it is, as it is^^
There is a main application, which does XSL Transformation, using Xalan. Adminstrators are able to upload XSL Templates for specific resources. If user requests a resource, the main application loads and transforms it, using the admin's templates for this resource.
Now, there is a request for extended functionality of the XSL Templates (e.g. cipher jobs etc.). So, the administrators should be able to upload java libraries for the xsl templates, too. Their classes should be called by the XSL Template.
It is possible do java calls from xsl templates, using xalan. But how can it be achieved, that the XSL engine has access to the uploaded libraries? Can this be done with classloaders or osgi? I'm very so sure about this. Hope you can give me some hints.
Thanks!

How it works depends on the engine. Since you say it does it then it should have docs somewhere explaining it.
As a side issue you might want to consider the source of this additional functionality. If it comes from you no problem but if it is coming from someone else (like the customer) then you might want to spin up another process to handle this. That way it can't take down your server no pollute your process space.

Similar Messages

  • How to include a dynamic file

    Hi,
    The following syntax does not work:
    <%@ include file="htmls/mydocs/<%=dynamicFileName%>.htm" %>
    could you tell me how to include a dynamic file?
    thanks,
    peterzhu

    The include directive <%@ include ... does not work with dynamic file names, because it is evaluated at compile time.
    You have to use the include standard action <jsp:include page=... This is executed during runtime, and hence a dynamic file name can be used.

  • How to call a function module dynamically?

    Hi
    I am doing a smartform development and here my scenario.
    <b>Scenario:</b>
    There will be a simple report which will trigger a smartform output. The report has a selection screen and and in one of the field the user will enter the layout name or the layout name will be stored in the variant so that the user need not remember the layout name.
    Based on the layout selected i need to show the output.
    <b>What i have coded:</b>
    In my program after selecting the data i am calling the FM SSF_FUNCTION_MODULE_NAME which will return the function module name to be called.
    <b>Question:</b>
    How do i call the function module dynamically. I cannot do a single call to the function module using the FM name derived from the above function call. I want to make the interface calling dynamic. We dont want to hardcode the function calls coz we may have many layouts to be called so how is it possible in SAP to call the FM interface dynamically.
    ~Suresh

    Actually you can call the FM dynamically in by taking it into one variable and than use the CALL FUNCTION V_FM_NAME.
    But the problem here is, you need to take care about the importing, exporting and tables parameters. They needs to be same for all FMs which you are planning to call. Otherwise system will give you a run time error.
       CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  FORMNAME           = LF_FORMNAME
    *                 variant            = ' '
    *                 direct_call        = ' '
             IMPORTING  FM_NAME            = LF_FM_NAME
             EXCEPTIONS NO_FORM            = 1
                        NO_FUNCTION_MODULE = 2
                        OTHERS             = 3.
          CALL FUNCTION LF_FM_NAME
               EXPORTING
                          ARCHIVE_INDEX        = TOA_DARA
                          ARCHIVE_PARAMETERS   = ARC_PARAMS
                          CONTROL_PARAMETERS   = LS_CONTROL_PARAM
    *                 mail_appl_obj        =
    *                     mail_recipient       = ls_recipient
                          MAIL_SENDER          = LS_SENDER
    Regards,
    Naimesh Patel

  • Calling Function Modules Dynamically

    Hi All,
           Is it possible to call a function module dynamically i.e. to pass the module name and the import and export parameters dynamically at runtime. Please provide a way of achieving this.
    Regards,
                 Milan Thaker

    Hello,
    Read this SAP documentation on calling function modules dynamically: [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DYNAMIC.htm|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DYNAMIC.htm] Here you have an example explaining the technique.
    Also check this link on [ABAP FAQs|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-29].
    Cheers,
    Suhas
    Edited by: Suhas Saha on Mar 9, 2010 3:33 PM

  • How to delete Thr created functional module dynamically

    Hi All,
    How to delete Thr created functional module dynamically
    Regards,
    Lisa
    Message was edited by:
            Lisa Roy

    Hi,
    You can use the function module RS_FUNCTION_DELETE to do that.
    Make sure you are not deleting any standard FM's.
    Example
          call function 'RS_FUNCTION_DELETE'
               exporting
                    funcname          = 'ZFM_NAME" " Function modue name
                    suppress_popups   = 'X' " TO suppress any pop-ups that come when you delete
               exceptions
                    error_message     = 1
                    cancelled         = 2
                    function_released = 3
                    others            = 4.
    Regards,
    Sesh

  • How to insert module dynamically

    can any one tell how to insert module dynamically other than "ifconfig <interface> modinsert module_name@pos"

    Hi,
    that's still to little information. However, if you are using ADF BC, take a look at the "Create" and "CreateInsert" operations here:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/toc.htm
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_tables_forms.htm#CHDEJAGC
    http://andrejusb.blogspot.com/2006/12/creating-new-row-using-createinsert.html
    Regards,
    Patrik

  • Create Menu Modules dynamically with JDAPI

    Hi everyone:
    I'm trying to create and compile menu modules dynamically based on a table,and I find out that using the JDAPI this task may could be done.
    The problem is that we have a logon page and we need to load different menus depending on the user permissions and because our menus grow and change constantly, we would like acomplish this dynamically with out having to change the source code every time a change is made (we only change the table).
    Is it possible to call this programs from oracle form at run time to create the menu modules and then continue working as usual, and if it is possible where I can find documentation about this.
    Any idea will be very helpfull. Thanks

    I guess you could import the JDAPI class files into a forms module and call the java to create a menu file. Why don't you use the menu security instead? With that you can have a menu that has all the menus you'll ever use and based on the roles you assign each user the function will hide or shoe the menus and menu items that the role is allowed to see.

  • File Receiver adapter module Dynamic Configuration

    Hi All
    I have a adapter module in a receiver file adapter. In the code I try to access the file name through dynamic configuration,The file name gets set in the mapping.
    String strFileName = msg.getMessageProperty(new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File"));
    When my module get executed I get error: nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageProperty(com.sap.engine.interfaces.messaging.api.MessagePropertyKey) of an object loaded from local variable 'msg'
    Is it possible to get file name in receiver adapter? if so why does this error occur?

    Yes it is possible...chk this
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    i guess u have added this import statement in ur code:
    import com.sap.engine.interfaces.messaging.api.MessagePropertyKey;
    Code will be soemthing like this (FOR PI7.1)
    MessagePropertyKey mpk = new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File");
    String filename = msg.getMessageProperty(mpk);
    Thanks
    Amit

  • Help needed to include a dynamic member range in report script

    Hi,
    I need to produce the report from Jan to Cur_Mth dynamically. I can include Cur_Mth by using a substitution variable.
    But how to include the months in between Jan and Cur_Mth?
    I tried with Jan:@Cur_Mth but its not working. Any clues will be of great help. Thanks
    Dinish

    onclipevent(load)                                           
    total=_root.getbytestotal();                             
    onclipevent(enterframe)
    loaded=_root.getbytesloaded();
    current=int(loaded/total*100);
    p=""+current+"%";
    if(loaded==total)
    gotoandplay("Scene 2",1);
    sorry for getting the code and coment mixed up.

  • Directive.include with dynamic variable

    How would I put a variable I have called ${includeFile} into an include directive below? I tried
    <jsp:directive.include file="${includeFile} " />
    And this did not work...

    How would I put a variable I have called
    ${includeFile} into an include directive below? I
    tried
    <jsp:directive.include file="${includeFile} " />are you sure of the Syntax ?
    >
    And this did not work...We can do 2 types of include in a jsp file see the Syntax .....
    1.<jsp:include> ----Includes a static file or sends a request to a dynamic file
    <jsp:include page="{relativeURL | <%= expression %>}" flush="true" />
    or
    <jsp:include page="{relativeURL | <%= expression %>}" flush="true" >
    <jsp:param name="parameterName"
              value="{parameterValue | <%= expression %>}" />+
    </jsp:include>
    2.Include Directive
    <%@ include file="relativeURL" %> -----Includes a static file in a JSP file, parsing the file's JSP elements.
    Deside which one you want to use...
    ---Vidya

  • Display module dynamically

    Hey guys,
        I have tried this in the past but it hasn't worked for me, so I moved on with states.  Now with Flex 4, I hoping I will have better luck.  I haven't be able to find any examples so far, so I am wondering if any here has come across a similar UI issue, and perhaps implemented it.
         Base of my application is an Application NavBar and a ViewStack, each component in my view stack is displayed with wipeup/down effect.  One component of a view stack is search, which displays a form and an empty panel next to it, when user submits the form, panel is populated with a DataGrid with results of the search.
         What I want to do now is if user clicks on one of the rows in the DataGrid, a module be loaded, pass an ID of the row, and populate some details in the module, and have the display the module with wipeup/down effect in the view stack.  If user clicks on browser back button, the module in unloaded and search page is displayed again as it was before. (I hope  get the picture of what I am trying to accomplish)
         I can load a module, pass an ID and get detail from db, but I can't seem to get it to display correctly, and I haven't tried the browser behavior, although I have deep linking already setup.  If I add the module to my view stack then and empty button is displayed on my NavBar (which is undesirable).  In the past I had created a state, but that gets really messy considering all the subcomponents that are displayed in my detail state. 
         Any pointers? an example would really help.  Thanks for you help
    Jay

    Hi,
    you cannot change button text dynamically in a dynpro itself.
    But you can place each button that may be shown on a different subscreen (if there are not too many). In PBO you choose the fitting subscreen in accordance to your needs.
    Good luck!
    Jo
    Edited by: Joachim Ardelt on May 13, 2008 9:39 AM

  • Is it possible to create a Functional module dynamically?

    Hello All,
    Does any one know whether is it possible to create a FM dynamically and write some code in it?
    Regards,
    Lisa.

    Hi,
    Yes it is possible.
    Use this FM to create a function module on the fly programatically.
    RS_FUNCTIONMODULE_INSERT.
    Here is an example
    Here an example how to call it:
    call function 'RS_FUNCTIONMODULE_INSERT'                                                   
      exporting                                                                               
    funcname                      = '/TEST40P/FB_TEST_EVE99'                               
        function_pool                 = 'CRAS1'                                                
    *   INTERFACE_GLOBAL              = ' '                                                    
    *   REMOTE_CALL                   = ' '                                                    
        short_text                    = 'TEST Anlage FB'                                       
       suppress_corr_check           = ' '                -----------------> means with transport popup                                                 
       update_task                   = '1'                                                     
    *   corrnum                       = 'B20K8A0V3F'                                           
       namespace                     = '/TEST40P/'                                             
    *   suppress_language_check       = 'X'                                                    
    *   AUTHORITY_CHECK               = 'X'                                                    
    *    save_active                   = ' '                                                   
        new_source                    = it_report[]                                            
    * IMPORTING                                                                               
    *   FUNCTION_INCLUDE              =                                                        
    *   CORRNUM_E                     =                                                        
    tables                                                                               
    import_parameter              = if_import                                               
       export_parameter              = if_export                                               
       tables_parameter              = if_tables                                               
       changing_parameter            = if_change                                               
       exception_list                = if_except                                               
       parameter_docu                = if_docu_tab                                             
    *   SOURCE                        =                                                        
    exceptions                                                                               
    double_task                   = 1                                                       
       error_message                 = 2                                                       
       function_already_exists       = 3                                                       
       invalid_function_pool         = 4                                                       
       invalid_name                  = 5                                                       
       too_many_functions            = 6                                                       
       no_modify_permission          = 7                                                       
       no_show_permission            = 8                                                       
       enqueue_system_failure        = 9                                                       
       canceled_in_corr              = 10                                                      
       others                        = 11.
    Regards,
    Sesh

  • Including modules in classpath

    Hi,
    I'm trying to create WTP projects from an ear file. I've successfully imported it and replaced the imported class files with the source files, but I'm having trouble getting it all to build. I think my main problem is the default WebLogic runtime I created doesn't include all of the weblogic jars I need. I'm not really sure how the list of jars is calculated, but I think many of the ones I require are in a directory beside the wlserver_10.3 folder called modules. What is the easiest way to add all the jars in the modules directory into my project's classpath?
    Thanks in advance,
    Scott

    In the Project Explorer, find "WebLogic System Libraries" for your project. You may need to look under "Java Resources/Libraries". Right-click on WebLogic System Libraries and select Properties. On the next screen, you will be able to control which WLS libraries should be visible on your project's compile-time classpath.
    - Konstantin

  • Flash header in PHP includes module site issues

    Is there any way to get my flash header not to reload
    eachtime in php inludes?
    This is a php module website with music controller in flash
    header. I don't like the music restarting everytime I click on a
    link in the page.
    I hear frames is not a good idea.
    any ideas?
    below is the website mock
    http://www.point1music.com/test
    Jeff
    Website in
    question

    The requested URL
    /clients/One_Pensacola/Scripts/AC_RunActiveContent.js was
    not found on this server.
    You must upload the Scripts folder that DW creates when you
    insert the Flash
    header.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "MelBLott" <[email protected]> wrote in
    message
    news:gfs7ov$1no$[email protected]..
    > I've created a flash header located below the menu bar.
    The menu bar is
    > within
    > an include. I've built a few sites with this same basic
    format, but only
    > this
    > time when publishing to the live site, the flash file
    will not appear. I
    > can
    > test in browser and it works and once published I can
    right click and view
    > source. It is including the file in the code, but it
    just will not play.
    > I've
    > tested the flash file separately from the html page and
    it's working fine
    > by
    > itself. Any suggestions as to what I've done wrong? The
    file has a
    > transparent
    > background so that the css built background tiling shows
    through in areas
    > of
    > the flash file. I didn't know if this might've affected
    it. Here is the
    > link to
    > the test site/page -
    >
    http://marketingallianceinc.com/clients/One_Pensacola/plans_test.php.
    >

  • Delivery from projects not included in dynamic availability check

    Problem:
    In our client, we use deliveries for project (delivery type LP, delivery item type DLP) triggered from network reservations.
    During delivery creation, we are finding that the existing deliveries are not being considered/cumulated into the ATP calculation. For example, for a given a material with an on hand balance of 22 units, individual deliveries for 4 units are created every day. The individual delivery passes the availability check test as it is always backed by the 22 units of stock.  However, as a whole now the individual deliveries are totaling 80 units, exceeding the quantity on hand.
    Is there any way to fine tune the availability check through customizing such that these  deliveries for project created are included in CO09 and the delivery for project creation?
    Or this should be an enhancement?. Client is in SAP R/3 version 4.7
    Thanks,
    Marco

    Query posted in the PP Forum and hence this is closed.

Maybe you are looking for