Solved

Passing value of Radio button from one page to another

Posted on 2006-10-30
2
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…

626 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