How to control button in struts

Hi there!
How do we control buttons in struts.
eg: If I've multiple buttons in the jsp, such as "Save Record", "Update REcord", " Delete Record " etc...
How do I know which button is clicked?. How to control it ?
Any help pretty much appreciated.
Thanks.

you have something called Dispatch action and LookupDispatch action frame works in struts..
search in google..u will get plenty of resources..if not pls let me know
regards
[email protected]

Similar Messages

  • How keyboard control Button in Event structure

    Hello
    First I am Just a beginner in Labview 
    I just make a program that Consist of 4 button controling 4 LEDs Using Event Structure
    The Problem is I did not want to operate the button by the mouse click but
    i want to operate the button using the arrow keys in keyboard
    T
    Attachments:
    Arrow key control LEDS.vi ‏10 KB

    Hi saiko,
    when you're a "total newbie" you should at first go through all those free online LabVIEW courses offered by www.NI.com!
    Try this:
    My stop and clear buttons also doesn't seem to wor​k when I put in the event structure.
    How did you configure the event case? When putting those buttons inside the event structure you have the tell that structure how/when to handle them. Did I mention the free online courses?
    but I can't get it to switch until release when I ​hold down on my keyboard.
    Do you want to use the automatic key press repeat feature? Well, you have to configure the event: right now it's "key press", but you probably want an event like "key repeat"? You may read the LabVIEW help on available events...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to control button "services for object" which appears in cv01/02/03

    Hi Gurus,
    In tx cv01/02/03, I get a button at the top of the window called "services for object", which gives me options as ....
      Create------(attachment/note/external document/Store business documents)
      Attachment List
      Private note
      Send (Send object with note/Object outbox)
      Relationships
      Workflow
      My objects
      Help for object services
    With the help of this button I can even attach documents in CV03 tx. through create attchment.
    Can we control appearance of this button according to the transactions?? e.g. in CV01 and CV02 it should appear, but in CV03 it should not allow to create further attachments.....
    Thanks in adavnce!
    Regards,
    Akshay

    Thanks a ton Benakaraj !!
    I am working on it...... will let you know the outcome....
    I am just not clear abiout where to insert the sodes given in the pdf   ???  pLease let me know.
    Thanks a lot,
    Akshay
    Edited by: Akshay Kurhe on Jun 5, 2009 11:17 AM

  • How to control buttons

    Hello Experts,
    Iu2019m new in dialog programming and need some help. Iu2019ve created few transactions for Display, Change & Create. On my Change transaction Iu2019m checking for material number (Matnr). I want to check if matnr is initial then Display button get enable and change button get disable. If matnr has some material number already fill in then display button gets disable and change button gets enable. Can please somebody look at my code and suggest me what should I do to accomplish this task. Also please point me out if Iu2019m doing something wrong.
    =======================================================================
    module set_change_screen output.
      if sy-tcode eq 'ZAD_M02'.
        loop at screen.
          if screen-name eq 'MATNR'.
           if MATNR is initial.
             screen-input = 1.
          elseif screen-name eq 'MARA-MTART' or
                 screen-name eq 'MARA-MBRSH' or
                 screen-name eq 'MARA-MEINS' or
                 screen-name eq 'MARC-WERKS' or
                 screen-name eq 'MARC-PSTAT' or
                 screen-name eq 'MARC-EKGRP' or
                 screen-name eq 'MARD-LGORT' or
                 screen-name eq 'MAKT-SPRAS' or
                 screen-name eq 'MAKT-MAKTX' or
                 screen-name eq 'CHNG'.
            screen-input = 0.
         else.
            screen-input = 0.
         endif.
        endif.
         if screen-name eq 'MATNR'.
         if MATNR is not initial.
           screen-input = 1.
        elseif screen-name eq 'MARA-MTART' or
                 screen-name eq 'MARA-MBRSH' or
                 screen-name eq 'MARA-MEINS' or
                 screen-name eq 'MARC-WERKS' or
                 screen-name eq 'MARC-PSTAT' or
                 screen-name eq 'MARC-EKGRP' or
                 screen-name eq 'MARD-LGORT' or
                 screen-name eq 'MAKT-SPRAS' or
                 screen-name eq 'MAKT-MAKTX' or
                 screen-name eq 'DISP'.
            screen-input = 1.
         else.
           screen-input = 1.
         endif.
        endif.
           MODIFY SCREEN.
        endloop.
      endif.
    endmodule.                 " set_change_screen  OUTPUT
    =======================================================================
    Thanks.

    I don;t know if your code works, but i suggest rewriting a bit to make things easier to understand and maintain:
    if sy-tcode eq 'ZAD_M02'.
       loop at screen.
         case screen-name.
           when 'MATNR'.
               if matnr is initial.
               else.
               endif.
          when 'MARA-MTART' or 'MARA-MBRSH'  or .....
        endcase.
       endloop.
    endif.

  • Crystal Report/STRUTS: Error (404) when clicking on Control Buttons (Print, Export, Next, Previous, etc...) on report viewer

    Post Author: jwenny
    CA Forum: Deployment
    Need help badly!!!
    We are using the crystal reports plugin for STRUTS.
    We are able to display the report in the crystal report viewer.  However, when we click any control buttons (print, export, etc...), then we get:
    JSPG0036E:  Failed to find resource /Report-viewer.jsp
    We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
    Error:  400 page not found
    Does anyone know how to solve this problem?  For instance, is there a setting or parameter that needs to be set?
    Greatly appreciate any help!

    HI,
    Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
    ReportDocument rdoc = new ReportDocument();
    rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
    rdoc.SetDatabaseLogon("uid","pwd");
    rdoc.SetParameterValues("parameter name","value");
    CrystalReportViewer.ReportSource = rdoc;
    Helps?
    Thanks.

  • Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps wit

    Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps with ios7

    Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past.  With the new operating system you also swipe downward to get the search bar to find an app

  • How do I break a for loop (inside) and a while loop (outside) at the same time by a control button

    I have a while loop (outside) and a for loop (inside) and a control button within the for loop.  I want to stop the program by click the botton without finishing the for loop.  How can I do that?
    Thank you in advance.

    HI Please find attached snapshot Regards, Santosh
    Message Edited by SanRac on 12-17-2009 05:12 AM
    Message Edited by SanRac on 12-17-2009 05:13 AM
    Attachments:
    Snap1.png ‏4 KB

  • How to remap keyboard - Looking to switch the "fn" and "control" buttons?

    Hi I was looking for a way to switch the function and control on the bottom left side of the keyboard on my macbook pro laptop. I am used to the control button being the button that is furthest to the left and its just really throwing me off having the fn key all the way to the left. If anyone knows how to remap these keys, I would really appreciate the help.
    Thank you.

    Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
    To restore the Firefox 3 appearance you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Move the Reload and Stop buttons to their previous position at the left side of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.

  • How to control adobe flash files with sliders and buttons

    Hi,
    I am trying to make a front panel for a vehicle completely designed in flash, and control it through labview.  I can load a flash file into an activex container successfully.  I have followed this thread here http://forums.ni.com/ni/board/message?board.id=170​&message.id=351719  and gotten everything working. 
    But my question is, how can I send data to the flash file from labview?  Some examples of things I need to do:  Interpret a CAN signal and have some text appear on the screen, Make buttons flash, etc.
    I understand how to load the swf, Im just not sure how to communicate with it.  One thing to mention is that the front panel for the vehicle will be fully custom coded.  However in the meantime, I am trying to figure out how to control it from labview.  Like if there is a clock.swf out on the net, how can I change the time from labview?  Is there a way to see what parameters are available for changing?
    Thanks in advance

    Hello,
    What specific Active X framework are you using to embed the container? The thread you referenced mentions Shockwave's Active X API, does this set of Active X functions expose methods for object control? 
    Could you elaborate as to the driver behind a fully Flash based front panel embedded within LabVIEW? Is this application inevitably going to be deployed as thin client software? 
    For interaction with custom flash applications aside from Active X, LabVIEW has an integrated Web Services feature to allow data transfer from custom thin client applications to the LabVIEW environment for processing and instrument control. A detailed discussion of the Web Services feature may be found via the links below:
    LabVIEW Web Services FAQ (Detailed)
    http://zone.ni.com/devzone/cda/tut/p/id/7747
    Web Services in LabVIEW (Overview)
    http://zone.ni.com/devzone/cda/tut/p/id/7350
    Please post back any further questions, or information on the system design.
    Cheers!
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • I shrank my Yahoo e-mail by pushing the control button. How do I restore to original size

    I shrank my Yahoo e-mail by pushing the control button. How do I restore to original size?
    == This happened ==
    Just once or twice
    == I pushed the control button

    I corrected my problem, which was having very small print when I went to Yahoo e mail, by clicking on reset on the view menu. Only my text was small, the toolbars were fine.

  • How to add control buttons using Java thorugh serial port?

    Hi everyone,
    I'm new to this forum.
    I have some questions on Java and serial port.
    I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
    Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
    I already have all the javax.comm things installed.
    below is the code for my buttons:
    import java.awt.*;
    public class ControlButtons extends java.applet.Applet
         GridLayout myLayout = new GridLayout(3, 3);
         Button button1 = new Button(" ");
         Button buttonForward = new Button("Forward");
         Button button2 = new Button(" ");
         Button buttonLeft = new Button("Left");
         Button buttonStop = new Button("Stop");
         Button buttonRight = new Button("Right");
         Button button3 = new Button(" ");
         Button buttonReverse = new Button("Reverse");
         Button button4 = new Button(" ");
         public void init()
              setLayout(myLayout);
              add(button1);
              button1.setVisible(false);
              add(buttonForward);
              add(button2);
              button2.setVisible(false);
              add(buttonLeft);
              add(buttonStop);
              add(buttonRight);
              add(button3);
              button3.setVisible(false);
              add(buttonReverse);
              add(button4);
              button4.setVisible(false);
    }Now I would like to ask for direction on how to add in the code to make it work with serial port.
    Thanks

    The plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
    For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
    Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
    But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
    You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
    So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
    The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot.

  • How can I stop the control button from moving the open applications up and exposing the desktop?

    It is getting very annoying when I want to use the control button for other functions.
    I tried looking in settings under keyboard, but found nothing.
    If anybody knows how to change it, I would really appreciate it!
    Thanks,
    Neel.

    Please describe what you are doing and what is happening more fully. I can press the control key all day long and nothing happens.

  • How can I get the remote control button to appear in itunes?

    I cant seem to locate the remote control button that is supposed to appear in iTunes. I do not have any remote controls associated with my iTunes yet the button is not appearing. Help.

    Download the Adobe Flash Player installer directly by right clicking the following link and selecting "Save Link as".
    Flash Player Plug-in (All other browsers)
    THAT's the Flash Player.
    Shockwave Player 12
    THAT's the Shockwave plugin.
    BOTH should be up to date.

  • HOW CAN I CUSTOMIZE A CONTROL BUTTON

    Hi, I want to costumize a control button puting on it a picture or something like that, Do I need an especial toolkit or something else?

    I believe the ability to customize controls exists in all versions of LV. Just right click on the control and select Advanced>>Customize.
    More details on this can be found in the LV user manual.
    Try to take over the world!

  • Equium P300 - Control buttons don't work running Win XP

    Hi I am looking for some help with a problem with a Equium P300 laptop,
    This is my brother's laptop, he bought it about 18 months ago, it came with Vista, he didn't want this as he preferred to have XP so I changed the operating software to XP using the drivers available on Toshiba's website to update to the correct drivers.
    This has worked fine for the last 18 months however recently when the laptop is turned off, the touch sensitive hotkeys stay illuminated, even when unplugged from the power source, and do not function.
    Previously if it has been turned off and you push one of the hotkeys the laptop would turn on but it is no longer doing this.
    I am wondering if anyone has had experience of this previously?
    Or does anyone have any suggestions on how to fix this problem or even what is causing the problem?
    Thanks in advance for any help you can offer
    Keith

    Hi
    In you are using Win XP on this notebook, then you should update the BIOS because there is an special BIOS for Win XP!
    Furthermore the Toshiba Multimedia Control buttons are controlled by Toshiba Controls tool. You can download it from the Toshiba driver page.
    Regarding the illumination buttons;
    As far as I know you can enabled and disable this in BIOS itself!
    Check the BIOS settings,
    Greets

Maybe you are looking for