页面的代码
<td class="content">
<c:if test="${japanese.isTest==1}">
<input type="text" name="U" value="${japanese.url }"/>
<a href="lestion.whtml">点击试听</a>
</c:if>
<c:if test="${japanese.isTest==0}">&nbsp;</c:if>
</td>
Action的代码
String U=request.getParameter("U");
request.setAttribute("url",U);
return mapping.findForward("SUCCESS");struts-config代码
<action path="/lestion"
type="action.EduCation.app.LestionAction">
<forward name="SUCCESS" path="/app/lestion.jsp" />
</action>
虽然好久没摸程序了。这个写法我认为绝对没有错。。可是在action中老得到空值 在页面中我把hidden改成text发现这个hidden绝对有值。但是在action却得不到。
请问还有其他得到表单值的方法吗?