开发者

Creating a login page using jsp

I am working on an online banking project. The issue when the user enters th开发者_Python百科e user name and password on the page then the validation is done on another page and i want to repopulate the start page with an error message. What is the method i need to follow.


put the message into your session object, on the 1st page check if that thing you put in there is not null, if not null display it


You might want to look into spring-security. It is easy to set up an error message with that framework. However I'm not sure if it's safe enough for online banking.

<c:if test="${not empty param.login_error}">
    <p>Your login attempt was not successful, try again.<br />
    <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />.</p>
</c:if>

c refers to the JSTL core library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜