struts2的问题?
我使用struts2的一个疑问,大家觉得使用struts2的标签好用吗?排版方便吗?
类似这样的代码
<table width="575" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="27" height="55" bgcolor="#FFFFFF"> </td>
<td width="61" bgcolor="#FFFFFF" style="font-size:10.5pt">用户名:</td>
<td width="150" bgcolor="#FFFFFF"><s:textfield label="Customer Telephone Number" name="sLoginName" maxlength="10" cssClass="bginput" onkeydown="KeyDown()" />
</td>
<td width="57" bgcolor="#FFFFFF" style="font-size:10.5pt">密 码:</td>
<td width="154" bgcolor="#FFFFFF">
<s:textfield name="sPassword" maxlength="10" cssClass="bginput" onkeypress="if(event.keyCode==13) {return CheckLogin();}" />
</td>
<td width="126" bgcolor="#FFFFFF"><img src="images/index/sLogin.gif" width="49" height="21" border="0" onClick="return CheckLogin()" style="cursor:hand"> <img src="images/index/sReset.gif" width="49" height="21" onClick="document.forms[0].reset()" style="cursor:hand"></td>
<td rowspan="2"><img src="images/index/spacer.gif" width="1" height="70" border="0" alt="" /></td>
</tr>
</table>
已经很难排好版了,倒不如不用strtus2的标签,不用他的标签又体现不了struts2的好处,优点。
其次的问题,我难道只能用他action而已!
望各位大哥指点!大家都用struts2的那方面?