Including Dynamic JSP in a JSP

I am including a JSP inside another JSP using <jsp:include page ="-" />
THIS is giving some error,i.e can't compile.If i am running the JSPs with out including the JSPs are working fine.
Could any one tell the problem.

Sup. Maybe you should try the include directive e.g <%@ include file="url" %> . Cheers

Similar Messages

  • 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's includes from JSF Java Beans

    Hi!
    I�m David from Barcelona.I'm testing different JSF components.
    I'm working with MyFaces components, with Tabs, binding the component like this to create sub tabs dynamically:
    <t:panelTabbedPane binding="#{editorPanelBean.pane}"/>
    Now, in the bean, I use the Application class to create
    my pane and child tabs:
    UIComponent pane = app.createComponent(TABBEDPANE);
    UIComponent childtab = app.createComponent(PANELTAB);
    HtmlPanelTab tab = (HtmlPanelTab) childtab;
    I want to start adding contents to my child tabs.
    Am I locked into doing it programmatically or is it possible to somehow refer back to a JSP page
    with an include to generate the contents of each tab child?
    I can do it without binding the panelTabbedPane component, but the problem it's when I construct the component with a binding, then the include JSP doesn't work. I have tried with a Verbatim and HtmlOutputText but no results, like this:
    HtmlTabItem aHtmlTabItem = (HtmlTabItem) application.createComponent(HtmlTabItem.COMPONENT_TYPE);
    aHtmlTabItem.setValue(valor);
    aHtmlTabItem.setId(viewRoot.createUniqueId());
    UIOutput verbatim1 = (UIOutput) application.createComponent("javax.faces.Output");
    //verbatim1.setValue("<f:subview id=\""+viewRoot.createUniqueId()+"\"><jsp:include page=\"ficha_paciente_tab2.jsp\" flush=\"false\"/></f:subview>");
    verbatim1.setValue("<%@ include file=\"ficha_paciente_tab2.jsp\" %>");
    verbatim1.getAttributes().put("escape", Boolean.FALSE);
    verbatim1.setId(viewRoot.createUniqueId());
    aHtmlTabItem.getChildren().add(verbatim1);
    How can I include dynamically from my bean a JSP page with the HTMlL design of each tab and anything I want to ?
    Any help would be great !
    Thanks!

    1. username and password should be simple String properties, don't make it any more difficult than it needs to be.
    2. if (result == "success")
    Oh dear, Java 101 mistake. You want to use result.equals("success") to make that work.
    Another observation: you may want to move all the database code to a separate class. If you put database logic in seperate classes with specific methods (login(), logout(), getAllUsers(), etc.) you not only make your code more readable but you make it possible to re-use those methods in different parts of your code.

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

  • How can i include a jsp file in servlet?

    hi
    i generate a dynamic page from servlet.
    i need to include a jsp file in same servlet.
    i try like this --
    out.println("<HTML>");
    out.println("<HEAD><TITLE>First</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<%@ include file=\"abc.jsp\">");
    out.println("<FORM>");
    out.println("</FORM>");
    out.println("</BODY>");
    out.println("</HTML>");

    Replace your line with
    RequestDispatcher rd = request.getRequestDispatcher("abc.jsp");
    rd.include(request, response);

  • How to include more jsp?

    Hi,
    I've header.jsp, footer.jsp, content.jsp (which is loaded dynamically) and a main.jsp. I would include all jsp into main.jsp.
    This is the header.jsp
    <div id="logo" align="top">
    <img src="http://www.company.com/images/logo-red.gif"/>
    <div class="user-info">Welcome, <h:outputText value="#{user.email}"/></div>
    </div>
    The footer.jsp is
    <div id="footer">
    <div id="footer-copyright">Copyright &copy; 2006 MyCompany, Inc.</div>
    </div>
    The content.jsp is
    <h:dataTable value="#{controller.renderedSteps}" var="vitem"
    rowClasses="stepdescription-text">
    <h:column>
    <h:outputText id="stepDescription" value="#{vitem.step.description}"/>
    </h:column>
    <h:column>
    <h:commandButton value="next step"
    action="#{controller.nextStep}"
    rendered="#{vitem.isRendered}"
    disabled="#{vitem.isDisabled}" />
    </h:column>
    </h:dataTable>
    The body of main.jsp is
    <body>
    <f:view>
    <h:panelGrid>
    <jsp:include page="header.jsp"/>
    <jsp:include page="content.jsp"/>
    <jsp:include page="footer.jsp"/>
    </h:panelGrid>
    </f:view>
    </body>
    The problem is that when I load the main.jsp seems that the <div> are ignored.
    I'm very new in JSF and JSP\HTML.
    Thanks

    Use f:subview and use f:verbatim.
    First, f:verbatim... This JSF tag allows you to write HTML verbatim to your page. Whenever you have an HTML tag in any included page from a JSF app, it must be wrapped in f:verbatim. It is also good practice to use f:verbatim in your main page too, though it is not absolutely required. Do not wrap JSF tags in f:verbatim, it will not work.
    A general rule of thumb is to attempt to use as little HTML as possible. The JSF tag set with CSS actually eliminates the need for a great deal of HTML. I suggest picking up a good book that explains each component in the JSF library. Such as Core JavaServer Faces by David Geary and Cay Horstmann. Some free chapters can be found here (Check out "Basic Standard Components): http://www.horstmann.com/corejsf/
    Seconly, use f:subview when including a page. Either inside the included JSP or around the include statement. Like so:
    <f:subview id="header">
        <jsp:include page="header.jsp"/>
    </f:subview>
    OR
    <f:subview id="header">
    <f:verbatim><div id="logo" align="top">
    <a href="http://www.mycompany.com/">
    <img src="http://www.company.com/images/logo-red.gif"/>
    </a>
    <div class="user-info">Welcome, </f:verbatim><h:outputText value="#{user.email}"/><f:verbatim></div>
    </div></f:verbatim>
    </f:subview>For more information, check out this related forum posting:
    http://forum.java.sun.com/thread.jspa?threadID=715984&start=10&tstart=0
    Hope this helps!
    CowKing

  • Include a jsp in another

    I wanr to include a jsp into another, but dinamically. I have a file named Inicio.jsp. This file has a link that calls the servlet "ServletMenu". This servlet decides which jsp page to load. But I want to load "inside" the Inicio.jsp.
    Here a send some code
    Inicio.jsp: shows a menu
    <tr>
    <td>Menu 1</td>
    </tr>
    ServletMenu
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType(CONTENT_TYPE);
    String operacion = (String)request.getParameter("operacion");
    if(operacion.equalsIgnoreCase("menu1")) {
    RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher("/WebModulo1/Menu1");
    dispatcher.forward(request, response);
    Menu1 contains a form
    The page given by the servlet should show everything that is shown in Inicio.jsp and in the middle of the page should be the content of the Menu1.jsp.
    Am I clear? The idea is mantain a fix menu and load only dynamic content in the middle of the page.
    hope you can help

    I have the code working but ServletMenu only loads the Menu1.jsp and that is not what I want.
    I' m developing an Intranet site. Depending on the user that is logged, the menu that is shown, because not all users have access to all the system tasks.
    I thought of having the pages containing the menu shown to the user done statically and in the middle of that statical page load the content of a dynamic page.
    For example, suppose I have in the server the pages Inicio.jsp, that shows the menu, and Menu1.jsp that shows the same things that Inicio.jsp (but the link to menu1should not exit) and whatever is loaded when the user clicks in the link menu1 of the Inicio.jsp page. The "whatever is loadded" will be another .jsp page, that should be inside Menu1.jsp.
    Hope I'm clearer this time
    Thanks

  • Include directive to include a JSP file from a JAR file

    I have an Eclipse project in which I have placed a JSP file in the package structure with the rest of my code. This is in fact only a code snippet page, not a full blown JSP file.
    I have a second project that is a Dynamic Web Project in Eclipse that incorporates the first project as a JAR in the /WEB-INF/lib directory.
    In this project I have a JSP file and I want to include the JSP file embedded in that JAR file.
    How do I do that?
    I'm thinking the only real solution is to rewrite the snippet portion as a custom tag.

    The JSP fragment page in question is actually a HTML form page. It is a form to be used specifically by a particular servlet. That is why they are "bundled" together in the same project, in the same package structure.
    I have multiple web applications that I want to include that form/servlet, so it gets added to these projects in the /WEB-INF/lib folder as a JAR library. But I don't want to recreate the form over and over again for each application. It would be nice if I could write a JSP page that wraps the fragment using an include directive to bring that fragment into the new page.
    So to do that with any other fragment I would write:
    <%@ include file="/WEB-INF/jsp/SOME_FORM.jsp" %>
    which works great if my fragment page is in the /WEB-INF/jsp subfolder. But if I want to access the JSP fragment as it is bundled in a JAR file, this:
    <%@ include file="/WEB-INF/lib/FORM.jar/SOME_FORM.jsp" %>
    doesn't work so good. It's just all wrong.
    I was wondering how I could just write one include statement to get what I need. There are work-arounds galore, but I thought if I could get this working it would be the simplest solution overall.

  • How to include a jsp page in another jsp jsp page

    hi,
    i m trying to include a jsp page name "header.jsp" into one jsp page name"selectattribute.jsp" i m using these commands in "selectattribute.jsp"
    <%@include file "header.jsp"%> bcz both these jsp page are C:\program files\tomcat 4.0\webapps\examples\jsp\Poject\
    but the problem is that , i m invoking this jsp page "selectattribute.jsp" from a servlet reportcontroller.java using REQUEST DISPATCHER.
    the servlet is in
    C:\Program files\tomcat 4.0\webapps\examples\WEB-INF\classes\Project\
    i want to know how to include some other jsp page in a jsp page and how to invoke applet from jsp page when that particular jsp page is being invoked by servlet.
    plz help
    manish

    use this for including in your selectattribute.jsp
    <jsp:include page="header.jsp" flush="true"/>
    I never tried calling an applet. I think you can write the code for calling the applet in a javabean method and call the method in the jsp

  • Using a real file path to include a JSP using RequestDispatcher

    Hi,
    I am trying to figure out how to use RequestDispatcher inside a servlet to include a jsp page using a real file path instead of a context path. So for example I would want to do something like...
    RequestDispatcher rd = this.getServletContext().getRequestDispatcher("c:/tomcat/conf/think.jsp");
    Is this possible? tomcat is complaining that the path does not start with a "/"
    From a higher level I am trying to setup a solution where all of my web applications can share a set of global jsp pages and other resources. I know the easiest solution would be to put everything into one web application but this does not make sense in my situation because I have differnet web applications for different companies on the same server. Any help would be greatly appreciated. - krebsnet

    First of all...
    My test environment is Tomcat 4.1.24 and it runs on port 80 as my webserver as well.
    I can place the .jsp (or .html) in the shared folder. Not in the lib or class folders but right in the shared folder. I can then call it from multiple contexts without using the context path. Just tested it a minute ago. For example I have test.jsp in the shared folder and loaded it from two separate contexts (one named /demo and one named /inetapps) by calling Load test. It loaded in both of them and neither contain a test.jsp file.

  • In portlet context include a jsp from the desktop context

    Hi,
    I developed a portlet, and in my jsp file I want to include a jsp file which is in my portal desktop (the file is in /etc/opt/SUNWps/desktop/..).
    So I want to do something like:
    <c:import url="file:///etc/opt/SUNWps/desktop/mydesktop/ PortletHeader.jsp" /> Of course this doesn't work because the jsp expressions are not executed, instead the jsp tags are just displayed in the browser.
    but for including a jsp with <@include file> or <c:import> or <jsp:include>, the jsp must run in its context. So actually we should do something like <c:import url="some_path" context="some_context" >.
    Now, I don't know what some_context is. To what context the portal desktop runs so the jsp file can be 'executed'?
    Hope someone can give me some more information about this.
    Greets,
    Tim

    <quote>some_context <quote>
    ..will be the pageContext
    which is the implicit object for a JSP.
    or
    use config object to get this context and then use
    <jsp:include> or <@include file>
    rgds
    http://lokeshpant.blogspot.com

  • Including a jsp on the same page by clicking a button

    Hi,
    I have a jsp page where there are many controls and some buttons. If I click a buton called "Edit" I need to include a jsp page below the existing controls.
    Can someone please tell me how to do that?
    <tr>
    <td>
    <a><img name="View" src="view.gif" border="0"/></a>
    <a><img name="Edit" src="edit.gif" border="0"/></a>
    </td>
    </tr>
    this is thecode which I have for buttons in my page
    Thanks

    Using javascript, you could wrap the included page within a DIV tag or SPAN tag that is initially not visible. Then when the user clicks the button you would make the hidden DIV or SPAN visible.
    The visibility attribute can be set to visible (to see it) or hidden (to not see it). Here's a page that might shed some light:
    http://www.csctce.com/demos/dom_tutorial/
    HTH

  • How can I include a JSP, Maximized, and retain look and feel(WSRP)

    I have created a page group and defined a root page with a certain look and feel. There are two portlets on the page. Once the user clicks on a submit button, the portlet performs some action and includes a jsp included in the EAR file. The portlet needs to maximize the UI to display the jsp correctly.
    Once control returns back to the screen, the look and feel is lost and uses Oracle's default style. I have two questions:
    1. From the portlet, how can I retain the look and feel of the page group when referencing "external" jsp (i.e JSPs in the deployed portal EAR file).
    2. How can I "redirect" the user to the home page in a standard way? If there is not a standard way, how do I use the Oracle specific utilities to do it?
    All of my JSPs are developed externally out of the scope of the Oracle Portal.
    Environment - Oracle Portal 10.1.4 on Release 2 using WSRP to contact Oracle Release 3, hosted EAR file (WSRP Producer).
    Thanks in advance.

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • Friends..how can i include a jsp page in a servlet

    like i want to use like
    if(conditionl)
    out.println(" welcome");
    //////// here i want to include some jsp page /////
    I tried with...
    <% @include %> but its not working
    Thanks in advance

    I tried with...
    <% @include %> but its not working
    Thanks in advanceThat only woks for JSP Pages.
    You have to call the include method of the RequestDispatcher
    if(conditionl)
      out.println(" welcome");
      getRequestDispachter("/myJSPDir/my.jsp").include(request, response);
    }

  • How to include a jsp in child window?

    Hi,
    I've a jsp which creates a new window(a new jsp using window.open()) while clicking a button.In the new jsp i'm including another jsp using ,
    <jsp:directive.include file="first.jsp"/>
    but in the window jsp's is not getting included.I've tried <%@ ..
    include also.But all in vain.
    Additionaly I'm giving css in the window using
    <link ref="stylesheet" href="/editor/mystyle.css"/>
    which is also not working.
    Can somebody help on this?
    Thanks,
    Shabeer.

    hi
    I think this url can helps to your for resolve your issue.
    http://www.oracle.com/technology/sample_code/tech/java/jsps/ojsp/jspxml/Example.jsp.html
    Regards,
    Sridhar

Maybe you are looking for

  • Disk Utilty does not work after update to OSX 10.8.4

    I updated to OSX 10.8.4 on my Macbook pro and the update went smoothly. However when I try to run Disk Utility the utility never starts and the right click menu says it is not responding. I have to force quit.

  • Can no longer use my selection tools - help!

    while cutting, copying and pasting, I accidentally clicked on something in the top bar that caused all of the tools that are in the left-hand side (default) of my Photoshop CS 4 workspace (and the picture) to remain a black pointed arrow which is the

  • Adobe Acrobat X PDF Printer not printing to Network Share

    Until recently we have been able to print to PDF onto a network share/drive without an issue.  Now it does not work, and we are not sure if it is an antivirus blocking it or perhaps an Adobe update, or even a combination of the two. We can print to P

  • Why does the internet on my new macbook pro not work when my old macbook's does?

    Why does the internet on my new macbook pro not work when my old macbook's does? I'll have to turn the wifi off and back on multiple times to get the internet to continue to work on my Macbook Pro (running mountain lion but did it on lion also) when

  • Conversion - Doc with multiple line items - LSMW

    Hi Friends,    I have got a flat file that holds all the open sales orders from a legacy system. I need to upload these data into R/3. If i use LSMW it creates a separate sales order for each line item of a single sales order. That is i am unable to