下面是jsp程序片斷:jsp
<s:form id="startForm" name ="startForm" action="/hall/hall_search.do" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="5" class="tab1">
<tr>
<td width="70" class="main-td1"><s:text name="room.lable.name"/></td>
<td width="180" class="main-td1"><s:textfield name="room.name" var="drn" class="wenbenkuang" /></td>
<td width="70" class="main-td1"><a href="${contextPath}/hall/hall_search.do?room.name=${room.name}" class="anniu-cx"><s:text name="common.lable.search"/></a></td> post
</tr>
</table>
</s:form>spa
文本框中輸入了內容,爲何單擊search按鈕時,s:textfield中的文本內容沒有賦值給Action中的room.name?跟蹤檢查時發現room.name爲空字符串orm