当前位置: 代码迷 >> J2EE >> 哥哥姐姐们小弟有一有关问题
  详细解决方案

哥哥姐姐们小弟有一有关问题

热度:171   发布时间:2016-04-22 02:37:07.0
哥哥姐姐们小弟有一问题
<tr>
  <td colspan="2" align="left" valign="top">
  <img src="images/<bean:message key='system.backgroud'/>" border="0" usemap="#Map">
  <html:form action = "login.do" focus="username">
<table border="0" class="tb1">
<logic:notEmpty name="error">
<tr>
<td colspan="2" align="center">
<bean:message key='user.login.error'/>
</td>
</tr>
</logic:notEmpty>
<tr>
<td align="right"><bean:message key="user.username"/>:</td>
<td><html:text property="username" value="admin" styleClass="it"/></td>
</tr>
<tr>
<td align="right"><bean:message key="user.password"/>:</td>
<td><html:password property="password" value="admin" styleClass="it"/></td>
</tr>
<tr>
<td colspan="2" align="center" height="30">
<html:button property="lgoin" onclick="login()">
<bean:message key="user.button.login"/>
</html:button>
<html:reset>
<bean:message key="button.reset"/>
</html:reset>
</td>
</tr>
</table>
</html:form>
  </td>
  </tr>
 把以上代码换成struts2的标签 那位朋友 麻烦浪费点时间帮忙下 小弟不胜感激

------解决方案--------------------
<s:if test="#error== ''">
</s:if>
替换<logic:notEmpty name="error">


------解决方案--------------------
struts2标签这里有
http://student.csdn.net/space.php?uid=114894&do=blog&id=7026
  相关解决方案