when radio button is selected corresponding jsp page should open

Ads
 

when radio button is selected corresponding jsp page should open

how to write code in HTML & jsp, when we click on radio buttons the corresponding jsp page should open..!

View Answers

December 26, 2011 at 3:49 PM

<html>
<script>
function openPage(){
var selection = document.form.radios;

for (i=0; i<selection.length; i++)

  if (selection[i].checked == true)
  if(selection[i].value=="view"){
  window.location.replace("view.jsp");
  }
  else if(selection[i].value=="edit"){
  window.location.replace("edit.jsp");
  }
  else if(selection[i].value=="delete"){
  window.location.replace("delete.jsp");
  }
}
</script>
<form name="form">
View Profile<input type="radio" value="view" name="radios" onclick="openPage();"><br>
Edit Profile<input type="radio" value="edit" name="radios" onclick="openPage();"><br>
Delete Profile<input type="radio" value="delete" name="radios" onclick="openPage();">
</form>

Ads









Related Tutorials/Questions & Answers:
when radio button is selected corresponding jsp page should open
when radio button is selected corresponding jsp page should open  how to write code in HTML & jsp, when we click on radio buttons the corresponding jsp page should open..!   <html> <script> function
On selecting a radio button, it should open a jsp page.
On selecting a radio button, it should open a jsp page.  Hi, COuld you please tell me how to link a radio button selection to a jsp. My requirement is if I select a radio button then it should open a jsp page. thank you
Advertisements
How to use radio button in jsp page
How to use radio button in jsp page  ... button in jsp code and display a message in another jsp page according to selected radio buttons. First page in this example lets the user enter its name
Radio Button Problem in jsp.
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... radio button values from jsp to action using javascript
radio button
radio button  On selecting a radio button, it should open a aspx page
change database values when click next button on jsp page
change database values when click next button on jsp page  How to retrive database values rondomly and display jsp page ,when user click next and previous bottons change the values on jsp page
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
Get radio button value after submiting page
are dynamically generated.After selecting radio button & submitting the page , the value of the selected radio button get displayed in that jsp page. <... the following link: http://www.roseindia.net/jsp/radio-button-jsp.shtml
how to display selected checkboxes dynamically using jsp
i have a requirement that : in my JSP page i have radio buttons followed by the DB fields..when i click SUBMIT button,if the field(or record) is available in DB,the respective radio button should be selected automatically
Radio button with values from a String ArrayList in JSP?
Radio button with values from a String ArrayList in JSP?  Radio button values in JSP ArrayList<String> cs = CourseAssignments.getInstance... input. I want to display a radio button near each course, then user selects one
open pdf file in same jsp page and the pdf file should retrieved from database
open pdf file in same jsp page and the pdf file should retrieved from database  Hai all, I need code to open a pdf file in same jsp page(browser) while click on hyperlink And the file was located in database table. Can any
display contents on the same page by selecting a radio button
on the same page under the radio button...display contents on the same page by selecting a radio button  Bill...;input type="radio" name="bill_status " value="due" /> Received<
Query on radio button
Query on radio button  I am having a multiple row in jsp page.They are dynamically coming. For each row there is one radio button. I want to select... are displayed in the jsp page using bean tag. Please provide me some suggestion
How to search the selected item in row table using radia button in JSP?
How to search the selected item in row table using radia button in JSP?  How to search the selected item in row table using radia button in JSP
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
Struts 2 Radio Button
radio buttons and I am using Struts2 tag.I want first rado button to be selected by default.But when i select the second radio button and hit on search button i want to retain the selection of that second radio button on search list
Radio Button in HTML
Radio Button in HTML is a type of input form that allows a user to select one button from a group of button. When a user clicks on a radio button, it becomes...; specifies the component type is radio button or not. If a programmer use type="radio
iPhone Radio Button Example
click on that button it get selected and by default it should display unselected...iPhone Radio Button Example  Can you please suggest me how to create Radio button in my iPhone application. Actually, in my application i have two
Struts 2 radio button value problem
Struts 2 radio button value problem  When I use s:radio tag in struts... gives first radio option's value as the value for any option selected. Ex: When 'Yes' is selected, value rendered is 1 Again for 'No' , the value is 1. Can
selected radiobutton to display different page
selected radiobutton to display different page  there are three radio button are there , in that selected button to display different page. when submit it, using struts2 framework . plz help me to how write code
forwarding request to a jsp when user clicks on back button in ie
forwarding request to a jsp when user clicks on back button in ie  Hi... of the application, We should not allow the customer to go back to the previous page. Can we forward request to a jsp page whenever user clicks on back button
java radio button and exception
java radio button and exception  Dear Sir/Madam, I have problem with my addBagelRadioButton and addCheeseRadioButton. There should be only 1 radio button can be selected, but somehow 2 can be selected the same time. Also, I
JSP view detail page on accept button click
JSP view detail page on accept button click  i Have 1 jsp page in that there r 2 button accept and view details when we click on aceept button it will submit to next page and when click on view details page it will shown the data
how to check the radio button automatically depending up on the value of database when editing the form...
button. When the user clicks the particular radio button, that data will get shown...how to check the radio button automatically depending up on the value... to highlight the radio button from the database.......nd even list box also can any
dependent radio button
,cookie,icecream. If I select all the other 3 should not able to be selected... to be selected. I should not able to select the three chocolate,cookie,icecream. If I... the all option and the already selected options should be deselected. How to do
passing value of radio button
passing value of radio button  hi,i have 3 jframe built using the GUi editor in net beans 6.9. i have two radio button in the first jframe.i have to get the selected item appear on the 3rd frame after passing through the second
How to identify the radio button id and row id in a table in jsp?
How to identify the radio button id and row id in a table in jsp?   function generateid(no) {var table = document.getElementById(tableID); var rowCount = table.rows.length
validation of radio button
validation of radio button  There are 3 radio button as A,B,W. there are another radio as 1,2,3.if we select W in first radio button then should select 2nd one(1,2,3).if we select A or B not need select any one from 1,2,3
Radio button Validation
Radio button Validation  Hi.. How to validate radio button in java?if the radio button is not selected an error message should be given... Please...()==false)){ JOptionPane.showMessageDialog(null,"Please select radio button
Drop down and radio button value on edit action
i get the value from the database for title and radio button selected for default Here's is my edt page code for dropdown and radio button. <td>...Drop down and radio button value on edit action  HI, I have
jsp :how to edit table of data displayed using jsp when clicked on edit button
jsp :how to edit table of data displayed using jsp when clicked on edit... want to delete this information in table when click on delete button and save the data when clicked on save button.. how can i do

Ads