Hi,
from my first jsp I call with javascript another jsp for select one item from a table,the second jsp update two attribute in the first one jsp. My problem is that :I desire to re-use the second jsp in many situations, but with my code i can't.
This is the first jsp :
.....
<tr>
<td>Articolo</td>
<td><html:text property="moaridDesc" /></td>
<td><html:hidden property="moarid" /></td>
<td><html:input type="button" name="choise"
onKlick="window.open('<thtml:rewrite page='/artgest.do?do=ricerca'/>', ' ', width=500,height=400, top=100, left=700');" value="Ricerca"></td>
</tr>
......
This is the second jsp :
.....
<SCRIPT language="Javascript">
function sendValue(arId, arcodi) {
window.opener.document.movimentoBeanForm.moarid.value=arId;
window.opener.document.movimentoBeanForm.moaridDesc.value=arcodi;window.close();
}
.....
<logic:interate name="articoloBeanForm" property="articoloDOL" id="articolo" >
<tr>
<td>
<a href='javascript
nKlick=sendValue(<bean:write name="articolo" property="arId" />,
"<bean:write name="articolo" property="arcodi" /> ")'>
<bean:write name="articolo" property="arcodi" /> </a>
</td>
</tr>
.......
The application works well, but the code inside sendValue reports only to movimentoBeanForm.
Any idea for resolve the problem?
Thanks.