Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Passing value of Radio button from one page to another

Posted on 2006-10-30
2
Medium Priority
?
241 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
1 Comment
 
LVL 11

Accepted Solution

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

karan
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
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 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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

783 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