我在myeclipse里写程序时有时出现“invlid location of tag(form)“请问这是为什么呀??

解决方案 »

  1.   

    你把标签加到网页中了没
     <%@ taglib uri="" prefix="" %>
      

  2.   

    我没有用到标签库呀  
    代码是这样的
    <form action="abc.jsp" method="post">
      

  3.   

    代码是这样的  希望大家多多帮助
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td height="22" colspan="2" align="center"
    background="images/tdbg.jpg">
    <div id="font1">
    登录入口
    </div>
    </td>
    </tr>
    <form name="form1" method="post" action="login.jsp">  //此处有警告提示

    <tr>
    <td width="37%" height="22" align="center">
    用户名:
    </td>
    <td width="63%">
    <input name="username" type="text" size="12">
    </td>
    </tr>
    <tr>
    <td height="22" align="center">
    密&nbsp;&nbsp;码:
    </td>
    <td height="22">
    <input name="password" type="password" size="12">
    </td>
    </tr>
    <tr align="center">
    <td height="30" colspan="2">
    <input  type="radio" name="select" value="student"
    checked>
    学生
    <input type="radio" name="select" value="company">
    企业
    </td>
    </tr>
    <tr align="center">
    <td height="30" colspan="2">
    <input type="submit" name="Submit2" value="进入">
    &nbsp;
    <input name="Submit" type="reset" value="重置">
    </td>
    </tr>
    </form>
    </table>
      

  4.   

    如果你确定没有错的话,在 preferences 中 MyEclipse 树状菜单下的有个叫验证的,全部给禁用掉。
      

  5.   

    应该是<html:form action="" method="post" ...>


    </html:form>吧
      

  6.   

    应该是 <html:form action="" method="post" ... >


    </html:form >吧
    还有就是<html:form ...>
                <table name="^0^" id="^o^"  >
                ...
                ...
                ...
                </table>
            </html:form>我想现在没有什么问题了吧?
      

  7.   

    把<form>调动到<table>外围,肯定ok