Solved

Passing value of Radio button from one page to another

Posted on 2006-10-30
2
224 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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
JAVA API design with micro service cloud in mind 1 74
running on tomcat not jboss eap 7.0 3 28
passing enum to a method 4 34
Java array 21 75
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 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