This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Ive got a servlet, database and jsp consiting of; connection to postgres with a method that will pass username and password to it. From this it will then be called in the servlet to create an if loop to check if the password and username match, from this a boolean variable in the person class, is changed to true and the servlet will redirect. The jsp is to show the form. this is the breakdown of how it goes:
here is the servlet (note it isnt finished but the logic i talk about before will be implemented
and finally the jsp
Our problem is in the servlet the if statement, i am unsure of what to pass and whether to have a .equals class. If so how do i show that active(boolean variable in person class) is true so that it can redirect them to their profilePage or redirect them appropriately!
Many thanks in advance,
p.s will be highly appreciated!