Struts-calling more than one action

In my jsp form, say I've 3 buttons Add, Delete and Modify.
Based on the click of these buttons, three different actions have to be performed. How to do this?

I mean how 3 different actions can be called from a single jsp page.(Other things like connecting to database and action forms I know)

Similar Messages

  • Calling more than one action at a time in fault policy file

    hi
    can any one tell me how to refer two actions at a time in faultpoicies.xml file . To make it clear to you i want to call both rethrow action and human intervention action after retry . please refer below faultpolicy file
    <?xml version="1.0" encoding="windows-1252" ?>
    <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
    <faultPolicy version="2.0.1" id="BpelFaultMechanism"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Conditions>
    <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:bindingFault">
    <condition>
    <action ref="retry-action"/>
    </condition>
    </faultName>
    </Conditions>
    <Actions>
    <Action id="retry-action">
    <retry>
    <retryCount>4</retryCount>
    <retryInterval>2</retryInterval>
    <retryFailureAction ref="rethrow-action"/>
    </retry>
    </Action>
    <Action id="human-intervention-action">
    <humanIntervention/>
    </Action>
    <Action id="rethrow-action">
    <rethrowFault/>
    </Action>
    </Actions>
    </faultPolicy>
    </faultPolicies>
    please reply asap
    Regards
    siva

    Hi FRNzzz!! wrote:
    hi i am using oracle 10g database.
    can it be possible ?
    in if condition we can have more than one variable in one condition
    if a=100 then
    b:=200;
    c:=300;
    end if; how it will be in case statement ? i have searched lot on internet but didnt get
    case
    when a=100 then 200, 300 ... ???
    thanksnot sure if I got your question correctly, is this what you are looking for?
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2      a number := 100;
      3      b number;
      4      c number;
      5  begin
      6      case
      7        when a = 100 then
      8          b := 200;
      9          c := 300;
    10        when a = 0 then
    11          b := 300;
    12          c := 400;
    13        else
    14          b := 0;
    15          c := 0;
    16      end case;
    17  dbms_output.put_line('a :'||a||' b :'||b||' c :'||c);
    18* end;
    SQL> /
    a :100 b :200 c :300
    PL/SQL procedure successfully completed.

  • Can more than one action be maintained on same day?

    Hi
    Can more than one action be maintained on same day?
    Charlene

    Hi,
    SPRO -> PM->   PA->CUSTOMIZING PROCEDURES->  ACTIONS-> SETUP PERSONNEL     ACTIONS-> PERSONNEL ACTION TYPES. In this step check under both "U & U" columns for that particular action.
    •     Activate additional action infotype P0302 in T529A table.
    You can do two actions on the same day without changing employment status.
    •     Cause and prerequisites
    You use the functions 'Additional actions' (infotype 0302) (that is, flag ADMIN EVSUP = 1 in table T77S0). If you delete or shift a created personnel action type 'Leaving' and then create a new personnel action without leaving the transaction, on the list screen of infotype 0000, the system does not display the last but one personnel action.
    Solution
    To correct the display problem, start report RPUEVSUP for the affected personnel number. Then check Customizing of the personnel action types (table T529A), since the report sets indicator U0302 (update of infotype 0302) active for all personnel actions.
    •     RPUEVSUP --- Activation Program for Additional Actions (0302).
    Pls reward suitable points.
    Regards,
    IFF

  • Can you call more than one person on skype?

    When you are on Skype can you video chat with more than one person / conference call?

    Yes. Microsoft owns Skype. So signing in with a Microsoft Account will log you into skype on that account.
    You can initiate a multi part conference call from a computer opt an iPad that is looged on using a Microsoft Account.
    Buit you can also start a peer to peer call from your iPad.

  • Problem calling more than one instance of a dll from TestStand

    Hi,
    I've posted this message in the LabWindows forum a few days ago and haven't gotten any answer. I have made a DLL with the evaluation version of LabWindows 7.1 to connect to a Telnet server and perform various commands. This DLL is used with TestStand 3.1 . In TestStand, I have to connect simultaneously to the same Telnet server twice to start an application with both of those connection, with different parameters. I use Threads in TestStand to call the DLL and everything seems to be fine on that side. I enter the DLL at the same time for both threads but it seems that the 1st thread waits until the 2nd thread is at the end of the function before he executes the InetTelnetOpen command to start the Telnet session. Is it normal that we can only have one Telnet connection at a time?
    To see that I've placed some time stamps in a log. For the first Thread, almost a minute passes by between the first 2 time stamps but in the 2nd thread it take less than a second.
    Yet, they both wait for eachother to exit the DLL as the time stamp at the end of the execution is the same.
    I really need some enlightenment here ;-)
    Louis
    Attachments:
    TelnetTest.txt ‏3 KB

    Tiwi,
    The blocking that InetTelnetRunScript does is probably there for a reason. That method is probably not safe for multiple threads to call into at the same time. There is likely another way to do what you are trying to do that can be done in parallel. Perhaps with lower-level telnet function calls. I recommend you post to the CVI forum asking if there is another way to do what you are trying to do from multiple threads in parallel. This does not sound like a teststand issue. If you are calling into your dll from multiple testand threads, then the code in your dll function is being executed in parallel. The cvi function you are calling however, might not be reentrant (reentrant means able to be called by multiple threads in parallel) so it is making one of your threads block until the other completes. I suspect there is a different way to do what you are trying to do that will not have this problem, but I think the changes that you will need to make will be in the dll and not on the teststand side. I recommend you post to the CVI group and explain what you are trying to accomplish and see if they have a solution for you.
    Hope this helps,
    -Doug
    P.S. Each process on the Windows operating system (of which teststand is one) can only load one copy of any particular dll at a time. Also, loading multiple copies is not something that would be likely to solve the problem you are running into. One possibility is to use the call executable step type and create an executable that does what your dll function does, but that is probably not the best solution and might still end up blocking at the same location. The best solution is probably to use an alternate method of accomplishing whatever you are trying to do with the telnet function you are calling that does not have the limitations of that function.

  • Issues with calling more than one PKCS11 instance

    Hi all,
    I've more or less identified exactly what the problem is, so I'm wondering if this is a bug that will be fixed. I have multiple PKCS11 providers, one that uses NSS in fips mode and one that uses a library for a smart card. This is the sample code I'm using:
    KeyStore ks = KeyStore.getInstance("PKCS11","SunPKCS11-smartcard");
    KeyStore ts = KeyStore.getInstance("PKCS11","SunPKCS11-NSSfips");
    ks.load(null,"12345");
    ts.load(null,"12345abcd");
    What a lot of debugging has shown me is that when I make that first ks.load call, in the P11KeyStore class, a static variable, CKA_TRUSTED_SUPPORTED gets set to false, which prevents me from loading trusted certs in the second call (ts.load). It's fine if I call them in reverse order, because that static variable gets set after I get all my trusted certs but later in the program another class makes that call and fails. I think this should be a bug. The CKA_TRUSTED_SUPPORTED variable never gets reset to true even if it is a valid attribute.
    Edited by: 929934 on Apr 24, 2012 11:16 AM

    Please disregard.
    I placed the function filter() in the event.result as a
    second line in the function that load the arraycollection for my
    datagrid.

  • How to do more than one action per one request ?

    1. I have taskflow with several actions. For example Page1 (action1) -> Page2, Page2 (action2) -> Page3. How can I move from the Page1 to Page3 without creating additional actions per one request?
    2. I have 1 unbounded taskflow, and 2 bounded. Unbounded (action1) -> Bounded1, Unbounded (action2) -> Bounded2. How can I return from Bounded1 taskflow and enter to Bounded2 taskflow via "action2" per one request?
    Can I flow through tasks virtually from the java code? Sweeping generalization: how to flow through taskflows like graph from some node to other using some path which contains several nodes.

    John Stegeman wrote:
    inooni,
    Unless I am misunderstanding you, you can create a control flow from Page 1 to Page 3. You could also do this with a global control flow case so as to avoid having to create one for each pair of navigations you want to do.
    JohnJonh, I have a lot of bounded tasks (tasks and pages generates automatically). It involves to create a lot of actions to navigate between pairs of them. I'm searching way to navigate without destroying bounded tasks structure.

  • More than one action in a form?

    I'd like to thave several actions in a form, but in Livecycle I am unable to.  What am I doing wrong?

    Try this:
    action="myjsp.jsp?path=<%=path%>&doc_id=<%=doc_id%>&doc_name=<%=doc_name%>"
    Take a look at the URL in you browser now. The parameters are separated with ampersands (&) not with pluses. I always use that as a reference as I get this confused myself!
    Happy Trails,
    Cliff

  • SchemaFactory.newSchema can't be called more than one with the same sources

    I am using Java 5 or Java 6. Did you already observed such behavior? Seems a bug but I didn't find a Bug ID match.
    // Create an array of sources
    final InputStream xsd = new FileInputStream("src/xml.xsd");
    StreamSource[] sources = new StreamSource[1];
    sources[0] = new StreamSource(xsd);
    // Create the Schema Factory       
    final SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); // Create a schema
    Schema schema1 = schemaFactory.newSchema(sources);
    // Create a second schema, it will throw an Excepion
    Schema schema2 = schemaFactory.newSchema(sources);
    If you are creating a new array of sources before to create the second schema, it works fine. It seems that SchemaFactory.newSchema is making the passed sources as not "reusable"
    Thrown Exception :
    Exception in thread "main" org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2245)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.java:1590)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:438)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:523)
    at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
    at javaapplication5.Main.main(Main.java:55)

    I've looked further into the matter and the problem is that the newSchema() method closes the underlying input stream, as a result of which there is no way to reuse the same source object if it is based on an input stream. There's another alternative: if it is not necessary for you to provide the schemas in an array, you can use the "newSchema(URL schema)" method. The advantage of using an URL object is that it can hold a reference to files inside a jar file.

  • More than one reports at the same time?

    Hello
    Is there any way that i can call more than one reports at the same time through the .FMX file. At the moment i can call only one report, if i need to call another report then i have to close the 1st report, then it will show me the 2nd report. Report Background Engine can run more than one reports at the same time?
    Nametullah kalair

    Yes i know, we can submit multiple - asynchronous- jobs, but the problem is, is not possible to open more than one previewer to see multiple reports at the same time for analysis.
    Regards,
    Nametullah kalair

  • Using more than one web font in the same text field

    I know I can do something like this when calling more than one weight in a web font:
    sym.$('copy').html('<span style="font-weight: 700;">Adobe</span> | About Us')
    And the word Adobe will be bolder than About Us. But what about using more than one font in the same text field? I tried this:
    sym.$('copy').html('<span style="font-family: 'Open Sans', sans-serif;">UHLIG</span> | About Us')
    Now that doesn't work and I get a SyntaxError: missing ) after argument list
    I then tried
    sym.$('copy').html('<span style="font-family: "Open Sans", sans-serif;">UHLIG</span> | About Us')
    and the text rendered but whatever was selected in the font menu was what got displayed.
    Is there a way around this to display two different fonts, web fonts or not, in the same field?

    Hey, ladobeugm-
    One thing to note is that you probably need to escape the quotes in your span tag.  What you have is an issue with quotation marks - for instance, all JavaScript sees is <span style="font-family: in your first string, and only sees <span style="font-family: " in your second.  Play around with escaping to see if you can get your span to work.
    Hope that helps,
    -Elaine

  • How to call more then one smartforms from SE38 ?

    Hello Expertise,
    Good Afternoon,
    Hope all r fine. Do anybody knows,Is it possible to call more than one smartform from SE38?
    If possible then how?
    Please help me.
    Thanks n regards,
    Tripod.

    Hi,
    what you meaning with: call more than one...
    call & show as smartform (print preview ) > I think that´s not possible
    Call & create PDF > show as PDF in IExplorer ? > Yes could work when you crate the PDF > and send it to different Internet explorer
    Call & create PDF > show as PDF in GUI ? > Yes could work when you crate the PDF > and send it to different Containers...
    Best Regards
    Robert

  • Can a submit button carry out more than 1 action ?

    I want to give show feed back after a survey question but I want to do this whilst the answer that the user has given is still on the page.
    I have assigned a show comand to the submit button which makes a text box visable however the play head carries on and the slide progresses to the next one.  Is there a way to pause the time line and advance on a click after the feedback, what I think I want is for the submit button to carry out several action  or am I going about this the wrong way?

    Hello,
    Could you tell if you are using the default Question slides for this survey question or did you create your own slide using standard objects?
    I'm a bit puzzled about it because you mention the 'Submit' button, that is why I supposed you are using a default Question slide. You can assign an advanced action which can have more than one action of course. But this will not solve your issue. If you want to stick with default question slides that allow you limited control I could make this suggestion:
    create the hidden text caption,
    increase the default duration of the question slide; typically it will pause at 1.5sec, increase the slide duration so that the text caption that will show up stays long enough for the user to read it
    show the text caption for the rest of the slide
    attach the success action to the Submit button as you did to show the TC
    When the user clicks on Submit, the Text Caption will pop up  but the playhead will continue till the slide is finished. AFAIK you will not be able to stop it, but now the user will have sufficient time to read.
    The best solution is to create your own survey slides, then you can add as many interactive objects as you wish.
    Lilybiri

  • One Print program can call moe than one layOut

    HI all.
    In SAP-Scripts ,,One Print program can call moe than one layOut ?
    Thanks in advance
    Sri...

    Yes you can call more than one SAPScript and Smartforms from your one print program.
    For SAPScript, you need to use the OPEN_FORM or the START_FORM for each new FORM.
    For SMARTFOrms, you need to call those Smartform's FM in a sequence.
    Regards,
    Naimesh Patel

  • WebObjects 5.3 WOHyperlink can't call an action with more than one argument

    Hi there,
    I recently upgraded from WebObjects 5.2.3 to 5.3.
    I used WOHyperlink with more than one ?<ARG> binding to build http requests...
    It used to work in 5.2.3, but not anymore in 5.3. The problem stems from the ampersand character that separates args, because it is now replaced by &.
    I found a similar issue dealing with WOSubmitButton that was resolved in 5.2.3:
    http://docs.info.apple.com/article.html?artnum=107873
    Thanks for helping me out...

    Sorry about that...
    problem stems from the ampersand character that
    separates args, because it is now replaced by &.
    Please read: the problem stems from the ampersand character that separates args, because it is now replaced by &amp;
    iMac G5 Mac OS X (10.3.9)

Maybe you are looking for