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:
Advertisements
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
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
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
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
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
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
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
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
[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
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
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
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
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