File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
booking-mvc/src/main/webapp/WEB-INF Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 65
65
66
66
< div class ="error " th:if ="${param.login_error} ">
67
67
Your login attempt was not successful, try again.< br /> < br />
68
- Reason: < span th:text ="${session[__${lastExceptionKey}__].message} "> Invalid password</ span >
68
+ < span th:if ="${session} and ${session[__${lastExceptionKey}__]} ">
69
+ Reason: < span th:text ="${session[__${lastExceptionKey}__].message} "> Invalid password</ span >
70
+ </ span >
69
71
</ div >
70
72
71
73
< form name ="f " action ="# " th:action ="@{/loginProcess} " method ="post ">
78
80
< label for ="j_username "> User:</ label >
79
81
< br />
80
82
< input type ="text " name ="j_username " id ="j_username "
81
- th:value ="${param.login_error} ? ${session[__${lastUsernameKey}__]} : '' " />
83
+ th:value ="( ${param.login_error} and ${session}) ? ${session[__${lastUsernameKey}__]} : '' " />
82
84
</ p >
83
85
84
86
< script type ="text/javascript ">
You can’t perform that action at this time.
0 commit comments