Set button to accept key input

Hello,
I wrote this JSP page that has 4 choices presenting in the button style (A,B,C,D). How do I set its property (or whatever code) so that when a user pressed the letter 'a' on the keyboard it will invoke the same method as when a user click on the A button. I am awared of the AccessKey property, but it requires Alt-A, and I don't want any Alt or Ctrl keys. Please help.

Hi,
the answer is that you can't unless you want to put JavaScript on the page that intercepts all keyboard input, calling doClick on the button for every A-D being clicked
Frank

Similar Messages

  • How to set the short cut key for buttons

    Hi
    I dont know how to set the short cut keys for the button...can u pls help me out

    Do you mean a short cut key for buttons at client side (web browser)? If yes, you could do it with JavaScript~~~ ^o^

  • All web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??

    all web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??
    == This happened ==
    Just once or twice
    == 2 days ago.

    See also this article about caret browsing: http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Error Message "The Remote device or resourse wont accept connection, not set up to accept connection from port https"

    I get this error message when trying to open and log into an online casino "The Remote device or resource wont accept connection, not set up to accept connection from port https".
    I am on a desktop computer my connection to the net is with a USB Virgin Mobile hotspot device.
    I also have issues with some downloads not installing right for instance SKYPE wont work. If the problems are related I don't know
    Thanks

    Starting in Firefox 14, Firefox will guess an address and place it in the address bar (AutoFill feature). If you have ever connected to the site using a secure (HTTPS) connection, then Firefox will try to connect security to the address suggested by the AutoFill feature. To work around this you can:
    * Edit the address to force Firefox to interpret your entry literally. For example, if there is a trailing / you can remove it.
    * Turn off the URL bar AutoFill feature and just use the AutoSuggest drop-down.
    * Clear Firefox's memory of the site so it doesn't default to a secure connection (however, this also removes any bookmarks you have to pages on the site).
    To disable the in-address-bar autofill without losing the suggestions that appear below the bar:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''autofill''' and pause while the list is filtered
    (3) Double-click '''browser.urlbar.autoFill''' to toggle it from true to false. You're done with about:config and you can close this tab.
    "Forget about this site" will clear cache, history, bookmarks, and permissions for the site, and probably any saved certificate. There are two ways to get to this:
    * History > Show All History, right-click an entry for the site > "Forget about this site"
    * Type or paste about:permissions in the address bar and press Enter, then select the site from the list on the left side, and click the "Forget about this site" button on the right side
    Depending on the size of your history and cache, this may lock Firefox up for a minute or two while everything is cleansed.

  • How to accept user inputs from  sql script

    I want to create Tablespace useing sql script , but the location of the data file I need accept from user . (to get the location of the data file ) .
    How can I accept user input from pl/sql .
    Example :
      CREATE TABLESPACE  TSPACE_INDIA LOGGING
         DATAFILE 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'
         SIZE 500M  AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED
         EXTENT MANAGEMENT LOCAL;here I need to accept location of the datafile from user ie : 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'

    Hi,
    Whenenever you write dynamic SQL, put the SQL text into a variable. During development, display the variable instead of executing it. If it looks okay, then you can try executing it in addition to displaying it. When you're finished testing, then you can comment out or delete the display.
    For example:
    SET     SERVEROUTPUT     ON
    DECLARE
        flocation     VARCHAR2 (300);
        sql_txt     VARCHAR2 (1000);
    BEGIN
        SELECT  '&Enter_The_Path'
        INTO    flocation
        FROM    dual;
        sql_txt :=  'CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
         DATAFILE' || flocation || ' "\SRC_TSPACE_INDI_D1_01.dbf" ' || '
         SIZE 500M  AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED
         EXTENT MANAGEMENT LOCAL ';
        dbms_output.put_line (sql_txt || ' = sql_txt');
    --  EXECUTE IMMEDIATE sql_txt;
    END;
    /When you run it, you'll see something like this:
    Enter value for enter_the_path: c:\d\fubar
    old   5:     SELECT  '&Enter_The_Path'
    new   5:     SELECT  'c:\d\fubar'
    CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
         DATAFILEc:\d\fubar
    "\SRC_TSPACE_INDI_D1_01.dbf"
         SIZE 500M  AUTOEXTEND ON NEXT  1280K MAXSIZE
    UNLIMITED
         EXTENT MANAGEMENT LOCAL  = sql_txt
    PL/SQL procedure successfully completed.This makes it easy to see that you're missing a space after the keyword DATAFILE. There are other errrors, too. For example, the path name has to be inside the quotes with the file name, without a line-feed between them, and the quotes should be single-quotes, not double-quotes.
    Is there some reason why you're using PL/SQL? In SQL, you can just say:
    CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
    DATAFILE  '&Enter_The_Path\SRC_TSPACE_INDI_D1_01.dbf'
    SIZE 500M  AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL;though I would use an ACCEPT command to given a better prompt.
    Given that you want to use PL/SQL, you could assign the value above to sql_txt. If you need a separate PL/SQL variable for flocation, then you can assign it without using dual, for example:
    DECLARE
        flocation     VARCHAR2 (300)     := '&Enter_The_Path';The dual table isn't needed very much in PL/SQL.
    Edited by: Frank Kulash on Jan 10, 2013 6:56 AM

  • How to Programmatically Set the limit (max, min input) of a control inside a cluster?

    I want to programmatically set the limit (max, min input) of a control inside a cluster. (see attached VI).
    The max, min value will be read from a file. The input of the control must be within the range defined by the max and min value.
    Can anyone tell me how to do it?
    Thanks a lot for your kind help.
    Xiaogang

    Accessing the properties of a cluster (or array) is not a trivial operation until you have done it once. It's a two step (at least) process : first, ask for a reference (array of...) to the objects contained in the cluster, then tell LV what kind of object you are adressing.
    See the attachment.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    How to set limit[1].vi ‏52 KB

  • Short cut for Radio buttons (using Ctrl+ key)

    How can I select deselect Radio buttons using Ctrl + keys. I know that setMnemonic can be used to access using Alt + key. But I want to use Ctrl also. Please suggest the solution. How can I select using only single key?

    Read the API for a meaning of each of the arguments. Here is a simple example showing how to assign an "Action" to the Ctrl+1 and Ctrl+2 keys:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class KeyboardAction extends JFrame
        public KeyboardAction()
            JPanel panel = new JPanel();
            setContentPane( panel );
            JTextField textField1 = new JTextField("Ctrl+1 or Ctrl+2", 10);
            panel.add( textField1 );
            JTextField textField2 = new JTextField("Ctrl+2", 10);
            panel.add( textField2 );
            //  Change the input map of the text field,
            //  therefore, Ctrl+1 only works for the first text field
            Action action1 = new SimpleAction("1");
            Object key1 = action1.getValue(Action.NAME);
            KeyStroke ks1 = KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.CTRL_MASK);
            textField1.getInputMap().put(ks1, key1);
            textField1.getActionMap().put(key1, action1);
            //  Change the input map of the panel
            //  therefore, Ctrl+2 works for both text fields added to the panel
            Action action2 = new SimpleAction("2");
            Object key2 = action2.getValue(Action.NAME);
            KeyStroke ks2 = KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.CTRL_MASK);
            panel.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ks2, key2);
            panel.getActionMap().put(key2, action2);
        class SimpleAction extends AbstractAction
            public SimpleAction(String name)
                putValue( Action.NAME, "Action " + name );
            public void actionPerformed(ActionEvent e)
                System.out.println( getValue( Action.NAME ) );
        public static void main(String[] args)
            KeyboardAction frame = new KeyboardAction();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setVisible(true);
    }Also, if you search the forum using the keyword "getActionMap", I'm sure you'll find other example.

  • Logic stopped accepting midi input from my devices

    hi.  logic has stopped accepting midi input from all of my midi devices for some reason that i can't figure out.  everything was fine for a while as i was able to play my midi keyboard and record with it.  now there are no midi messages being accepted.  if i open a new project everything works fine.  how do i reenable my midi devices in this project?
    thanks in advance,
    dave

    ok, nevermind, some key command must have switched my cable switcher in the environment

  • In iCal - I keep getting the error message " This calendar was created by Mail" and it will not accept any input; why..??

    In iCal - I keep getting the error message “ This calendar was created by Mail” and it will not accept any input; why..??

    use Disk Utility and Verify Permisions then fix and Verify Disk and fix, this should fix it.

  • What's wrong? Simple button click to put input on to label

    I'm trying to build a simple application with an input box, button, and label.
    Clicking the button should take the input box contents and display it upon the label. However, although I have no bugs listed, clicking the button in the app does nothing.
    I have in my .h file:
    @interface VTViewController : UIViewController
        IBOutlet UITextField *input;
        IBOutlet UILabel *label;
        NSString *contentStore;
    -(IBAction)button;
    and in my .m file:
    #import "VTViewController.h"
    @interface VTViewController ()
    @end
    @implementation VTViewController
    -(IBAction)button
        [input resignFirstResponder];
        contentStore = input.text;
        label.text = contentStore;

    Put a breakpoint in the button method to verify the IBAction is being triggered.
    Make sure the IBOutlets are hooked up, for example it should look like this in the Connections Inspector.
    It looks like you hand-rolled this rather than Ctrl+dragging the controls into the header. Normally the IBOutlets are synthesized properties, and the button method should have a parameter.
    - (IBAction)buttonPushed:(id)sender {

  • My colleague recently synched his phone and now has a full keyboard on the lock screen.  My lock screen keypad is set up like phone keys (alphanumeric).  He's wondering why his is different, and he also now cannot unlock it.  Anyone have this happen?

    My colleague recently synched his phone and now has a full keyboard on the lock screen.  My lock screen keypad is set up like phone keys (alphanumeric).  He's wondering why his is different, and he also now cannot unlock it.  Anyone have this happen?  He came to me yesterday and I noticed that his iPhone 4 still had old software (version in the 4's), so I advised him that he needed to synch it up to get the iOS 5.1.1 version.  He synched and now can't get back in.  He was entering his passcode on the lock screen (which wasn't taking) and I noted to him that his screen didn't look like mine.  Anyone know how to fix this issue, or does he have to do a full restore?

    He has set up a complex password instead of a simple passcode for his phone. If he doesn't know what it is, he'll have to restore. There is no way around a forgotten passcode.

  • How do I create a data set ready for a batch input session

    Hi:
    I don't know how to create a data set ready for an BATCH-INPUT SESSION.I know that with the function BDC_INSERT make de input online, but my requirement is that generate the data set and left to the user get in de SM35 transaccion and decide to him if it's execute or not. I have all the information in a BDCDATA table.
    Any clue would be great!!

    You just have to do:
    BDC_OPEN_GROUP (Open new batch)
    BUILD BDC DATA (Your own code)
    BDC_INSERT (Insert BDC data you have built in step 2)
    BDC_CLOSE_GROUP (Close batch)
    This will just create a new batch and it can be processed in SM35.
    To build BDC data:
    LOOP AT your_input_table.
    <<here you have to use the code generated from recording in  trasaction SHDB>> (i.e. bdc_dynpro and bdc_field performs)
    ENDLOOP.

  • Where is button to accept end user agreement so I can download or read online file.  mac osx reader XI

    where is button to accept end user agreement so I can download or read online file.  mac osx reader XI
    every time i click  on a file to downloac
    i get a reader message Before viewing PDF ... you must launch adobe reader and then accept the End User License Agreement. Ive searched  every part of the menu for this and cant fine it

    Ok, so the Reader app works. Fine, but why did you say ",the reader won't open any more", that led us a confusing direction.
    Ok, the problem is most likely caused because you downloaded Acrobat Pro, which takes over from Reader, then got rid of it. You now have part of Acrobat in Safari, not part of Adobe Reader.
    There are two things to try to fix this. The first and easiest is to download and install Adobe Reader again. That should puts its stuff back in Safari with a bit of luck.
    Important note for others following this thread. Downloading Adobe Reader is not going to help you if you have not understood and followed the instructions to "launch" Adobe Reader (or Adobe Acrobat). Make sure you understand what "launch" means before downloading anything again.

  • To set the short cut key for the menu when using CommandDesign pattern

    Hi All
    I have a menu File which has two menu items Load and save.
    Here for implementing the actionperformed iam using the command design pattern.
    Now iam not able to set the short cut key for the menu item......
    Please help me..............
    Thanks
    Arch

    The Java Tutorials: [How to Use Menus|http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html]
    db

  • Accepting user input and executing a PL/SQL block using it

    Hi All,
    I am working on a requirement wherein I have to accept values from the user for the various arguments to be supplied to a PL/SQL block and then execute it using these values. For now, I am using the following logic:
    PROMPT Enter value for the Category
    ACCEPT cCategory CHAR PROMPT 'Category:'
    DECLARE
    cCategry CHAR(1) := '&cCategory';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('The value of the Category as entered by you is' || cCategory);
    END;
    PROMPT Press y if you want to proceed with the current values, or press n if you want to re-enter the values
    ACCEPT cChoice CHAR Prompt 'Enter y or n:'
    DECLARE
    cCategry CHAR(1) := '&cCategory';
    sErrorCd VARCHAR2(256);
    sErrorDsc VARCHAR2(256);
    BEGIN
    IF '&cChoice' = 'y'
    THEN
    DBMS_OUTPUT.PUT_LINE('Starting with the process to execute the stored proc');
    --- schema1.package1.sp1(cCategry, sErrorCd, sErrorDsc);
    --- DBMS_OUTPUT.PUT_LINE('Error Code :' || sErrorCd);
    --- DBMS_OUTPUT.PUT_LINE(' Error Description :' || sErrorDsc);
    ELSIF '&cChoice' = 'n'
    THEN
    Now I want that the proc again start executing in the loop from the 1st line i.e. PROMPT Enter value for the Category. However i see that this is not possible to do that PROMPT statements and accepting user inputs execute only on the SQL prompt and not inside a PL/SQL block.
    Is there an alternate method to establish this?
    Thanks in advance.

    Hi,
    You can write a genric procedure to achive the desired output. Pass 'Y' or 'N' in the procedure.
    Call that procedure in simple pl/sql block during runtime using substituton operator.
    For ex
    create or replace procedure p1(category_in in varchar2)
    IS
    BEGIN
    if (category_in='Y')
    then
    prcdr1()
    /** Write your logic here ***/
    elsif(category_in='N') then
    prcdr2()
    /** write your logic here***/
    end if;
    exception
    /***write the exception logic ***/
    end p1;
    Begin
    p1('&cat');
    end;Regards,
    Achyut K
    Edited by: Achyut K on Aug 6, 2010 5:20 AM

Maybe you are looking for

  • Windows Server Upgrade and Weblogic 8.1

    Hi, We have a J2EE Application currently running on Windows 2000 Server with "Websphere App Server 8.1.5", JDK 1.4.2 and Documentum 5.2.5. Plnning to upgrade the windows server to 2008. I hope Weblogic Server 8.1 can be installed on 2008 server, but

  • Trying to synch iphone

    Whenever I try to sync my iphone to my computer I get: "This computer has previously been synced with an iphone or another iOS device. (  ) Set up as a new iPhone (  ) Restore from the backup of iphone I don't want to lose any of my photo, music, etc

  • Function to fade audio smoothly from one level to another in AS2

    Greetings all. I'm a newcomer to Actionscript programming and trying to modify a Flash site template downloaded from TemplateMonster.com (which is an AS2 template).  I've almost succeeded at what I need to do but have run into a couple of brick walls

  • Migrating MySQL Windows to Mac

    Using the MySQL Migration Tool, I converted my MS SQL data to MySQL on Windows. Now I need to move the data to MySQL on my Mac (10.3.9). Any idea how to do this? Thanks.

  • BPM -eMail notification

    Hi, I am facing a strange issue, after server restarts getting bulk BPM eMail notifications for all pending and in-progress notifications..where to control this. Also I couldn't able to see Cancel Delegate Revoke buttons after task opened, I did conf