again on your bussiness logic....... send the name parameter to the database get the value of the in the jsp page as boolean if it exists then get true ..if get true than show that it is already exists
well in more appropriate way jsp use only for geting info and receive perameter in the servlets and a simple java class is used for database connectivity and methods make the object of java class in servlet and send response back to jsp page
previously i used following code to validate username and password.
But now i am using struts , how can i get username and pwd instead of reques.getParameter()
I know there is getUsername() and getPassword() in ActionForm.
My question is , i need single line how to assign getUsername() and getPassword() to string variable.