This is my main window

<SPAN style="COLOR: green"><script language=javascript>
function PopWindow(URL,height,width)
// alert("in popwindow");,height+width,"width="+width+",height="+height+",resize=no,resizable=no,scrollbars=yes,menubar=no,status=no");



String StudentID=request.getParameter("id2");



<form method="Post" name="f1" action="">
<table border=0 align=left>
<td align=left><b><font color="maroon" size=3>&nbsp;|&nbsp;</font></b>Student ID</td><td><input type="text" name="StudentID" value="<%StudentID%>" size="20">&nbsp;&nbsp;&nbsp;&nbsp;<A HREF=Javascript:PopWindow(" ><img src="images/search.gif" border=0></a></td>
<!-- end of table -->

this is my pop up window code

<c:forEach var="i" items="${bean.studentid}">
<a href=>&id2=<c:outvalue='${i.key}'/>onclick=window_close() ><c:out value="${i.key}"/></a></td>
<td><c:out value="${i.value}"/>

but when the window is closed the value is not retrieved in main window ..can any one help me up
i am getting value in system.out.println();
but not in text box(input box)

function doZoomback(sourceobj, destinationObj)
    }function doZoom(obj)
    {"Zoomin.jsp?txttest=" + obj.value)
        <TEXTAREA name="txtTest"><%=request.getParameter("txttest")%>
        <input type="submit" name="cmdOK" value="OK" onclick="parent.doZoomback(txtTest,opener.document.all.txttest)">

The above program is similar to ur program so i think it will solve ur problem..

leave ur comment to my id

commented: Please do not mix-up Java with JavaScript -1

Mixing Java and JavaScript what a bad idea...