Hi,
In my JSP page i have hyper text link. Below that link i will have 3 radio buttons. When user click on the hyper link i want pass the value of selected radio button as a query sting with the URL i mention at <a href="url"> tag.
Here is my code but it's not working, i am getting envType value as null
<BODY>
<%
String envtype = request.getParameter("envType");
%>
<TABLE width=600 BORDER=0>
<TR>
<TD><a href="/iaInformation/index.do?envType=<%=envtype%>" ><bean:message key="mwr.link.msg.whows.rpt" /></a></TD>
</TR>
<TR>
<TD class='normal'><input TYPE="radio" NAME="envType" VALUE="T" checked>Test Environment (T01, T02, T03, T04)</TD>
</TR>
<TR>
<TD class='normal'><input TYPE="radio" NAME="envType" VALUE="Q" >QA Environment (Q01)</TD>
</TR>
<TR>
<TD class='normal'><input TYPE="radio" NAME="envType" VALUE="P" >Production Environment (P01)</TD>
</TR>
</TABLE>
</BODY>
Please correct me if i am doing wrong.
I appreciate ur help!
Thanks
<html>
<head>
<script>
function addData(){
var envType = "T";
if(document.index.envType[
if(document.index.envType[
document.links[0].href = "/iaInformation/index.do?e
}
</script>
</head>
<body>
<a href="#" onclick="addData();" >