Pass value of rasio button from jsp page to action class(not conventional problem)

Ads
 

Pass value of rasio button from jsp page to action class(not conventional problem)

Hi,

I have a jsp page that has code which goes ike this:

 <table border="1">

            <tbody>
    <s:iterator value="scheduleList" status="stat" id="id">
                    <tr>
                        <td><s:radio theme="simple" name="selectedOption" list="#{'optionA':''}"/></td>

    <!--<td><s:radio theme="simple" name="selectedOption"  list="#{'#id.eventId':''}"/></td> -->

                        <td><s:property value="#id.startTime" /></td>
                        <td><s:property value="#id.smallDesc" /></td>

                </tr>
            </s:iterator>
</tbody>

    </table>
    <s:submit value="Delete" action="deleteSchedule" /

here scheduleList is list data transfer object(DTO).DTO has 3 fields - eventId,startTime,smallDesc as fields. i want to delete selected data(through radio button) to be deleted On clicking 'delete' button . Hence I need to pass eventId as option in the list of radio button.because this eventId can be retrieved in action class using getter setter and hence corresponding data can be deleted. i have depicted what i want in the commented code(obviously commented code doesnt work). pease tell me the way .. hw to go.. i would appreciate if told about some better approach

View Answers

Ads









Related Tutorials/Questions & Answers:
Pass value of rasio button from jsp page to action class(not conventional problem)
Pass value of rasio button from jsp page to action class(not conventional problem)  Hi, I have a jsp page that has code which goes ike this: <...; </table> <s:submit value="Delete" action="deleteSchedule
How to pass Array of string from action class to jsp page
How to pass Array of string from action class to jsp page  this is my action class package login.ipm; import java.sql.*; import java.util.ArrayList... jsp page is <%-- Document : select_service Created on : Aug 31
Advertisements
How can i pass the valus from a JSP to the action class???
How can i pass the valus from a JSP to the action class???  hewllo wevryone... can anyone help me with how i can pass the value of menuId in my JSP and pass it in the action class
how to pass string array from action class to jsp page? pls reply me.
how to pass string array from action class to jsp page? pls reply me.  how to pass string array from action class to jsp page? pls reply me.  .... In your action class, String[] arr = {"A","B","C","D"}; for (int x = 0; x < arr
How to pass the value from controller to jsp page ?
How to pass the value from controller to jsp page ?  HI I need to pass the value from controller to jsp. I use the way like this Controller request.setAttribute("msg", "Successfully Login"); In jsp ${msg} and then i
Pass value from JSP to JavaScript
Pass value from JSP to JavaScript       We can also pass the value from a JSP page to the java... a function hello() which takes value from the jsp page on click of some button
how to pass variable from simple java main class(not servlet) to the jsp page?
how to pass variable from simple java main class(not servlet) to the jsp page?  I have a simple Java class in which I invoke a call to a JSP page... from the simple Java class to the JSP page. How can I do that? Here is my
How to close a frame on action event of a button from a different class ?
How to close a frame on action event of a button from a different class ?  How to close a frame on action event of a button from a different class ? I have a designed a control-frame on 1 class which has jbutton components, I
RADIO FROM JSP TO ACTION.
RADIO FROM JSP TO ACTION.  Hi frds, how to get the selected multiple radio button values from jsp to action
Drop down and radio button value on edit action
the value from dropdown and radio button.. But the problem goes with edit action... i get the value from the database for title and radio button selected...Drop down and radio button value on edit action  HI, I have
JSP Value to JavaScript
to pass the value from JSP to JavaScript. The JavaScript create a function that accepts the value from the jsp page.  Understand with Example In this section... a function addition() which takes the value from the jsp page. When a user click
radio button value on edit action
...Problem 'm facing is on edit action 'm not retrieving radio button value..i have...;input type="submit" value="CANCEL" name="cancel" class="button" onclick...radio button value on edit action  This is my edit.jsp code...In my
i want to pass Javascript value to JSP scriptlet..
i want to pass Javascript value to JSP scriptlet..  i am having a problem that, i am having a combo box in the JSP page when i select an item from... now i want to pass this value to JSP scriptlet
Java Pass Value Example
Pass value from JSP to JavaScript We can also pass the value from a JSP page to the java script as we have done in our... in JSP page we can embed HTML tags as well.    Pass
pass radio button values to next page
pass radio button values to next page  how to pass selected radio button values which coming from mysql database to next page using php. Please show me with examples
Struts2.2.1 Action Tag Example
class directly from a JSP page. We can call action directly by specifying... the results from the Action. The following Example will shows how to implement the Action tag in the Struts2.2.1 -- First we create a JSP file named
Radio Button Problem in jsp.
radio button values from jsp to action using javascript...Radio Button Problem in jsp.  I have a small doubt in my application, my requirement is to get a "single selectible row", I generated a radio button
How to pass multiple values from a servlet to JSP?
How to pass multiple values from a servlet to JSP?  hi, I want to pass multiple values form a servlet to JSP. Hw do i do that? I am able to send one value at a time without any prb, but I am unable to carry multiple (from two
Problem passing a value from one jsp to another using href
Problem passing a value from one jsp to another using href  first page.jsp <a href="common.jsp?param=<%l.get(k).parentname%>">...);%> since url print a common.jsp?param=Arts but attr return a null value
Problem passing a value from one jsp to another using href
Problem passing a value from one jsp to another using href  first page.jsp <a href="common.jsp?param=<%l.get(k).parentname%>">...);%> since url print a common.jsp?param=Arts but attr return a null value
[JSP] How to pass back ID to previous page.
[JSP] How to pass back ID to previous page.  Hi experts, May I ask... page is selected from database where IDPRODUCT=". I don't know how to pass back... ViewProducts.jsp is displaying list of all products. The previous page from
Pass a dom object from jsp to servlet
Pass a dom object from jsp to servlet  I am creating a dom object in my jsp page. now i want to pass that object in a servlet through calling servlet in jsp. can anyone help me
how to show effect (visual) on jsp page using value from database
how to show effect (visual) on jsp page using value from database  I... i want is when the value in booking status is "booked" then the pictures shown as seats should be displayed red. when the value in booking status
export value in csv from jsp
export value in csv from jsp  Hi! i have creted a html form using javascript. i hv taken the array values in jsp. nw i want to pass these array values from jsp to csv file. so please help me how to send
Struts 2 radio button value problem
Struts 2 radio button value problem  When I use s:radio tag in struts 2, I'm not able to get the selected value using document.getElementById('radioButtonName').value.(Note :- I'm getting proper value in java from jsp) It always
how to pass a string from one class to another
how to pass a string from one class to another  hi all, Good morning. I am trying to develop a coding pass a string from one class and declare in other class. the string which i need to pass is the data from an file and i want
how to display output on jsp from while loop of action class....actually i am retreiving the post from posts column from my sql.plz help.thnkss
how to display output on jsp from while loop of action class....actually i am retreiving the post from posts column from my sql.plz help.thnkss  how to display output on jsp from while loop of action class....actually i am
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need...-default"> ... <action name="StudentRegister" class
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need...-default"> ... <action name="StudentRegister" class
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need...-default"> ... <action name="StudentRegister" class
How to pass an arraylist from servlet to jsp?
How to pass an arraylist from servlet to jsp?  Hello, Can anyone please tell me how to pass an arraylist from servlet to jsp? I have two arraylist one of type String and the other int. How to send both the arraylists from

Ads