Dynamic ui:include difficulties

I'm attempting to dynamically include a page based upon a variable value. I'm running my application in GlassFish v3.0.1 and I'm using JSF2 with RichFaces 4. I've read the following articles pertaining to this:
[http://in.relation.to/11633.lace]
[http://devharbor.blogspot.com/2009/08/add-jsf-controls-dynamically-with.html]
and I believe that I have my code correct to work, but I can't seem to get the <c:forEach> tag to work.
<h:panelGroup layout="block">
     <c:forEach var="record" items="#{backer.records}">
          <ui:include src="#{record.page}">
               <ui:param name="paramBean" value="#{record}" />
          </ui:include>
     </c:forEach>
</h:panelGroup>
I've got the namespace included for the jstl library:
<ui:composition template="layout.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">but that gave me the following error when loading the page:
This page contains the following errors:
error on line 16 at column 26: Namespace prefix c on forEach is not defined
Below is a rendering of the page up to the first error.
So I included the jstl namespace in my layout.xhtml template, but that only resulted in the following error message being displayed on my web page.
Warning: This page calls for XML namespace http://java.sun.com/jstl/core declared with prefix c but no taglibrary exists for that namespace.
I've added the following to my pom.xml to ensure that I have the jstl libraries available but it did not seem to have any effect.
        <dependency>
            <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
            <version>1.1.2</version>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.1.2</version>
        </dependency>
So what am I missing? Why can't I get this to work?
Thanks for the help..

Thanks a lot. It worked from me after changing to xmlns:c="http://java.sun.com/jsp/jstl/core" instaed of xmlns:c="http://java.sun.com/jstl/core".
Regards,
Raju Ilayaraja.

Similar Messages

  • SunOne Websever 5 sp 5 dynamic jsp:include

    Hi,
    I'm just trying to migrate from another webserver to SunOne.
    I have a number of pages that rely on dynamic JSP includes.
    IE
    <jsp:include page="<%= someString %>" flush="true">
    All pages which use this fail to compile and I get a server error (no errors show up in the logs).
    While using a static value (the same value) works fine.
    <jsp:include page="somevalue" flush="true">
    Has anyone has this problem ? has this functionality been discontinued ?
    regs
    Michael

    Hi,
    That page refers to the JSP Spec. version 1.1 which is used in WebServer 6.0.
    It is documented in the Release Notes for WebServer 6.0 that jsp:include throws an exception when used with the POST method. Is this what you are experiencing?
    http://docs.sun.com/source/816-5695-10/rn60sp2.html
    Problem 556917. JSP: <jsp:inlcude page="*.html" flush="true" /> Throws Exception If Using With POST Method.
    Which version of webserver are you using?? Your subject line refers to "Websever 5 sp 5" but do you mean Webserver 6.0sp5 or WebServer 6.1sp5??
    WebServer 6.1sp5 uses JSP Spec. version 1.2, so the page that you were referring to is not relevant if you are using this version of WebServer.
    Please note that JSP Specs can be downloaded from:
    http://java.sun.com/products/jsp/reference/api/index.html
    Let us know exactly which version of WebServer you are using :)

  • Dynamic Textid Include in Smartform

    Hello Everybody,
    i want to include text in my smartform
    the text id name will be number of my billing document no which will be dynamic.
    in sapscript we can insert this way
    INCLUDE &ZTDNAME& OBJECT TEXT ID ST.
    but if in smartform i had try same but not working
    can anybody pls suggest me what will be the paragraph format for include text id in smartform
    and why my text id's text not coming..

    U might have created a text element and wrote this sapscript command.
    In smartforms this is done differently,
    First create a text.
    Now select type of text in the drop down as include text.
    Now it will ask u for text id and object language etc.
    check this smartform document
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    see page 46 for include texts
    Edited by: Kartik Tarla on Jun 13, 2009 12:51 PM

  • Dynamic HTML includes

    Hello everyone,
              I have what should be a fairly simple problem, but I can't seem to find
              a simple solution. I have a JSP page which is supposed to include an HTML
              page. The problem is that the address of the HTML page is dynamic (it is
              stored in a database). I would like to to something like the following :
              <%
              String productHTMLPage = myProduct.getHTMLDescription();
              %>
              <%@ include page=<%=productHTMLPage%>%>
              Any ideas on how to get it to work ?
              John Ferguson Smart
              Project Manager
              AACom
              [John Ferguson Smart.vcf]
              

    Albert could you post the error stack. If the stack repeats itself then what is the
              content of test2.jsp is it calling test.jsp or test2.jsp coz it looks like a cyclic
              reference if it repeats.
              Thanks
              Albert Chan wrote:
              > I come across a similar problem. when I try
              >
              > test.jsp:
              > <% String p="test2.html"; %>
              > <jsp:include page="<%= p %>" />
              >
              > it will works, however if I change to <% String p="test2.jsp"; %>
              > the server will just hang. and got a long error message on the server which is
              > going on and on and the stack trace just repeat itself. and I am using weblogic
              > 4.5.1 w/ SP4.
              >
              > Vishwanath Salelkar wrote:
              >
              > > John can you try out this
              > >
              > > <jsp:include page="<%= productPage %>"/>
              > >
              > > This should work just let us know if it doesn't so we can try out something
              > > else.
              > >
              > > Salelkar
              > >
              > > John Ferguson Smart wrote:
              > >
              > > > I've tried the following code in my JSP page (productPage =
              > > > "/produits/grandbleu/grandbleu.html", the HTML description page read from
              > > > the database) :
              > > >
              > > > 1) <%=response.encodeRedirectURL(productPage) %>
              > > > <p>
              > > > 2) <%@ include file="<%=response.encodeRedirectURL(productPage)%>"%>
              > > > <p>
              > > > 3) <%@ include file=<%=productPage%>%>
              > > > <p>
              > > > 4) <%@ include file="/produits/grandbleu/grandbleu.html"%>
              > > >
              > > > I get the following HTML result :
              > > >
              > > > 1) /produits/grandbleu/grandbleu.html
              > > >
              > > > 2)
              > > >
              > > > 3) <%@ include file=/produits/grandbleu/grandbleu.html%>
              > > >
              > > > 4) (the correct HTML page)
              > > >
              > > > As you can see, I can get it to work with static includes, but dynamic
              > > > includes don't seem to work at all !
              > > > Any other ideas ?
              > > > --
              > > > John Ferguson Smart
              > > > Project Manager
              > > > AACom
              

  • Dynamic JSP includes

    Hello,
    I have been asked to verify whether the following behavior
    is a bug in IBM's Websphere Studio Application Developer (WSAD)
    OR an expected JSP behavior. Can someone point to a whitepaper or some kind of official document which verifies that the below behavior is expected in WSAD 5.0???? I will truely appreciate the response. Thanks.
    we dynamically including a jsp page like this --> [<jsp:include
    page="test.jsp" />]. The included JSP page (test.jsp) has an intended compile time error. For example, we (on purpose) left the import of java.util.* out & tried to reference a Vector object. When I try to run the page that includes test.jsp (I called it Parent.jsp), I get the following runtime error:
    An error occurred between lines: 8 and 14 in the jsp file: /test.jsp
    Generated servlet error:
    C:\cacheManager\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\jspTestEar\testJSP.war\_test.java:70: Class org.apache.jsp.Vector not found.
    Vector lVec = new Vector();
    ^
    2 errors
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.loadJSP(JspServlet.java:861)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:278)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:304)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:219)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:991)
         at org.apache.jsp._testParentJSP._jspService(_testParentJSP.java:76)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

    Yogi,
    Thanks for the info. However, I think I worded the problem
    totally wrong! Here is my question in nutshell. Lets say that
    I have imported the java.util.* package in the parent.jsp file.
    I have included the test.jsp in the parent.jsp file DYNAMICALLY.
    In test.jsp, the reference to the Vector object is failing. I believe
    that should work, since the include directive basically appends the
    test.jsp with the parent.jsp & hence exposes the imported java.util.*
    package to the test.jsp. Which means the Vector reference should resolve & not fail at compile time. Do you agree? Maybe I am misunderstanding the include directive. Please let me know.
    I am going to try to run it in WebLogic tonight. A sort of a controlled
    experiment. At this point, Its not working in WSAD. Thanks.

  • Dynamic Jsp Include

    I want to dynamically include a file in jsp.
    %@ include file= [variable name] %>
    Is this possible?

    If you want request-time inclusion (and it seems that is what you want), use <jsp:include>
    For example, one could conditionally include the content generated from two different JSPs like this...
    <%
         boolean condition = ... ;
         if(condition) {
    %>
              <jsp:include page="/bla/one.jsp" />
    <%
         } else {
    %>
              <jsp:include page="/bla/two.jsp" />
    <%
    %>

  • Assigning file dynamically in Include directive?

    Is it possible to dynamically assign the file in Include directive?
    If posibble how? The code below does not work.
    <%
         String page_name = request.getParameter("num_id");
         if(page_name == null) page_name = "/body/that.html";
         if(page_name == "1") page_name = "/body/that.html";
         if(page_name == "4") page_name = "/body/that.html";
         if(page_name == "5") page_name = "/body/comment.html";
    %>
    <jsp:include page = "<%=page_name%>" />
    If not any alternative on doing this?
    More power!!!

    There's always this...... and you know, of course, that you do'nt compare strings with ==, right?
    <%
    String page_name = request.getParameter("num_id");
    if(page_name == null) {
    %>
    <jsp:include page = "/body/that.html" />
    <%
    } else if(page_name.equals("1")) {
    %>
    <jsp:include page = "/body/that.html" />
    <%
    } else if(page_name.equals("4")) {
    %>
    <jsp:include page = "/body/that.html"" />
    <%
    } else if(page_name.equals("5")) {
    %>
    <jsp:include page = "/body/comment.html" />
    <%
    %>

  • Dynamically include jsp:param

    Is it possible to include <jsp:param> inside <jsp:forward> dynamically? There are two ways:
    1)
    <jsp:forward ...>
    <% if (...) { %>
         <jsp:param ... />
    <% } %>
    </jsp:forward>
    2)
    <jsp:forward ...>
    <util:if predicate="...">
         <jsp:param ... />
    </util:if>
    </jsp:forward>
    assuming <util:if> is some kind of conditional evaluation tag.
    The JSP 1.2 pfd2 says:
    The jsp:param element is used to provide key/value information. This element is
    used in the jsp:include , jsp:forward and jsp:params elements. A translation
    error shall occur if the element is used elsewhere.
    This seems to indicate that 2) is not allowed, but it is not clear whether or not 1) is allowed.
    I think it is desirable to allow both methods of dynamically including jsp:param elements.
    Any comments?

    1. doesn't work. You're not allowed to have <% %> scriplets inside of a jsp:forward tag. You can however include <%= %> tags. So you could set the value of a parameter dynamically and include the in the jsp:param tag
    2. I don't know about.
    -Derek

  • Build Labview Application which loads functions dynamically

    I am not sure if this is possible for executables, but it works pretty well in the LabVIEW development mode.
    I have a LabVIEW program which calls some functions (sub-functions) dynamically. In the develop mode, the sub-functions are in separate *.llb files. When a subfunction is selected from the menu of the main LabVEIW program, the main application searches a particular location/directory for a particular *.llb file; if the *.llb is found, it loads the vi and runs it, if not, it tells the user that the function is not available. The advantage of doing this is that I can add/remove/modify these sub-functions simply by puting in or taking out the *.llb file from that directory without causing any problem on the main program.
    Would it be possible to do the same if I buid an LabVIEW executable application (I mean build/compile the main application first, and then add/remove functions by putting/removing some files in a directory)? If yes, then I can distribute new functions to users without having to re-compile the whole thing.
    Thanks.
    Ian

    Hello Andrew,
    When Using LOader method, there are a few things to take care of. It is not so terrible when you know what and why. Consider this If you change your executable, You have to rebuild and then you realize there was a small spelling mistake or a control was not aligned. Doing a double check is sometimes as important as good programming.
    1. Path Issues - These you will have whether you build executable or release it as a library. This happens if you use relative path.
    2. Use of native labview Vi's in your code - When the code changes, You want to distribute the new LLB. Well Use Save with Options and Choose "Application Distribution" Select "Entire Hierarchy", "Include Vi.lib Files" And "Runtime Menu" and "External Routines" If you want your App protected. Click Remove Diagrams. Again Make sure you don't lose your Original file if you choose this. All this saves the whole App as LLB.
    Then your Loader has to call your Main Vi dynamically. How difficult is the path Issue to Call One Main Vi in a Vi Library. There is no Licensing Issue here as LV itself gives you this option.
    I have used this method for a couple of 200 Vis or more Applications and constantly updated by changing the llb file without any hassle.
    Good Luck!
    Mache

  • Dynamic path does not work in Css files

    Hi,
    I have a css file in which i have used few images, but when i try to make the path dynamic and include that css in my page the image doesn't appear but when i put the complete path in it it works.
    It works when used in this way :
    .inputrightbg
         background-image: url(http://<hostname>:<port>/idc/groups/public/documents/omp_images/input_rightbg.gif); background-repeat: no-repeat; background-
    position: right top; float: left; padding: 4px 10px 4px 0px; height: 26px;
    Doesn't work when use in this way :
         background-image: url(<!--$HttpRelativeWebRoot-->groups/public/documents/omp_images/input_rightbg.gif); background-repeat: no-repeat;
    background-position: right top; float: left; padding: 4px 10px 4px 0px; height: 26px;
    Thanks,
    Abhijit

    Right, you can't put IdocScript in css.
    You can use the Web URL Map though to make urls that are easy to deposit in CSS.
    Check these out:
    http://www.corecontentonly.com/index.php/2009/10/14/web-url-map-extras/
    http://blogs.oracle.com/kyle/2009/09/friendly_urls_for_ucm.html
    -Jason
    http://www.corecontentonly.com
    http://www.redstonecontentsolutions.com

  • Dynamically write data to a column named in a table

    I'd like to write a query that will look up a code, aggregate some data based on the results of that lookup, and store the result in a column named in the lookup table. This isn't real clear; I need an example.
    pseudo code:
    lookup_table(target_column, lookup_code)
    values('target_col_1', 'A')
    values('target_col_2', 'B')
    select target_column as target ,
    lookup_code as code
    from lookup_table
    for each row {
    update results_table r
    set target =(
    select sum(somecol),
    pk_id
    from source_table src
    where code_col = code
    where r.pk_id = src.pk_id
    Does this make any sense?

    End-User wrote:
    I'd like to write a query that will look up a code, aggregate some data based on the results of that lookup, and store the result in a column named in the lookup table.Storing code or parts of code in database tables is a really bad idea.
    {message:id=10590811}
    You will need to construct the SQL dynamically, which is difficult, error prone and resource intensive if it runs.
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/dynamic.htm#LNPLS011

  • How to create a function with dynamic sql or any better way to achieve this?

            Hello,
            I have created below SQL query which works fine however when scalar function created ,it
            throws an error "Only functions and extended stored procedures can be executed from within a
            function.". In below code First cursor reads all client database names and second cursor
            reads client locations.
                      DECLARE @clientLocation nvarchar(100),@locationClientPath nvarchar(Max);
                      DECLARE @ItemID int;
                      SET @locationClientPath = char(0);
                      SET @ItemID = 67480;
       --building dynamic sql to replace database name at runtime
             DECLARE @strSQL nvarchar(Max);
             DECLARE @DatabaseName nvarchar(100);
             DECLARE @localClientPath nvarchar(MAX) ;
                      Declare databaselist_cursor Cursor for select [DBName] from [DataBase].[dbo].
                      [tblOrganization] 
                      OPEN databaselist_cursor
                      FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                      WHILE @@FETCH_STATUS = 0
                      BEGIN       
       PRINT 'Processing DATABASE: ' + @DatabaseName;
        SET @strSQL = 'DECLARE organizationlist_cursor CURSOR
        FOR SELECT '+ @DatabaseName +'.[dbo].[usGetLocationPathByRID]
                                   ([LocationRID]) 
        FROM '+ @DatabaseName +'.[dbo].[tblItemLocationDetailOrg] where
                                   ItemId = '+ cast(@ItemID as nvarchar(20))  ;
         EXEC sp_executesql @strSQL;
        -- Open the cursor
        OPEN organizationlist_cursor
        SET @localClientPath = '';
        -- go through each Location path and return the 
         FETCH NEXT FROM organizationlist_cursor into @clientLocation
         WHILE @@FETCH_STATUS = 0
          BEGIN
           SELECT @localClientPath =  @clientLocation; 
           SELECT @locationClientPath =
    @locationClientPath + @clientLocation + ','
           FETCH NEXT FROM organizationlist_cursor INTO
    @clientLocation
          END
           PRINT 'current databse client location'+  @localClientPath;
         -- Close the Cursor
         CLOSE organizationlist_cursor;
         DEALLOCATE organizationlist_cursor;
         FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                    END
                    CLOSE databaselist_cursor;
                    DEALLOCATE databaselist_cursor;
                    -- Trim the last comma from the string
                   SELECT @locationClientPath = SUBSTRING(@locationClientPath,1,LEN(@locationClientPath)-  1);
                     PRINT @locationClientPath;
            I would like to create above query in function so that return value would be used in 
            another query select statement and I am using SQL 2005.
            I would like to know if there is a way to make this work as a function or any better way
            to  achieve this?
            Thanks,

    This very simple: We cannot use dynamic SQL from used-defined functions written in T-SQL. This is because you are not permitted do anything in a UDF that could change the database state (as the UDF may be invoked as part of a query). Since you can
    do anything from dynamic SQL, including updates, it is obvious why dynamic SQL is not permitted as per the microsoft..
    In SQL 2005 and later, we could implement your function as a CLR function. Recall that all data access from the CLR is dynamic SQL. (here you are safe-guarded, so that if you perform an update operation from your function, you will get caught.) A word of warning
    though: data access from scalar UDFs can often give performance problems and its not recommended too..
    Raju Rasagounder Sr MSSQL DBA
          Hi Raju,
           Can you help me writing CLR for my above function? I am newbie to SQL CLR programming.
           Thanks in advance!
           Satya
              

  • Dynamic parameter with an IMPORT statement

    Hello experts. I hope you can help me with this issue:
    I have a report performing an EXPORT statement into a Buffer:
      EXPORT I_USER    FROM P_USER
                    I_NAME    FROM P_NAME
                    I_SURNAME FROM P_SURNAM
               TO DATA BUFFER V_XPARVALUES.
    Then it calls the first FM where a type I program is created by using INSERT REPORT... This dynamic-generate INCLUDE has the explicits declaration for variables: I_USER, I_NAME, I_SURNAME.
    Afeter the dynamic Include generation, it calls a second FM, wich has the reference to the dynamic Include created before with the data declaration. The only thing remain is to IMPORT all the data from the buffer V_XPARVALUES:
    The following code lines are within a LOOP. wa_param-paramname has the name of the variable (I_USER, I_NAME I_SURNAME).
        ASSIGN (wa_param-paramname) TO
          FROM DATA BUFFER v_xparvalues.
    but what I need to achieve is dynamic parameters in the IMPORT statement.
    Had anybody came across this problem?
    I hope I have been clear with the explanation.
    Regards,
    Andrés Sarcevic.

    IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.

  • Reading Dynamic Files using File port

    Hello All,
    We have a requirement in our project where we have to use File Port to pick a set of IDOC Flat files from a given directory. The File Port only allows us to pick a file with a specific given name and does not allow us to pull file with a pattern for .eg. We  can pull a file abcd.txt but cannot pull something like abc.txt. Our requirement is to pull abc.txt using the File Port.
    If anyone has any idea about this, or any past experience with File Port in this regard, then please respond at the earliest.
    We have created the file port with follwoing parameters:
    Unchecked the Unicode Format System Setting
    For the Inbound File:
    Function Module: EDI_PATH_CREATE_CLIENT_DOCNUM
    Directory is: A valid directory path
    File Name: abcd.txt
    Thanks in advance.
    Abinash

    If the xml files are all in the same directory (not in any directory structure relative to the parent directory), you can do something like this.
    - create a bpel process to read the zip files as it comes into the directory]
    - Have a file adapter inbound for the receive
    - Call windows .bat command within the bpel process to run an unzip command on that directory
    - Have another bpel process that reads *.xml files and this will get kicked off.
    There are so many ways of solving this: like having a cron job to unzip the files coming in etc. But, if you have a directory structure for these XML files and if the structure is dynamic, it is difficult to configure the file adapter for that.

  • Include file

    Hi,
    I have say 4 jsp pages. One page (A.jsp) is sort of a controller. It defines different kinds of variables. The other 3 jsp pages (say B, C, D) are included in between the code in A.jsp (using @include file..) depending upon some kind of condition. Not all the 3 files are included - they are in a if..then condition. All the 3 files make use of some variables defined in A.jsp.
    The problem is:
    In JDev9i, When I try to run the application, I get an error in the compilation stage saying that variable x etc are not found in file B, C or D - wherever its used (The variable was defined in A.jsp). and the application fails to execute. What do I have to o in order to get around this problem 'cause there are many such files in my project.

    Hi,
    Instead of using static include using @include, depending on the condition, use dynamic jsp include <jsp:include> and pass the variables used in A.jsp using <jsp:param> to B,C,D jsps. Access the value of the variable from the request.parameter object.
    Hope that helps.
    OTN Group@IDC

Maybe you are looking for