Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 1.50 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-13-2007, 09:34 AM   PM User | #1
chocks
New to the CF scene

 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
chocks is an unknown quantity at this point
To Retrieve dynamic radio button values using jsp & javascript

Hi All,

How can i retrive the dynamically created radio button values. I am using JSP and JAVA beans to retrive the values from the form. I dont have any probs to retrieve combo box values, text box values only problem showing with radio button values. If any data which is entered wrong in the form all the fields should prefills with the old value.Except radio button values all others fields such as combo box, text box values are prefilled.

I have given the code for radios.

document.write('<td class="Amenu_rouge" >Are you currently?&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes &nbsp;&nbsp;');
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
document.write('<input type="hidden" name="fcidis" value="">')


<form method="POST" action="Update.jsp" name="sampleReq" >

<tr>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
<input type="hidden" name="requester1" value=""/>
</td>
</tr>


Advanced Thanks for help

regards
sona
chocks is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:31 PM.


Advertisement
Log in to turn off these ads.