标签 a 的无效位置,jsp 页面在 eclipse 中

invalid location of tag a, jsp page in eclipse

我在 JSP 页面上工作时收到 'invalid location of tag (a)' 消息。

<a href="abc.html">abc</abc> 此标签无法正常工作。

<form class="form-inline my-2 my-lg-0">
                <c:choose>
                    <c:when test="${sessionScope.SIGNIN_ID == null}">
                        <button class="btn btn-outline-success my-2 my-sm-0" type="submit">
                            <a href="signinForm.html">signin</a>
                        </button>
                    </c:when>
                    ...(I erased unnecessary part)
            </form>
        </nav>
    </header>

a 标签位于 body > header > nav > form > button > a.

我尝试在<form>之后添加<div>,在<form>之前添加<tr>``<td>,但还是不行。

我的 \lib 中也有 jstl 文件。有没有人可以帮忙?

HTML 中的 button 标签内不能有 a 标签。 href (signinForm.html) 在 button?

中,你想达到什么目的?