JavaScript and JSP parameter issue
Hello,
I've got a portion of my JSP with id tags set to display:none on the HTML table cells.
All are defaulted to none, but upon selection of a radio button, one select menu will appear (prepopulated, hardcoded HTM).
e.g.
CRTOPS (0)
CEDF (0)
US - RE (0)
US - Non-RE (0)
Canada (0)
Puerto Rico (0)
Let's just pretend the"(0)" is a radio button, of a group calledlist.
If list item 2 is checked, a table cell will appear that houses the select menu, calledprincipalname.
At first I had 6 dropdown menus all set to principlename, but only the first set would have its parameter value returned to the ensuing page.
In other words, the list associated with the radio button value of CRTOPS would have its param value returned, but not the case for US-RE, Canada & Puerto Rico, etc. if their button was selected. The dropdown list would show, but the param value not returned.
In my JSP that is called from this page, I used the following:
<%
String list= request.getParameter("list");
String principalname=" ";//initialized to null
if (list=="CRTOPS "){
principalname = (principalname+(request.getParameter("principalname")))";
}
elseif (list=="CEDF "){
principalname = (principalname+(request.getParameter("principalname1")));
}
elseif (request.getParameter("list")=="USRE"){
principalname = request.getParameter("principalname2");
}
elseif (request.getParameter("list")=="USNONRE"){
principalname = request.getParameter("principalname3");
}
elseif (request.getParameter("list")=="CANADA"){
principalname = request.getParameter("principalname4");
}
elseif (request.getParameter("list")=="PUERTORICO"){
principalname = request.getParameter("principalname5");
}
%>
Down at the page, I've got
The dropdown name is: <%=principalname%><br>
Selected branch : <%=list%>
list will print and return the value, but not so principalname.
Any ideas why the parameter on the dropdown select menu won't get returned?
Thanks.

