Hi friends,

Here is my question. This is what I am trying to do.

1) In refactorCGR.jsp

function popupKeywordAdditionJSP(regionID){
var handleToPopUp = window.open("/tigr/t4/admin/tinaController/AddKeywordsAction","popupWindow","status=1,locatio n=0,menubar=0,resizable=1,height=400,width=600,lef t=20,screenX=20,top=40,screenY=40");
}

function updateKeywordListBox(regionSelectControl){
var val= regionSelectControl.value ;
if(val==229000000){
document.getElementById("america").style.display=' ';
document.getElementById("europe").style.display='n one';
document.getElementById("asia").style.display='non e';
document.getElementById("japan").style.display='no ne';
}else if(val==229000001){
document.getElementById("america").style.display=' none';
document.getElementById("europe").style.display='' ;
document.getElementById("asia").style.display='non e';
document.getElementById("japan").style.display='no ne';
}else if(val==229000002){
document.getElementById("america").style.display=' none';
document.getElementById("europe").style.display='n one';
document.getElementById("asia").style.display='';
document.getElementById("japan").style.display='no ne';
}else if(val==229000003){
document.getElementById("america").style.display=' none';
document.getElementById("europe").style.display='n one';
document.getElementById("asia").style.display='non e';
document.getElementById("japan").style.display='';
}

}


<tr>
<td>
<select name="regionSelect" onchange="updateKeywordListBox(this)">
<c:forEach var="region" items="${bean.qsheetRegionBeanList}">
<option value="${region.id}">${region.name}</option>
</c:forEach>
</select>
</td>
</tr>

<tr id="america">
<td>
<select name="keywordSelect">
<c:forEach items="${requestScope.Amer}" var="keyword">
<option value="${keyword.id}">${keyword.keyword}</option>
</c:forEach>
</select>
</td>
</tr>

<tr id="europe" style="display: none">
<td>
<select name="keywordSelect">
<c:forEach items="${requestScope.Euro}" var="keyword">
<option value="${keyword.id}">${keyword.keyword}</option>
</c:forEach>
</select>
</td>
</tr>

<tr id="asia" style="display: none">
<td>
<select name="keywordSelect">
<c:forEach items="${requestScope.Asia}" var="keyword">
<option value="${keyword.id}">${keyword.keyword}</option>
</c:forEach>
</select>
</td>
</tr>

<tr id="japan" style="display: none">
<td>
<select name="keywordSelect">
<c:forEach items="${requestScope.Japa}" var="keyword">
<option value="${keyword.id}">${keyword.keyword}</option>
</c:forEach>
</select>
</td>
</tr>

<tr>
<td><input type="button" name="refactorCGR" value="Add Keywords"
onclick="popupKeywordAdditionJSP()" /></td>
</tr>


The updateKeywordListBox does the dunction of hiding each <tr> on selection any
value from regionSelect control.
When the user clicks the Add Keyword Buttons a new window pops up as per JScript
that i have written

2) Inside addKeywords.jsp

This Jsp is launched succesfully. Now here I do database transaction retreive
say 3 to 4 rows with checkbox. The user selects the desired rows which has
keywords.

I am able to capture the selected Keyword and in checkbox thier ID which is
primary key of that row.

<input type="submit" value="Add Checked Keywords" onclick="postDataToParent()"/>

Now on click of this Button I want to send the selected rows to the parent JSP.
And this keywords should be displayed in the right select control out of the
4 controls that are present in refactorCGR.jsp

I tried this

function popupKeywordAdditionJSP(){
window.opener.document.myForm.keywordSelect.value =document.forms[2].keyword.value;
window.close();
}


I am not able to pass the data and display this exactly in the right selectbox of
the parent refactorCGR.jsp


It is urgent. Please help.

Regards,
Nilz