<form method="POST" action="forumaddservlet?button=add&forumid=<%if(getedfb.getForumid()!=null){%><%=getedfb.getForumid()%><%}%>" name="form">
<tr id="tableCell">
<td>
<select name="roleid">
<%
Enumeration erole = vrole.elements();
while (erole.hasMoreElements()) {
Object[] objj = (Object[])erole.nextElement();
%>
<%
if (roleid.equals(objj[0].toString())) {
%>
<option selected value="<%=objj[0]%>"><%=objj[1]%></option>
<%
} else {
%>
<option value="<%=objj[0]%>"><%=objj[1]%></option>
<%
}
%>
<%
}
%>
</select>
</td>
<td align="center" colspan="7"> </td>
<td align="center"><input type="submit" value="增加" /></td>
</tr>
</form>在代码最后一行,出现了小红叉的提示错误:
Multiple annotations found at this line
No start tag (<form>)
Invalid location of tag(<form>)
以下链接是 我在另一个帖子请教的别人,他们给的帮助,不过没解决问题:
{http://topic.csdn.net/u/20110404/09/dcb002cb-c8ec-4250-9b12-05745dd7b656.html}
{1} 请高手帮忙看看!
<tr id="tableCell">
<td>
<select name="roleid">
<%
Enumeration erole = vrole.elements();
while (erole.hasMoreElements()) {
Object[] objj = (Object[])erole.nextElement();
%>
<%
if (roleid.equals(objj[0].toString())) {
%>
<option selected value="<%=objj[0]%>"><%=objj[1]%></option>
<%
} else {
%>
<option value="<%=objj[0]%>"><%=objj[1]%></option>
<%
}
%>
<%
}
%>
</select>
</td>
<td align="center" colspan="7"> </td>
<td align="center"><input type="submit" value="增加" /></td>
</tr>
</form>在代码最后一行,出现了小红叉的提示错误:
Multiple annotations found at this line
No start tag (<form>)
Invalid location of tag(<form>)
以下链接是 我在另一个帖子请教的别人,他们给的帮助,不过没解决问题:
{http://topic.csdn.net/u/20110404/09/dcb002cb-c8ec-4250-9b12-05745dd7b656.html}
{1} 请高手帮忙看看!
你可以先判断完在拿来传值。
http://topic.csdn.net/u/20110404/09/dcb002cb-c8ec-4250-9b12-05745dd7b656.html
等待高手!!!
有时候就是这样的
这一行放到<table>前面,把</form>放到</table>后面就OK!总之要把table嵌入在form里面