Below is COUNT SQL statement in jsp. As you can see my dropdown of studentlevel will display the count of each level. If a user clicks on one of the dropdowns, then if the studentlevel achieved the maximum number of 5 people the system will produce an alert message but I failed to do so. I think my method is wrong. Please help me to make it happen.
In this case I first check if the urser is already loged in, if so I redirect him to the homepage.
if not I bind the info of the loginform to a userobject and show the login page.
Then in the post method I can use the object I just created and filled with the info from the form and take apropiate actions based on that.
It's good to be able to use someting, it's better to understand how it works.