I have a problem with jsp. I am developing login.jsp. in this all the code of login is written. If username and password is in database then ok, it is running, but I want to print "invalid login" when username & password doesn't match with that of database. How can I do this?
1
Expert's answer
2010-07-23T12:00:56-0400
Let there variable "isLogin" in jsp code, that contains true if username and password match with that of database and "username" contains user name entered.<% if ( isLogin ) { %> Hello, <%= username %> <% } else { %> Invalid login <% } %>
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment