将Spring安全登录表单嵌入到现有页面
如何将spring安全登录表单添加到现有页面 例如,假设我有以下test.jsp页面(它不是spring登录表单页面):将Spring安全登录表单嵌入到现有页面,spring,spring-mvc,spring-security,Spring,Spring Mvc,Spring Security,如何将spring安全登录表单添加到现有页面 例如,假设我有以下test.jsp页面(它不是spring登录表单页面): 现有页面 我想将我的spring-security.xml中配置的登录表单添加到登录表单div中。通常我认为人们只是将表单放在页面中(即,在您的div中)。类似于: <form id="blah" action="/j_spring_security_check"> <input type="text" name="j_username" />
现有页面
我想将我的spring-security.xml中配置的登录表单添加到登录表单div中。通常我认为人们只是将表单放在页面中(即,在您的div中)。类似于:
<form id="blah" action="/j_spring_security_check">
<input type="text" name="j_username" />
<input type="text" name="j_password" />
<input type="submit" name="submit" value="login" />
<input type="reset" name="reset" />
</form>
然后使用css使其适合应用程序其余部分的外观
<form id="blah" action="/j_spring_security_check">
<input type="text" name="j_username" />
<input type="text" name="j_password" />
<input type="submit" name="submit" value="login" />
<input type="reset" name="reset" />
</form>