嗨,任何人都可以帮助我,我整个晚上度过但是无法让它发挥作用:( 这是在我的web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Welcome</web-resource-name>
<description>Accersible by authorized user only</description>
<url-pattern>/Welcome.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>member</role-name>
<role-name>manager</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/Login.jsp</form-login-page>
<form-error-page>/wrongUser.jsp</form-error-page>
</form-login-config>
</login-config>
当我输入一个worng用户名或密码时,它将导致wrongUser.jsp(它必须连接到数据库),但是如果我输入正确的用户名和密码,它会显示: message对表单登录页面的无效直接引用 description客户端发送的请求在语法上是不正确的(对表单登录页面的无效直接引用)。
任何人都有问题它有什么问题吗?提前致谢