Solved

Passing value of Radio button from one page to another

Posted on 2006-10-30
2
220 Views
Last Modified: 2010-03-31
I have a radio button in one page. I have gathered that value in the action class on the click of submit. The using request.setattribute I have passed that value to ther next page. I could display the value from next page using system.out.println in a scriplet. I need to assign that valut to an other radio button in the current page. Here I assigned it to the value attribute using an expression. It is not working.

The code is given below.

<%
      String radioValue=(String)request.getAttribute("radioValue");
      System.out.println("JSP Value from request is "+radioValue);
%>

<logic:equal name="AddressForm" property="personal" value="<%=radioValue%>"> --> Value is not getting assigned.
<html:radio property="personal" value="set" checked/> &nbsp;&nbsp;Student Personal<br><br>
</logic:equal>
0
Comment
Question by:rmvprasad
2 Comments
 
LVL 11

Accepted Solution

by:
Manish earned 125 total points
ID: 17840182
<logic:equal name="AddressForm" property="personal"
value="<% =radioValue %>">
Try this.

karan
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
sql import cannot be resolved jsp 3 45
how to debug htl and js pages 8 39
learn programming 8 37
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question