Suppose I have a login page, with username and password and submit button.
Is it ok to have something like the following?
is it ok to use struts html tags only for the input type form but not for
the others?
if the output of the tags is same as what I have here, why should I be
inclined to use, or is it a convention to use? or is it a personal choice?
<html:form action="/login.do" name="frm1"
type="mypackage.struts.login.LoginForm" focus="username">
<table cellpadding="4" cellspacing="2" border="0" align="center">
<tr>
<td colspan="2"><html:errors/></td>
</tr>
<tr bgcolor="#ebf5fe">
<td class="b" width="120">Username: </td>
<td><input type="text" name="username"
value="<%=request.getParameter("username")%>" size="20" maxlength="60"></td>
</tr>
<tr bgcolor="#ebf5fe">
<td class="b" width="120">Password: </td>
<td><input type="password" name="pwd"
value="<%=request.getParameter("pwd")%>" size="20" maxlength="12"></td>
</tr>
<tr>
<td> </td>
<td align="center"><input type="submit" name="submit" value="Login"></td>
</tr>
</table>
</html:form>
Regards,
Rumpa Giri