Solved

Passing value of Radio button from one page to another

Posted on 2006-10-30
2
192 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
Comment Utility
<logic:equal name="AddressForm" property="personal"
value="<% =radioValue %>">
Try this.

karan
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now