How to check the radio buttons in JSP

Hi All,
I am very new to JSP,
I have two forms( addform and deleteform), in addform i have a table which fetch the records from database,
and at the same time I created a radio button for each and every record(eg: If I have 10 records in database, 10 radio button will be created automaticallty).
now I want to delete a row , by selecting correspondig radio button.
how can i get the value of radio button in deleteform, which they checked in the addform,
could anybody help me!!!!!!!
with regards
suresh

Something like javascript
<html>
<head>
<script>
function add() {
for(var i=0;i<document.forms[0].radio.length;i++) {
if(document.forms[0].radio[i].checked) {
document.forms[0].txtName.value = document.forms[0].radio.value;
</script>
</head>
<body>
<form name="form1">
<input type="radio" name="radio" value="Radion 1">Radion 1
<input type="radio" name="radio" value="Radion 2">Radion 2
<input type="radio" name="radio" value="Radion 3">Radion 3
<input type="text" name="txtName">
<input type="button" value="Add" name="b2" onClick="add()">
</form>
</body>
</html>
or take a look a this  [link|http://www.java2s.com/Code/Java/JSP/SubmittingRadioButtons.htm]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to deselect the Radio button from htmlb.table.TableView

    Hi Experts,
    Could you please help me, how to seselect the Radio button from htmlb.table.TableView?
    <hbj:tableView
                                       id="tbvCustomer"
                                       model="mcBean.csModel"
                                       design="ALTERNATING"
                                       headerVisible="TRUE"
                                       footerVisible="TRUE"
                                       navigationMode="BYPAGE"
                                       selectionMode="SINGLESELECT"                               
                                       fillUpEmptyRows="FALSE"
                                       headerText="Searchresults"
                                       visibleRowCount="10"
                                       onNavigate="CustomerSearchNavigate"
                                       visibleFirstRow="<%=mcBean.getCsVisibleFirstRow() %>">
    Problem: After searching and selecting the Customer in the table, then again we are searching for another customer. After that the searched customer is displaying in the Table. By default the table Radio button is selected. Because for first Customer we have selected the Radio button. How we can deselect the FRadio button while searching for another Customer.
    Thanks In Advance.
    Regards,
    Vijay.

    I think it is <2095>.
    In SmartForms, go to your text window. 
    Use the icon on the top left of the text window to switch to the old editor.
    INSERT -> CHARACTERS -> SAP ICONS. 
    Do a FIND on "radio".  It's called ICON_WD_RADIO_BUTTON_EMPTY.

  • How to combine the radio buttons in different panels

    Hello everyone.I have to have some form of panels, each of which I want to put a radio button. How to make sure that when you select one of the radio buttons, the second was not selected ? Now both are selected. For convenience, made a small example.
    var w = new Window('dialog', '');
        p3 =  w.add("panel", undefined, " panel1 ", {borderStyle:"r"});
        p3.orientation = "column";
        p3.alignment='left';
        p3.preferredSize = [200,107];
        p3.spacing=0;
            var etProd = p3.add('edittext',undefined,'');
            etProd.preferredSize = [170,20];
            etProd.alignment = "top";
        grProd1 =p3.add('group');
        grProd1.orientation = 'row';
        grProd1.alignment="left";
            btnProd_add = grProd1.add('button',undefined,"Add");
            btnProd_del = grProd1.add('button',undefined,"Del");
            rb1 = p3.add('radiobutton',undefined,'import');
            rb1.alignment='left';
        p2 =  w.add("panel", undefined, " panel2 ", {borderStyle:"r"});
        p2.orientation = "column";
        p2.alignment='left';
        p2.preferredSize = [200,107];
        p2.spacing=0;
            var etProd2 = p2.add('edittext',undefined,'');
            etProd2.preferredSize = [170,20];
            etProd2.alignment = "top";
        grProd2 =p2.add('group');
        grProd2.orientation = 'row';
        grProd2.alignment="left";
            btnProd_add = grProd2.add('button',undefined,"Add");
            btnProd_del = grProd2.add('button',undefined,"Del");
            rb2 = p2.add('radiobutton',undefined,'import');
            rb2.alignment='left';
    w.show();

    If you are wanting a toggle them then you could that in the call backs… add above show();
    rb1.onClick = function() {
         rb2.value = false;
    rb2.onClick = function() {
         rb1.value = false;

  • How to default the radio button confirmation and invoice in shopping cart

    Hi Guys,
    In the shopping cart for a limit item I need to default the radio button for CONFIRMATION AND INVOICE as it is now defaluted to INVOICE ONLY .
    Please let me know how to change as I could not achieve it through UI badi.
    Thanks & Regards
    Arun

    Did you try the suggestions mentioned here: To make the field for Display only on the Shopping Cart Portal
    I'm looking for a way to restrict the "Invoice Only" option depending on the product category selected.  Do you know I would do this?
    For example only allow "Invoice Only" to be selected if Product Category X is selected.  If product category Y is selected then grey-out "Invoice Only".
    Matt

  • WPF: How to change the radio button text background?

    Is there a simple way that we can change the radio button text background? thx!
    JaneC

    If you literally mean the text background.
    It's a contentcontrol.
    You can put whatever you like in it to hold the text.
    As illustrated by my article:
    http://social.technet.microsoft.com/wiki/contents/articles/30173.wpf-tips-radiobutton-alignment.aspx
    Thus:
    <RadioButton Name="rbnIsolated">
    <TextBlock Text="Isolated Storage" Margin="0,-10,0,0" FontSize="22" Background="Pink"/>
    </RadioButton>
    Makes just the text background pink
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How to give the radio button value dml statement

    Oracle Forms6i
    Hai All
    I have created a form I the form i have created two radio button and named as appr, Recmd when i execute the forms appr is marked by default
    So now i need to insert or update this radio button value in my Table
    how can i insert or update this radio button value
    pls tell me the steps to do
    Thanks In Advance
    Srikkanth.M

    Hi,
    :<your_radiogroup_name> will give the selected radiobutton value

  • How to disable the radio buttons in alv lsit .

    hi experts ,
    i created one alv list using oops alv . in list three radio buttons . i used code for that in fieldcat-icon = 'x' .
    then in internal table i passed radiobutton icon . using this code i get a radio buttons on list correct .
    but when iam displaying the alv list . i some rows i want radio buttons in disable mode .
    can any one explain

    Tiberiu,
    I think you need to change the webdynpro for java code using NWDI
    Thanks
    Bala Duvvuri

  • How to dspaly the radio buttons on screen

    hi experts
    i used generating alv list using alv oops . now in my list radio button s to display .
    what is the code for that .

    Hi,
    Refer this http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT
    and do search...
    regards,

  • How to Disable the radio button on page

    Hi All,
    We have a requirement to disable or hide a radio button on the standard Noritifacation Reassign page in R12.
    The page is /oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Personalize Page', I can see a 'messageComponentLayout', when I set the 'Rendered' property to 'false'.
    It is hiding out the complete Layout, but I just want to hide only one radio button from that layout.
    Can someone please help?
    Thanks,
    Dilip

    Thanks Sandeep and Keerthi,
    I got that point but I am facing one more problem, as you said, its creating radio groups dynamically in CO.
    Now I am trying to extend the CO and disable the radio butto, But I am getting Null Pointer exception, I guess, I am not able to get the proper handle to that radio button.
    Can you please help?
    Here is the Controller code where it created buttons dynamically.
    ==========================================
    OAViewObject localOAViewObject = (OAViewObject)localOAApplicationModule.findViewObject("ReassignTypeVO");
    localOAViewObject.executeQuery();
    OARow localOARow = null;
    int j = localOAViewObject.getRowCount();
    switch (i)
    case 1:
    localObject5 = null;
    for (int k = 0; k < j; k++)
    localOARow = (OARow)localOAViewObject.next();
    localObject5 = (OAMessageRadioButtonBean)createWebBean(paramOAPageContext, "MESSAGE_RADIO_BUTTON");
    ((OAMessageRadioButtonBean)localObject5).setText(paramOAPageContext, (String)localOARow.getAttribute("Meaning"));
    ((OAMessageRadioButtonBean)localObject5).setValue(((Number)localOARow.getAttribute("LookupCode")).toString());
    ((OAMessageRadioButtonBean)localObject5).setID("" + k);
    ((OAMessageRadioButtonBean)localObject5).setName("NtfReassignType");
    ((OAMessageRadioButtonBean)localObject5).setShortDesc((String)localOARow.getAttribute("Meaning"));
    if (k == 0)
    ((OAMessageRadioButtonBean)localObject5).setSelected(true);
    ((OAMessageComponentLayoutBean)localObject1).addIndexedChild((UINode)localObject5);
    ==========================================
    Here is the code I have written, but its going into exception.
    ===========================================
    try
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("0");
    testButton.setDisabled(true);
    pageContext.writeDiagnostics(this,"expMsg: got the testButton",1);
    //i tried with OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("NtfReassignType");
    // and
    //OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("MESSAGE_RADIO_BUTTON");
    //but still its not working and going to exception block
    catch (Exception exception)
    throw new OAException("Error in NtfReassignFnCO button: "+exception, OAException.ERROR);
    ===========================================
    Please help.
    Thanks,
    Dilip

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

  • Initialize the radio button in initalization event

    How to initialize the radio button in initalization event.
    Here the problem is i want to initialize the radiobutton which is in  a Logical data base(PNP).
    Regards
    Vamsi

    hi,
    try like this,
    parameters: rr1 type radio button group g1 default 'X',
                      rr2 type radio button group g1,
                      rr3 type radio button group g1.
    or in the event initialization.
    CREATE 3 radio buttons and initialize in this event
    INITIALIZATION.
    RR1 = 'x'.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • How to Create a Radio Buttons using Personlization

    Hi friends ,
    We have  requierment like , Wanted to havev two radio buttons  Employee Relative  : YES or NO values.
    These radio buttons I wanted to add on Oracle Provided page using personlization. But the Values for the radio buttons should be YES and another button is No.
    After addin it , we shall have this selected value handled in Custom Controller. How can I the radio Buttons with the above YES/No Values. Any guidelines would be greatly helpful.
    Thanks Guys
    Regards
    Raghu

    Hi,
    Using personalization you can create radio button s, the item style as: Message Radio Button
    and then extend the controller and use the below code in processrequest of the extended or custom controller:
    OAMessageRadioButtonBean appleButton = 
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne"); //First Radio Button 
    appleButton.setName("Yes"); 
    appleButton.setValue("Yes"); 
    OAMessageRadioButtonBean orangeButton = 
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo"); //Second Radio Button 
    orangeButton.setName("No"); 
    orangeButton.setValue("No"); 
    May be it will help you.
    Regards
    Mahesh

  • Is there a way to automatically align and make same size of check boxes/ radio-buttons like in the image below?

    I create PDF forms on daily basis for multiple people around but still, I create a table in Word and then manually convert it to PDF. I'm using Acrobat X and then I manually create radio buttons or check boxes in each cell of the table so aligning those buttons or check-boxes in the same line is a problem. I know there would be some solution to this but can anyone guide me to that? Also, making the same size of the radio-buttons of check boxes likewise ? ? ?
    Please see the image above and advise how to align them in the same line and how to make them same size using Acrobat X?
    Your help appreciated.

    You should create these fields using the Place Multiple Fields command, so that they are aligned properly and all the same size. Read about it here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS8C2DDC1C-C174-4ad1-893F-B14A1C0289B4.htm l
    Read how to align and distribute fields here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS6D2D2BFC-6F69-4a8b-BDE6-8043D7EE240D.htm l

  • I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How to check the Conditional transition while submit the jsp as screenflo

    Hi All,
    I want to know that how to check the conditional transition, which result is used to decide the next Activity while submit the JSP as Screen Flows
    Edited by bpmvasu at 03/27/2007 11:14 PM

    Hi,
    Unlike BPM Object Presentations where the 'selectedButton' is automatically assigned to the predefined screenflow 'result' variable, when using JSP Persentations you need to do the mapping yourself (I don't think there is a way around this).
    Assuming you're using a JSP Presentation with a Fuego Object Interactive Call, click the 'Advanced' button at the bottom of the Main Task dialog.
    Select the 'showOut' argument set, add a new argument mapping. Select 'result' from the Screenflow's instance variables and map it to 'parameters["paramName"]'. Where paramName is the name of the HTML submit input element in your JSP.
    Hope this helps,
    Tim

Maybe you are looking for

  • Is it possible creating a report not based on a table?

    In APEX I've always created form on report so as to have the list of records of a table and the possibility of inserting/updating every sinle record by means of the form on it, ok? I have an application concerning classic costumers, orders, ... with

  • Update to 6.2.9

    I am trying to update my appleworks from version 6.2.7 to 6.2.9. However it is not working. I live in Australia and both the international and U.S English versions do not work. I keep getting a message saying, that the updater is unable to find an in

  • AC3d conversion from AutoCAD2008 - blank screen

    It must be something simple. When I convert my dwg to pdf I do not see the model. It shows in the model tree, but I can not find it. Also shows in Toolkit, I have the layout page...the model is there ...somewhere. Is there a Zoom Extens command? Also

  • Question about Hibernate non-automatic id generator

    Hello I have a small problem which I cannot fix. I insert an object into the database which has a fixed ID that is entered on the website. Hibernate adds this perfectly, all goes well. But when i try to edit (through session.update()) it will not cha

  • Redirection loop - can't access courses/tracks without quitting iTunes

    At times when I'm on the Clemson on iTunes U site, I find myself being directed back to the initial page repeatedly when I try to access a course. This usually happens on occassion after I've been logged in for a while. Upon selecting a course page t