java表达式与隐藏域


<%String hdlx = request.getParameter("hdlx");
 %>

<s:form id="editForm" action="xlgzxxtjcxAction_search" enctype="multipart/form-data" target="_parent" namespace='/bd'>
<s:hidden name="search" value="1"/><!--
color:#f2f2f2;
-->
<div id="hdlx1"><%=hdlx %></div>
<s:hidden name="hdlx" id="hdlx"/>
 <script type="text/javascript">
 $(function(){
 var a =document.getElementById("hdlx1").innerHTML;
 document.getElementById("hdlx").value=a;
 document.getElementById("hdlx1").innerHTML="";
 })
 </script>

你可能感兴趣的:(java)