日期:2014-05-20  浏览次数:20590 次

如何将jsp 页面中的值(登陆名称)的值, 在js的函数中当作参数传递,怎么写 ???
请问 如何将jsp 页面中的值(登陆名称)的值, 在js的函数中当作参数传递,怎么写在user后面 ???
例如 jsp页面中 
<tr bgcolor='#F5F5F5' height="25">
 <TD nowrap class='TdLabel'>登录名称<font color=#FF0000>*</font></td>
 <td>&nbsp;
 <logic:empty property="userVO.userid" name="userManageForm" >
 <html:text property="userVO.username" maxlength="16" name="userManageForm" style="&quot; dataType=&quot;Require&quot; msg=&quot; 用户登录名称不能为空" styleClass="form-text" ></html:text>
 </logic:empty>
 <logic:notEmpty property="userVO.userid" name="userManageForm" >
 <html:text property="userVO.username" maxlength="16" name="userManageForm" readonly="true" styleClass="form-text" ></html:text>
 </logic:notEmpty>
</td>

在一个js的函数 中
function save()
{
window.open("http://mailserver:88/genius/DbSysSet.nsf/Ag_SelNewUser?openagent&user=<%????%>","_blank");

}

------解决方案--------------------
用document.getElementById("").value
------解决方案--------------------
彳亍