转发问题?
小弟的目的是要在jsp中接受参数后又一个传发功能
我是这么写的
<%String tablename = (String)session.getAttribute("table");
%>
<input type=hidden name = tablename value = <%=tablename%>>
<script language="JavaScript">
function sg(gid){
if(document.tablename.value == "document_receive")
{location="http://localhost:8080/document/updatedocument_receive.jsp?id="+gid;}
if(document.tablename.value == "document_send")
{location="http://localhost:8080/document/updatedocument_send.jsp?id="+gid;}
}
如次调用out.println("<TD><A href=javascript:sg('"+j+"')>"+s+"</A></TD>");
可是结果不对
给个理由?