How to call multiple strus actions froma single jsp

how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advance

how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
Thanks in advance

Similar Messages

  • How to generate multiple idoc's from single appl document

    All,
    Iam looking for a way to generate multiple idoc's from single appl document (sales order). Based on the plant details on line items in the sales order i have to generate multiple idocs, i.e., send one idoc to each plant entered in sales order line items. any help will be appreciated.
    Thanks

    Hi,
    You can create a Z-program and call Function Module  <b>MASTER_IDOC_DISTRIBUTE</b>.
    You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
    You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
    Then u can keep the materials of only that plant for which u want to pass on the information.
    Thanks,
    Utsah Garg.

  • How to call a .js file from a JSP in JSPDynpage

    Hi ........I have a javascript file called set.js under the scripts folder .
    I need to call this .js file from my JSP in a JSPDynpage Application.
    Please help me do this..
    Regards
    Smita

    Hi,
    store your js file also under the jsp folder with a .jsp extension and then call it in your jsp page by an include statement. this was found working. later you may try with changing the extension to .js and try your luck:)
    <%@ include file="set.jsp" %>
    Chill,
    Steel

  • How to call an HTML page from a JSP

    Hi,
    I am getting problem in calling an html page from a jsp
    The Sample code is
    int rowsAffected = stm.executeQuery("Select * From Table");
    if (rowsAffected == 1)
    {   %>
    <jsp:forward page="xyz.html" />
    <%

    See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
    Please refrain from cross posting.

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • How to call multiple stored procedure from same DB Adapter

    Hi,
    I want to invoke 3 stored procedures from my message flow in BUS . I created a DB adapter and invoked 1 successfully . Now I don't to configure 2 other DB adapters for calling other 2 stored procedures . I want some how to be able to call the other 2 from the first DB adapter only . Somehow I need the flexibility to have procedure names as the operation names in 1 wsdl and be able to configure this in JDeveloper for this at time of DB adapter configuration . I am using 11G . Is it possible ?

    You can probably create a DB adapter with operation type selected as Execute Pure SQL and write SQL code to invoke the stored procedures depending on the procedure name (which you can get as one of the parameters of DB Adapter).
    However, Even if you were able to do it, the DB Adapter schemas are generated based on stored procedure parameter list and types. If you use Execute Pure SQL type of DB Adapter the schema will be generated based on the parameters which you are using in your custom SQL code within DB Adapter. Which means that if you want to add a new stored procedure as target which has a different name and different parameters then you will need to regenerate the DB adapter and update your custom SQL code. This also means that you will need to do regression testing interfaces to all stored procedures whenever there is any change in this DBAdapter.
    Now, my question is why do you want to invoke multiple stored procedures from same DB adapter?
    This is not a good way to design integration solutions and makes your services resistance to change as it will take more time to change and test.
    If all that you want is to have a web service which can have different operations for different stored procedures then you should create three business services and create a wrapper proxy service which has one operation for each stored procedure, within the proxy transform and call the correct backend service (you can use operational branch). This way you have a modular code where each module (read interface to one stored procedure) can be independently modified and tested.

  • How to call the 2 Tcodes from single program.

    Dear Friends,
    I would like to call 2 tcodes form a single program based on some conditions like :
    I have a program ZRR wich is madule pool report with selection screen and screen 100, 200.
    If I excuted tcode ZXX then I need to call the report with selectin screen ( from there with giving some input data I will go to screen 100 ),
    If I excuted tcode ZYY then I need to call the same report skiping the selection screen and need to go directly screen 200.
    Pls help me on this if any bady is faced the similar problem.
    Thanks,
    Sridhar

    hi,
    yes you can do this..
    try this
    create a two screen suppose 9000 and 9001..
    then right click on your program name...
    create a TCODE say TONE..
    in this give the screen number 9000..
    now again right click on the program name
    create a TCODE say Tsecond
    in this give the screen number 9001...
    hope this will help you..
    Regards
    Ritesh J

  • How to use multiple tape drive from single client when I want to backup single filesystem?

    Hello All.
    I want to backup 1 filesystem using 4 tape drives for reducing backup time.
    In case of symantec veritas netbackup, they can user "NEW_STREAM" for multi-streaming backup.
    Please anybody let me know that how to do use multiple tape drive for single client.
    1. Backup Source server : Linux (1 client)
    2. Backup Soucre :      /data1  (500GB)
        -> Current directory structure doesn't have sub directory under /data1, just files present under /data1
    If direcotry struceture has a sub-direcotry like( /data1/aaa, /data1/bbb ), Is it availble to use multiple tape drives?
    3. Tape Drive with OSB : LTO6 * 4 drives
    Thank you.

    You would have to create a different dataset for each sub-folder. If you only have files at the top level folder then even the NEW_STREAM option couldn't be used to split the job.
    Organise it into folders and then create datasets in a client folder such as :
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_aaa
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_bbb
    Then in the schedule you just specify the Linux folder. In each dataset you list the hostname and the folder name, such as :
    include host Linux
    include path /data1/aaa
    Now it will create a new job for each dataset and therefore each folder.
    Thanks
    Rich

  • How to provide multiple links in a single JSP

    Hi Experts,
    I am done with a single doc link in jsp file ,now my requirement is to use a single jsp file for multiple docs.
    Like I have 10 WEBI reports and I want to open it from separate application without passing BO user name and password .Can I achive it with a single JSP.
    Please advice how to do it.

    Hi Vikas,
    You can use something like the below code
    ===================================
    <%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
    <%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
    <%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
    <%@ page import = "com.crystaldecisions.sdk.framework.*"%>
    <%@ page import = "com.crystaldecisions.sdk.properties.*" %>
    <%@ page import = "com.crystaldecisions.sdk.framework.*" %>
    <%@ page import = "java.util.*" %>
    <html>
    <body>
    <%
    IEnterpriseSession eSession = null;
    try
      String CMS = "cmsname";
       String username = "username";
      String password= "password";
       String Auth = "secEnterprise";
      ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
      eSession = sessionMgr.logon(username,password,CMS,Auth)
      ILogonTokenMgr logonTokenMgr = eSession.getLogonTokenMgr();
      String defaultToken = logonTokenMgr.getDefaultToken();
      String open = "http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AZQxKFpLb2JDqfKNxVI_10g&sIDType=CUID&token="+defaultToken;
      String open1 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AUGC0aj3IsdDngyQfsguyjw&sIDType=CUID&token="+defaultToken;
      String open2 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AXDEPU6w1J1Bgp69rr7Ir0c&sIDType=CUID&token="+defaultToken;
      String open3 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=ATL0N_2D8JNDmx.DblcXoMM&sIDType=CUID&token="+defaultToken;
    %>
    <div align="center">
    <b>Open Document Sample Application</b>
    </div>
    <br />
    <br />
    <b>Select Reports List:</b><br />
    <br />
    <a href = "<%= open %>" target= "myframe">Report1</a><br />
    <a href = "<%= open1 %>" target= "myframe">Report2</a><br />
    <a href = "<%= open2 %>" target= "myframe">Report3</a><br />
    <a href = "<%= open3 %>" target= "myframe">Report4</a> <br />
    <iframe src="" name="myframe" width="900" height="500" align="center">
    </iframe>
    <%
    out.println("<br />");
    catch(Exception e)
      out.println(e.getMessage());
    %>
    </body>
    </html>
    ================================================
    Thanks,
    Prithvi
    Message was edited by: Prithviraj Shekhawat

  • How to call an exe program from the JSP page?

    How to call and display the interface from a exe (residing on C: drive) on my JSP page. Our customers supplied us with an exe file and they want this to be incorporated on the JSP page that has other components also, like forms, etc. The interface of the program has to be displayed in specific co-ordinates on the JSP page. Any help is highly appreciated. Thanks in advance.

    Can't be done with JSP.
    JSP runs java on the SERVER only.
    All that gets to client is an HTML page. So all that
    you can do at the client is what an HTML page can do.
    Obviously that doesn't include running a file on the
    client machine.
    Take a look into Applets, or maybe ActiveX controls.Thanks for the reply.
    Any idea on how to use the ActiveX controls in this regard?

  • How to parse multiple xml documents from single buffer

    Hello,
    I am trying to use jaxb 2.0 to parse a buffer which contains multiple xml documents. However, it seems that it is meant to only parse a single document at a time and throws an exception when it gets to the 2nd document.
    Is there a way I can tell jaxb to only parse the first complete document and not fetch the next one out of the buffer? Or what is the most efficient way to separate the buffer into two documents without parsing it manually. If I have to search the buffer for the next document root and then split the buffer, it seems like that defeats the purpose of using jaxb as the parser.
    I am using the Unmarshaller.unmarshall method and the exception I am getting is:
    org.xml.sax.SAXParseException: Illegal character at end of document, &#x3c;.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:476)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:198)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
    Thank you for your help

    It's just like any other XML parser, it's only designed to parse one XML document. If you have something that concatenates two XML documents together (that's what your "buffer" sounds like), then stop doing that.

  • How to call Multiple Decision Table from another Function ?

    Hi ,
    I have requirement where depending on a value of a variable I need to call Different Decision tables .
    Example :
    If value 1
    go to decision table 1
    otherwise if value 2
    go to decision table 2
    I am not finding a way to do it .
    Regards,
    lrow

    1. Why are you using colons???
    2. You aren't specifying a return type.
    3. Variable declarations end in semi-colons not commas.
    create or replace function FuncA (var1 in date,var2 in date )
    return number is 
      var3 number;
      var4 number;
    begin
      procA(var1,var2,var3,var4);
      return var3*var4;
    end;

  • [Solved] How to create multiple target nodes from single input node (XSL)

    Hello all,
    I have identified what I think is a bug in the visual XSLT mapper (JDev 10.1.3.3). Here is the simplified scenario:
    I have a source XML file that contains a bill-to address and a ship-to address, something like this:
    <header>
    <bill-to-name>My Customer Bill To</bill-to-name>
    <bill-to-address>123 main street</bill-to-address>
    <ship-to-name>My Customer Ship To</ship-to-name>
    <ship-to-address>567 first avenue</ship-to-address>
    </header>I want to translate it to a target XML file that looks like this:
    <addresses>
    <address>
    <address-type>BILLTO</address-type>
    <name>My Customer Bill To</name>
    <street-address>123 main street</street-address>
    </address>
    <address>
    <address-type>SHIPTO</address-type>
    <name>My Customer Ship To</name>
    <street-address>567 first avenue</street-address>
    </address>
    </addresses>Note that what I am trying to do is to create two nodes in the target (something like a for-each), but where there is no repeating node in the source.
    I was able to do this quite simply with a map like this:
    <xsl:template match="/">
      <ns2:addresses>
        </ns2:address>
          <ns2:address-type>
            <xsl:text disable-output-escaping="no">BILLTO</xsl:text>
          </ns2:address-type>
          <ns2:name>
            <xsl:value-of select="/ns1:header/bill_to_name"/>
          </ns2:name>
          <ns2:street-address>
            <xsl:value-of select="/ns1:header/bill_to_address"/>
          </ns2:name>
        </ns2:address>
        </ns2:address>
          <ns2:address-type>
            <xsl:text disable-output-escaping="no">SHIPTO</xsl:text>
          </ns2:address-type>
          <ns2:name>
            <xsl:value-of select="/ns1:header/ship_to_name"/>
          </ns2:name>
          <ns2:street-address>
            <xsl:value-of select="/ns1:header/ship_to_address"/>
          </ns2:name>
        </ns2:address>
      </ns2:addresses>
    </xsl:template>As long as I only use the source view for the xsl file, this works fine and tests just fine. As soon as I switch over to the graphical (design view), the source gets mangled to:
    <xsl:template match="/">
      <ns2:addresses>
        </ns2:address>
          <ns2:address-type>
            <xsl:text disable-output-escaping="no">BILLTOSHIPTO</xsl:text>
          </ns2:address-type>
          <ns2:name>
            <xsl:value-of select="/ns1:header/bill_to_name"/>
            <xsl:value-of select="/ns1:header/ship_to_name"/>
          </ns2:name>
          <ns2:street-address>
            <xsl:value-of select="/ns1:header/bill_to_address"/>
            <xsl:value-of select="/ns1:header/ship_to_address"/>
          </ns2:name>
        </ns2:address>
      </ns2:addresses>
    </xsl:template>which obviously does not work.
    So:
    1). Should my original map work? If not, what is the correct way to do it?
    2). If the map should work (it does), this looks like a bug in the design view.
    3). If my map should work, is there a way to do this in the design view?
    Kind regards,
    John

    John,
    GUI has limited functionality and hence it does not support all the constructs. If you want to implement soln that is visible in gui follow this steps.
    for-each(bill-to-name)
         create <address>tag
         map concat(BILLTO) to <address-type>
         map value of <bill-to-name> to <name>
         map value of <bill-to-address> to <street-address>
    select the for-each you created - right click -> add xsl node ->clone for-each
         repeat similar steps for mapping <ship-to_name>...etc
    If you still unsure send me the source & target xsd and I will send the xsl your way. You can email me at [email protected]
    Dipal

  • How to call a class method from a jsp page?

    Hi all,
    i would like to create a basic jsp page in jdev 1013 that contains a button and a text field. When clicking the button, i would like to call a method that returns a string into the text field.
    The class could be something like this:
    public class Class1 {
    public String getResult() {
    return "Hello World";
    How do i go about this?
    Thanks

    Here is a sample:
    HTML><HEAD><TITLE>Test JDBC for Oracle Support</TITLE></HEAD><BODY>
    <%@ page import="java.sql.*, oracle.jdbc.*, oracle.jdbc.pool.OracleDataSource" %>
    <% if (request.getParameter("user")==null) { %>
    <FORM method="post" action="testjdbc.jsp">
    <H1>Enter connection Parameters</H1>
    <H5>Please enter host name:</H5><INPUT TYPE="text" name="hostname" value="localhost" />
    <H5>Please enter port number:</H5><INPUT TYPE="text" name="port" value="1521" />
    <H5>Service nanme:</H5><INPUT TYPE="text" name="service" value="XE" />
    <H5>Please enter username: </H5><INPUT TYPE="text" name="user" />
    <H5>Please enter password</H5><INPUT TYPE="password" name="password" />
    <INPUT TYPE="submit" />
    </FORM>
    <% } else { %>
    <%
    String hostName = request.getParameter("hostname");
    String portNumber = request.getParameter("port");
    String service = request.getParameter("service");
    String user = request.getParameter("user");
    String password = request.getParameter("password");
    String url = "jdbc:oracle:thin:" + user + "/" + password + "@//" + hostName + ":" + portNumber + "/" + service;
    try {
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(url);
    Connection conn = ods.getConnection();
    // Create Oracle DatabaseMetaData object
    DatabaseMetaData meta = conn.getMetaData();
    // gets driver information
    out.println("<TABLE>");
    out.println("<TR><TD>");
    out.println("<B>JDBC Driver version</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getDriverVersion());
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR><TD>");
    out.println("<B>JDBC Driver Name</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getDriverName());
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR><TD>");
    out.println("<B>JDBC URL</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getURL());
    out.println("</TD>");
    out.println("<TABLE>");
    conn.close();
    } catch (Exception e) {e.printStackTrace(); }
    %>
    <%-- end else if --%>
    <% } %>
    </BODY>
    </HTML>

  • How to call a stored procedure from my JSP?

    Hi to all,
              I have a very simple jsp page and a simple sql server stored procedure!
              I need to call this stored procedure by passing two parameters.
              My result set will have 4 columns.
              I would really appreciate any input on how to issue this call to a SP.
              I am new to JSP.
              Regards,
              Sam
              

              Sam,
              BEA provides examples that are shipped with the product under
              <beahome>\weblogic700\samples\server\src\examples\
              Look at the jsp directory for JSP examples that access a database and look at
              say the jdbc\oracle\storedprocs.java for an example of java code calling out to
              a stored procedure - - by combining one of the jsp database examples with this
              stored procedure example you should be 'good to go'
              Chuck Nelson
              DRE
              BEA Technical Support
              

Maybe you are looking for

  • How do I roll a ball along both x and y axis?

    I am trying to roll a 2D ball in 3D space that only moves on the x and y axis through a maze. I would like it to be rotating 360 degrees based on the curcumference so it looks like it is rolling no matter if it is moving along the x or y axis. I feel

  • Difficulty to display a newspaper page

    Connecting to http://www.corriere.it the page download indication stops at 3 of 27 elements and after a while I have the information that Safari cannot display the page. this does not appen with other http. Why does it happen? how can I solve this pr

  • Createdb10.sql with error "ORACLE not available"

    guys.. I have installed PeopleTools 8.49 and PeopleSoft HRMS 9. I installed Oracle 11gR1 on OEL 5.3 I create /oradata/DEMO111/create by my self. I modified file createdb10.sql set termout on set echo on spool createdb.log startup nomount pfile=$ORACL

  • IPhoto 4.0.3 crashes when I try to open preferences.

    Every time I goto iPhoto->Preferences it just crashes. Everything else seems to be fine. Any ideas how can I fix this. I already tried recreating my preferences file (com.apple.iPhoto.plist) but that didn't work. Thanks.

  • [SOLVED] setopt noclobber ! doesn't overwrite file when used in cron

    Basically I have noclobber set to true in .zshrc... this prevents accidently overwriting files with the pipe command... When I run the command in a console without the >! command and noclobber set to true it properly detects the file exists and fails