two jsp page: parent.jsp, popup.jsp
in parent.jsp, use html link to open popup.jsp, don't want to use get method to pass parameters. For example, parent has staff name, staff id,
popup.jsp has a dropdown list to display staff name with value of staff id.
I want to get the value of parent's staff name and id using javascript
variables: var staff_name = opener.document.staff_name.value; var staff_id = opener.document.staff_id.value, then using
out.println("<option value=staff_id>staff_name</opotion>") to display the value in the dropdown list.
my question is I cannot display staff_id and staff_name properly. I know something wrong with out.println() function, but how to fix it?
Any suggestions are welcomed!
in parent.jsp, use html link to open popup.jsp, don't want to use get method to pass parameters. For example, parent has staff name, staff id,
popup.jsp has a dropdown list to display staff name with value of staff id.
I want to get the value of parent's staff name and id using javascript
variables: var staff_name = opener.document.staff_name.value; var staff_id = opener.document.staff_id.value, then using
out.println("<option value=staff_id>staff_name</opotion>") to display the value in the dropdown list.
my question is I cannot display staff_id and staff_name properly. I know something wrong with out.println() function, but how to fix it?
Any suggestions are welcomed!