Struts: request calling multiple action

Hi Everyone,
I have a question about Struts.
Is it possible for a request to call multiple struts action?
If yes, then how?
Please let me know your responses.
Thanks in advance,
Mohideen.

No, not directly.
One requets = one response.
Thats the HTTP model.
You CAN chain several actions so they happen one after another, but at the end of it, you can only send one response.

Similar Messages

  • Can i call multiple actions sequentially in a separate action/script?

    i execute multiple actions on a single file. usually these actions number more than 20. is there a way to automate invoking of these actions so that i run something only once and all smaller actions are applied sequentially and automatically on the same file?

    You can combine the commands in all of these Actions to a single Action,
    but you can't call them automatically one after another if they're separate.
    On Thu, Dec 11, 2014 at 10:22 AM, navpreet87 <[email protected]>

  • Calling multiple actions in a single event of the adobe component

    Hi ,
    We have a requirement to call both these events
    Java script
    ========
    1)app.eval("event.target.SAPValueHelp(\"" + this.somExpression + "\");");
    2)app.eval("event.target.SAPCheckFields();");
    on the <b>enter</b> event of drop down list on adobe form.
    Is this is possible or let me know some alternative to fire these two events to webDynpro application ?
    Regards,
    Nanda

    Well, I don't really like these theroretical discussions. Can you attach a simplified version of some of your code?
    There are many other ways to identify the particular control. You could for example search an array of references for the value of the "ctlref" event data node. This would make the code much more robust (your code will fail for example if you (or some other programmer updating your code in a few years!) notices a mispelling and edits the label without also changing the case structure cases).
    LabVIEW Champion . Do more with less code and in less time .

  • Multiple request processing on action of commandLink

    Hi,
    I am working on a transaction based screen where on submit the transaction is done. On submit I have used action parameter of commandLink to perform a transaction. However I am facing a problem. Once submit is clicked, during the processing of the request, If I click Submit again, multiple transaction are done.
    I suspect this is due to action. Is if I use actionListener will this not be happened?
    Please advice.

    I have another screens which do not have this problem. They have used actionListener rather that action.
    My observation are during the processing of the request, on multiple requests made there is an additional transaction happened regardless of number of more request. I mean once you click on Submit, if you click more then 2 times, even though transaction takes place exactly 2 times.

  • 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

  • Why can´t call my action !? struts in oas

    I have aplicattion with struts !!!!!
    The function sin OC4J is very good ......but .....when I      generate deploimente from my aplicattion in OAS ....The can´t call the Action from my aplicattion !!!!
    Sombody help me !?

    I went to settings-wallpaper.  clicked on the lock screen found my picture and responded to lock screen only.  The picture I chose shows up there but not on the phone actual lock screen.

  • Struts portlet: generating rewritten action URL inside javascript

    I'm migrating a standalone struts application written for WL 8.1 to WL 10.3 portal environment. The idea is to make a portlet out of the struts app. I've got the application almost working, url rewriting works beautifully by using *<html:link action=...>* in jsps with the weblogic struts-adapter taglibs. But now I have a problem with the incorporated javascripts... For example I'm using a script to submit a html:form and in the script I'm trying to call an action like so:
    *function submit() {*
    document.myForm.action = "action_string";
    document.myForm.submit();
    return true;
    The problem is that I can't use the struts action name as usual (action.do) since that would lead to a standalone page instead of the portal desktop view. WL portal has a rewriter that translates the individual application action URLs to portal URLs so that the uniform view remains as the user interact with the applications. Now my question is: Is there a way to invoke this URL rewriter somehow to do the rewriting for action for me or alternatively, is there a way to get all the URL blocks so I can build the line myself?
    The trick is that I need to get this URL dynamically, so that if I rename the struts module or the portlet, I don't have to update all my javascripts as well. The portal URI that I need is of form (dynamic parts with bold):
    / contextPath / portalDescriptionFile.portal ?_nfpb=true& _windowLabel= portlet_x & portlet_x _actionOverride=%2F moduleName %2FactionName& portlet_x method=methodName
    So far I've been able to get the portlet label (portlet_x) with a scriptlet:
    *<%*
    PortletPresentationContext portletPresentationContext = PortletPresentationContext.getPortletPresentationContext(request);
    portletPresentationContext.getInstanceLabel();
    *%>*
    I can also get the moduleName and contextPath, but not the the rest. So at minimum I would need a way to dynamically get the "+path+" before the "+query+" as in "+/contextPath/path?query+". The "+query+" I can construct with the info I have if necessary.
    Can anyone help me with this?
    If someone knows a good API page for WL 10.3 portal/portlets where I could look for more internal objects (like PortletPresentationContext) containing the data I need, that would also be a great help!
    Edited by: karikko84 on 28.8.2009 3:44

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

  • Calling an actionable email from process task OIM11g

    Hello Experts,
    Is there a way to call an actionable email from process task, meaning can i trigger a workflow on demand from process task.

    You are correct in the actionable emails, you just need to be creative.
    This is my suggestion:
    Create a Modify Application/Request request data set for your Active Directory workflow.  When your scheduled task runs (assuming it will be only once a day so that you don't have multiple being sent out), generate a new request with code, and in the request dataset, set the value to the 365 days in the future.  You can then create an approval policy either using the default manager approval, or custom soa composite.  Regardless, you want the approval task to go to the manager.  If you have enabled the Actionable Email Notifications (UMS Messaging i believe), then the manager will get an email for the approval and at the bottom it will have two options, APPROVE and REJECT.  The manager can click the link and it will process the request based on their response.
    If they approve it, the date is updated, and they get extended in AD.  If they reject it, the request is rejected and it never gets updated.
    -Kevin

  • How can I call multiple records(40) at same time as webservice ?

    Hi All
      My scenario is some thing like calling SOAP(Webservice) to Rfc(BAPI)
      Thing is how can i call multiple records at the same time using the SOAP
       adapter i.e i need to make a request to BAPI and in the BAPI response
       based on the fields, i need to send to different records....it is Sync call
    Can any explain me how to implement this scenario ?
    Regards
    Kiran lvs

    HI,
    Please see the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm
    Regards
    Chilla..

  • Impossible to call a action handler in managed bean

    Hello! I’d developed simple jsf-application using JDeveloper 10.1.3.3 that doesn’t use faces-config.xml for a nafigation.
    Simple jsf page (page1.jspx) has only one command button:
    <af:commandButton text="commandButton 1"
    binding="#{backing_page1.commandButton1}"
    id="commandButton1"
    action="#{backing_page1.commandButton1_action}"
    immediate="true"/>
    Action is handled programmatically in managed bean Page1.java:
    public String commandButton1_action() {
    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    ec.redirect("page2.jspx");
    return null;
    The sample application works fine.
    Then I’d tried to use the same jsf app to develop PDK Portlet (Oracle PDK, not jsr-168). I used Portal 10.1.4 and OC4J 10.1.3.3.
    The part of provider.xml:
    <showPage class="oracle.portal.provider.v2.render.http.ResourceRenderer">
    <resourcePath>/faces/page1.jspx</resourcePath>
    </showPage>
    Action is handled programmatically in managed bean Page1.java:
    public String commandButton1_action() {
    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    ec.redirect("http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6");
    return null;
    Unfortunately, the jsf page doesn’t call an action after submit of the button. It’s impossible to call any handler in managed bean. Although, it’s possible in usual jsf app.
    I wonder that af:goLink on the page1.jspx works fine:
    <af:goLink text="goLink 1" binding="#{backing_page1.goLink1}"
    id="goLink1"
    destination=" http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6"/>
    The ask: why jsf page can’t call an action handler in managed bean in case of a portlet development?
    Thank you. Andrew

    Thank you, Frank! I’d expected an answer from you:) I and my colleagues is your big funs:)
    I’d understood Portal intercepts any event on a portal page before jsf event.
    But, it’s possible to use struts for portlet development. I’d hoped there is the same approach for Faces too (oracle.portal.provider.v2.render.http.FacesRenderer - http://www.oracle.com:80/technology/products/webcenter/files/pdk_downloads/jpdk/oracle/portal/provider/v2/render/http/FacesRenderer.html).
    WebCenter is fine product but one is expensive. May be, is there a way to develop jsf portlet outside webcenter?
    Thanks, Andrew

  • Finalize() method being called multiple times for same object?

    I got a dilly of a pickle here.
    Looks like according to the Tomcat output log file that the finalize method of class User is being called MANY more times than is being constructed.
    Here is the User class:
    package com.db.multi;
    import java.io.*;
    import com.db.ui.*;
    import java.util.*;
    * @author DBriscoe
    public class User implements Serializable {
        private String userName = null;
        private int score = 0;
        private SocketImage img = null;
        private boolean gflag = false;
        private Calendar timeStamp = Calendar.getInstance();
        private static int counter = 0;
        /** Creates a new instance of User */
        public User() { counter++;     
        public User(String userName) {
            this.userName = userName;
            counter++;
        public void setGflag(boolean gflag) {
            this.gflag = gflag;
        public boolean getGflag() {
            return gflag;
        public void setScore(int score) {
            this.score = score;
        public int getScore() {
            return score;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserName() {
            return userName;
        public void setImage(SocketImage img) {
            this.img = img;
        public SocketImage getImage() {
            return img;
        public void setTimeStamp(Calendar c) {
            this.timeStamp = c;
        public Calendar getTimeStamp() {
            return this.timeStamp;
        public boolean equals(Object obj) {
            try {
                if (obj instanceof User) {
                    User comp = (User)obj;
                    return comp.getUserName().equals(userName);
                } else {
                    return false;
            } catch (NullPointerException npe) {
                return false;
        public void finalize() {
            if (userName != null && !userName.startsWith("OUTOFDATE"))
                System.out.println("User " + userName + " destroyed. " + counter);
        }As you can see...
    Every time a User object is created, a static counter variable is incremented and then when an object is destroyed it appends the current value of that static member to the Tomcat log file (via System.out.println being executed on server side).
    Below is the log file from an example run in my webapp.
    Dustin
    User Queue Empty, Adding User: com.db.multi.User@1a5af9f
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    Joe
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin pulled from Queue, Game created: Joe
    User Already Placed: Dustin with Joe
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    INSIDE METHOD: false
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    User Dustin destroyed. 9
    User Joe destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    It really does seem to me like finalize is being called multiple times for the same object.
    That number should incremement for every instantiated User, and finalize can only be called once for each User object.
    I thought this was impossible?
    Any help is appreciated!

    Thanks...
    I am already thinking of ideas to limit the number of threads.
    Unfortunately there are two threads of execution in the servlet handler, one handles requests and the other parses the collection of User objects to check for out of date timestamps, and then eliminates them if they are out of date.
    The collection parsing thread is currently a javax.swing.Timer thread (Bad design I know...) so I believe that I can routinely check for timestamps in another way and fix that problem.
    Just found out too that Tomcat was throwing me a ConcurrentModificationException as well, which may help explain the slew of mysterious behavior from my servlet!
    The Timer thread has to go. I got to think of a better way to routinely weed out User objects from the collection.
    Or perhaps, maybe I can attempt to make it thread safe???
    Eg. make my User collection volatile?
    Any opinions on the best approach are well appreciated.

  • How to check which action is completed in a Process having Multiple Actions

    Hi,
         In a GP that we designed, a Process contains multiple actions, so what we want to achieve is after 1st Action is completed i.e once 1st Approver approves the request, next action is executed wherein a Notification Workitem in his/her UWL is sent to initiator to notify the approvers action whether it rejected or approved.
         My question is when a Initiator starts a process, then he/she is not able to start the same process again, unless & until the process is finished, but now the requirement is, if 1st Level Approver i.e 1st Action, is completed, we need to allow the Initiator to start a new process of same name in-spite of 2nd Action & previously started process is not completed.
         Please let me know if I can find whether in a Process a particular Action is completed or not.
      Thanks.
    Regards
    Tushar

    Hi,
         Any possible inputs for my query......
        do let me know for your suggestions.
    Thanks
    Best Regards
    Tushar.S

  • Calling Soap Action in Soap Receiver

    Hi ALL,
    I have a requirement where i have a WSDL file which contains multiple actions and multiple Soap Action Parameters ,
    whereas i need to combine all the Soap action Parameters into single SOAP Parameter and call it in my SOAP action parameter at the receiver side
    of the SOAP.
    Please guide me how to achieve this.

    Hi,
    If you mean setting it dynamically, yes, it is possible. The technical name for soap action in dynamic configuration is THeaderSOAPACTION with namespace http://sap.com/xi/XI/System/SOAP
    http://help.sap.com/saphelp_em900/helpdata/en/48/327519a3af58d8e10000000a421937/frameset.htm
    Hope this helps,
    Mark

  • Sending Approval Request to multiple Approvers

    Hi All,
    I'm facing problem in sending Approval request to multiple approvers.I have List of accountid's to which approval Requet has to be sent.I tried giving multiple id's in the "Owner" field of mannual action, which is not working.can any one let me know how to implement this.
    Thanks

    Hi,
    I used multi approval subprocess, this is the code that i have used
    <Action id='0' process='Configuration:Multi Approval'>
    <Argument name='approver'>
    <ref>$(approver)</ref>
    </Argument>
    <Argument name='approvalForm'>
    <ref>New Profile Request</ref>
    </Argument>
    </Action>
    but im unable to get the approval request in the corresponding Administrator approval list.

  • Servlet init() method called multiple times

    We have a Servlet-based application which does lengthy initialization.
    We've noticed that when multiple requests arrive,
    but the Servlet's init() method has not returned yet
    for the first request, the application server calls init() multiple times.
    You can even see this with the Fortune sample
    Servlet. Starting the app server and sending 20 or 30
    simultaneous requests causes multiple Fortune Servlet init messages to appear in the kjs log.
    Why is this? We do not implement SingleThreadModel.
    Doesn't the J2EE 1.2 spec say init will be called
    only once?
    How do we prevent it?
    A Startup class which inits our
    Servlet?
    Or a synchronized block within our init method, with some checks of static member variables
    so that the initialization work only happens once?
    Or is there some kregedit magic or deployment descriptor change I could make?
    Again, it's not a SingleThreadModel issue, so don't
    point me there.
    This is iAS 6.0 SP4, on Solaris, by the way.

    Hi
    Yes,you are right. In iAS6.0 SP4 When multiple requests arrive,and the Servlet's init() method has not returned yet for the first request, the application server calls init()multiple times. This problem is resolved in iAS 6.5.
    There is no kregedit magic that will solve this problem.
    Right now the workaround is any of the solution you proposed. Or use iAS6.5. I have tested it with fortune.
    Please download it and check with your application.
    you can find free download at http://developer.iplanet.com/appserver/testdrive/testdrive_65.html
    Thanks

Maybe you are looking for

  • Output issue in production for smartforms

    Dear friends, ther is  an issue in printing of the form in production. the same smartform is working for few of the documents in production and not working for many of the documents. there is a message please filnd it below. *Table INFO does not fit

  • Shared fonts on XSAN

    Hi, I work for a mid sized Media company. We have around 12 editors working simultaneously off different machines, in different offices using the one xsan. The most common problem we encounter is different fonts installed on different machines. One e

  • Why are the localStorage objects unavailable to Safari while Private Browsing?

    According to these two sites http://caniuse.com/#feat=namevalue-storage http://apple.stackexchange.com/questions/131587/how-can-a-web-site-determine-if- safari-private-browsing-is-turned-on HTML5 localStorage objects aren't accessible when users visi

  • Netbeans 3.5.1 with MIDP

    Hi all, For some reason, I can use the MIDP 2.0 wizard to create a "Hello World" application (in Netbeans 3.5.1), and it will run fine despite most lines being underlined in red (ie. the import javax.microedition.midlet.* line). But if I try and open

  • Document/Record Centre - Why higher storage threshold?

    Hi, Can someone explain to me why Document Centres and Records Centres can grow up to 4TB, but standard Site Collections are limited to 200GB? From what I can see while Records Centres are by their nature for archiving and will be accessed less, Docu