[HTML]View Plaincopyprint?
- <span style="White-space:pre"></span><span style="White-space:pre"> </span><c:if Test="${sessionscope.errorcode!=null}">
- <span style="White-space:pre"> </span><c:if Test="${sessionscope.errorcode==0}">
- <span style="White-space:pre"> </span>pswd error.
- <span style="White-space:pre"> </span></c:if>
- <span style="White-space:pre"> </span></c:if>
Beginner Jstl, the main purpose is to replace the front-end JSP code, make it all HTML tags appear beautiful some ...
is still very simple, first sessionscope get the domain, and then determine whether errorcode is empty, I am here to determine whether the user login information is correct, through the servlet if the user information is wrong, the session will put a errorcode, Then to the front to determine the value of this errorcode, and according to the size of the value to display the relevant data
Here it is determined that if the value is 0, the user password is incorrect.
"JSTL" Determines whether the value in the session is empty