Please Help! Deleting multiple record by using checkbox selected

Hello everybody,
I am a new to JSP. I really don't know how to delete multiple record by using checkbox selected and pressing submit button.
For example, deleting webmailbox letters using checkbox selected and delete button. The mail we checked will delete from the inbox.
I like to use my user account deleting system of my project like above example.
How can I do in JSP? I will very please you if you share you knowledge and code for me.
If you have URL address, could you share me for reference?
Please help me...
With Thanks and Regards,
wtdahl

Take a look at this thread, I thing it answers your question quite good:
http://forum.java.sun.com/thread.jsp?thread=516658&forum=45&message=2463505

Similar Messages

  • Display multiple records based on checkbox selection

    Hi - I have a cfm page that displays all the employees in the
    company (select * from employee). I have a checkbox next to each
    one of the employee name. I want the users to be able to select the
    checkbox and view phone number of selected employees (select
    phone_number from employee where emp_id = 12, 15, 18, 20, 31) I
    know I'll have to use some kind of loop to pick these employees and
    display ... but I don't know how to write that loop ... can
    somebody please help!
    - Amber

    The code below should help you out.

  • How to Delete Multiple Records using selectbox in jsf

    Hi!
    My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
    rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
    <h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
    </h:selectBooleanCheckbox>
    But other functionality is not wokring.
    Can any one plz tell how to select the multiple records and how to send the id to the serverside.
    I want code code for jsp and as well as backingBean how to accaess .
    Any Reply shuld be apreciated

    You may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
    Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable.

  • Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Why that when I record a video in my iPhone 4s then I will transfer it to my laptop, the video is in slow motion? Please help so that I can use always my video recording feature. Thanks!

    Video is synced from the computer to the iPhone via iTunes. You need to load the video into iTunes, make sure it is iPhone compatible before you do that, and once it is in iTunes, then sync to the iPhone.
    Never said what computer OS you were using. Also, the computer processor, amount of RAM can make a difference with HD video.

  • Deleting multiple records via html checbkoxes?

    I'm trying to delete multiple records in a table based on the
    selection of checkboxes.
    I have an html form with 4 checkboxes. If a user checks any
    box, I want to delete the associated records. and if they ucnheck
    something I want to insert multiple records. This form does not
    hold the primary keys but other unique parameters. Here is my sql
    statement.

    > and that keyword is not mentioned in the DELETE
    statement chapter.
    IN is not specific to DELETE statements. It can also be used
    with SELECT or UPDATE statements. It is a way of specifying
    multiple values in a single statement, instead of using multiple OR
    statements:
    http://www.w3schools.com/sql/sql_in.asp
    Since you are using cfqueryparam, you also need to use
    list="true" (ie you are passing in a list of values, not just one)
    <cfset listOfValues = "1,2,5,6,8">
    WHERE ColumnName IN
    <cfqueryparam value="#listOfValues#" list="true"
    cfsqltype="...">

  • Need to delete multiple records at a time

    Hi,
    My requirement is to delete multiple records at a time, i am using JDV11g and read only ADF table and rowSelection="multiple".
    i have taken command button and invoking the below method.
    RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.t1.getValue();
    System.out.println("RowKeySet is: "+ rowKeySet.getSize());
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
    rowData.getRow().remove();
    Please do need full

    Hi,
    I don't understand what you mean by "+Please do need full+" , so I am ignoring this part. Here's a link that shows you best practices
    http://blogs.oracle.com/smuenchadf/examples/
    See example 134.
    Frank
    ps.: I suggest you bookmark the link

  • Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this?

    Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this? I don't know how to wipe the hard drive, and the support online doesn't seem to work.

    As posted previously:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    If installing Leopard the process is similar in some respects.  If you wish to begin anew then after selecting the target disk click on the Options button and select the Erase and Install option then click on the OK button.  To install over an existing system do the following:
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • Delete multiple record in tabular with check box.

    Hello guys,
    I need your suggestion..
    I have master detail block. (INSTRUCTOR and SECTION)
    At detail block, I add check box item (name: RB_SECTION_ID) with Database Item "No", and value when check :SECTION_ID (on the property).
    I make a button DELETE. The trigger was DELETE from SECTION where section_id = :SECTION.RB_SECTION_ID and
    instructor_id = :INTRUCTOR.INSTRUCTOR_ID;
    but It not work.
    How we delete multiple record by check multiple check box then click DELETE button..??
    Regard.
    Nia..

    You datablock in the form cannot automaticaly refresh the changes you make with the SQL statements.
    For that you need to explicity call certain built-ins to refresh the data
    execute_query(no_validate) --> fetches the available data for that session. Here you deleted some records, so those records will not be available until you do a rollback in the same session(i.e, you exit the form without saving). But until you save, those deleted records will be avaiable for the users in other sessions)
    Also, your code works only because the records you deleted are all already saved ones.
    So it will be a good practice to use built-in of form builder rather than DML stmt.s
    Here you can do like this
    begin
    go_block('TRY_TABLE');
    first_record;
    loop
    if :TRY_TABLE.CCKBOX = 'Y' THEN
    delete_record;
    END IF;
    NEXT_RECORD;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    END LOOP;
    END;
    If your code is like above one, you can revert your deletion by simply giving a F7 (enter-query) and F8 (xecute query).

  • Delete Multiple Records from Item Master

    Hi,
    We received wrong master data which has been uploaded and two groups have to be deleted. All the items in those particular groups have also to be deleted. Can anyone suggest how to delete multiple records from Item Master?
    Currently I am navigating through each Item and doing a Right Click + Remove. It is very painful given the huge number of records.
    Regards
    Sudatt

    Hi Sudatt.....
    I recommend you not to run any kind of delete or update SQL query as it harms DB.
    You can create your own front end application with the help of any technical consultant which can be
    achieved very easily. Else such problems create a big problem during upgradation to next version.......
    Regards,
    Rahul

  • Hi please help me how can I use my iPhone 4 I am at vocation my is not working please help

    Hi I am at vocation at Italy I am not able to use my phone please help me how can I use my phone overseas thank u

    You need to make your own ringtones in iTunes then sync them to your phone. Follow the directions here:
    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/

  • To delete multiple records

    hi all,
    Can any tell tell me how to delete multiple records in table control of a screen
    i have checked the multiple rows in table control attributed and assigned a name.I needhelp in writing code.
    Thanks

    hi,
    As you have marked multiple fields in the table control your table control is mulple selection enabled.
    <b>PROCESS AFTER INPUT.</b>
    loop at IT_CONF.
        field X_CONF-CHECK
          module TC_CONF_mark on request.
      endloop.
      module TC_CONF_user_command.
      MODULE USER_COMMAND_0102.
    *this modifies the internal table with check field as X
    module tc_conf_mark input.
      data: g_tc_conf_wa2 like line of it_conf.
      if tc_conf-line_sel_mode = 1.
        clear g_tc_conf_wa2.
        loop at it_conf into g_tc_conf_wa2
          where check = 'X'.
          g_tc_conf_wa2-check = ''.
          modify it_conf
            from g_tc_conf_wa2
            transporting check.
        endloop.
      endif.
      modify it_conf
        from x_conf
        index tc_conf-current_line
        transporting check.
    endmodule.
    module tc_conf_user_command input.
    * write code to handle table control scrolling /pageup/pagedown
    endmodule
    *Check the ok_code
    module user_command_0102 input.
        case ok_code.
          when 'DEL'.
           * Delete from internal table where check = X
        endcase.
    endmodule.                
    <b>PROCESS BEFORE OUTPUT.</b> 
      module TC_CONF_change_tc_attr.
      loop at   IT_CONF
           into X_CONF
           with control TC_CONF
           cursor TC_CONF-current_line.
        module TC_CONF_get_lines.
      endloop.
    module tc_conf_change_tc_attr output.
      describe table it_conf lines tc_conf-lines.
    endmodule.
    module tc_conf_get_lines output.
      g_tc_conf_lines = sy-loopc.
    endmodule.
    Thus you will delete the marked lines from the internal table in PAI and in PBO you can read the refreshed internal table without the table entries that are marked as deleted in the table control and display the same in the table control. This is another way.
    Regards,
    Richa

  • When I try to open my applications, they won't open. I can only open them by right click open. Please help. I need to use this for school.

    I can open files on my desktop and I can only open them by right click then open. Please help ASAP. I am using this MacBook for school. Pls help asap

    Macbook Pro
    System Preference > Trackpad > Point and Click
    At the bottom adjust the Tracking Speed slider.
    Best.

  • Urgent:                FORMS-III   Deleting Multiple Records By Marking X

    Deleting Multiple Records By Marking X
    In Forms III, i need to delete multiple records by marking X (in non database Item)
    i.e.
    ========================
    D Empno Ename Deptno
    ========================
    X 10001 ABC 10
    10002 DEF 10
    X 10003 GHI 20
    X 10004 JKL 20
    =======================
    How To Do????????????
    Rgds,
    Rashad

    Create a button say lable "delete" in a block other than the block from where u want to delete records.
    suppose the block's name is emp_blk
    now create a WHEN-BUTTON-PRESS trigger for delete button and write the following code
    begin
    go_block('emp_blk');
    first_record;
    loop
    if :emp_blk.d ='X' then
    delete_record;
    end if;
    if :system.last_record='TRUE' then
    exit;
    end if;
    next_record;
    end loop;
    end;
    filnally commit on save.

  • My ipod touch has been stuck in recovery mode for like 3 months and ive downloaded the newest itunes but itunes still wont recognize it!!! PLease Help by the way im using a macbook!!!!

    My ipod touch has been stuck in recovery mode for like 3 months and ive downloaded the newest itunes but itunes still wont recognize it!!! PLease Help by the way im using a macbook!!!!          
    PLEASE HELP!!!!!!

    Have you been through the steps mentioned in this article? iOS: Device recognized in iTunes for Mac OS X

  • My sound button cant function even the sound also not sound but when i received call, it do ring..just when i try to play utube or play music it will never have sound...please help me. now i'm using ios7. It just recently happened.

    My sound button cant function even the sound also not sound but when i received call, it do ring..just when i try to play utube or play music it will never have sound...please help me. now i'm using ios7. It just recently happened.

    Hi hayscart,
    This article contains steps to try when you are having trouble with the iPhone's speaker:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Cheers,
    - Ari

Maybe you are looking for

  • Time Capsule disk wont Mount

    Please help: I have scoured the discussion topics, etc., for hours and hours now, and though there are some out there who have similar problems, any answers given don't work. After "upgrading" the firmware to 7.4.2 the disk for the TC is gone. It won

  • File name in the Receiver Adapter

    Hi, I need to create a file with the name as ZZZCCYYMMDDHHMMSS.txt where ZZZ is the constant CCYYMM is the date of file creation DDHHMMSS is the time of file creation. There MUST NOT be any spaces in the file name Eg ZZZ20110314152530.txt I am using

  • Cat5 vs cat6 ethernet cable

    I'm trying to transfer info from a PC to a new Macbook pro using a cat5 ethernet cable.  The two computers can't even find each other.  Do I really need a cat 6 or is something else wrong?

  • RFC invoke = error after 250 lines recovered...

    Hello everybody, I use SAP .Net connector 3 to create an application that makes a remote function call (RFC). This function takes a table in parameter and I expect another table in return which should as many or less lines as the one in parameter. Th

  • Site loaded into MC is not clickable

    I have a preloader (preloader.swf) that loads the rest of the site (site.swf) into a Movie Clip. Everything seems to work fine, but when I try to click on the buttons in "site.swf" (which are nested in Movie Clips), nothing happens. When I roll over