Embed Spring Security login form to an existing page -
how add spring security login form existing page?
for example, let's have following test.jsp page (which not spring login form page):
<html> <head>existing page</head> <body> <div id="login-form"></div> </body> </html>
i add login form configured in spring-security.xml inside login-form div.
typically believe people put form right in page (i.e. within div have there.) like:
<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>
then use css make fit , feel of rest of application.
Comments
Post a Comment