i mean to say- now there is one register page with fields such as first name, last name,username,.... ok. so now i will fill in the details and when i click submit button and say the register fails because of similar username already exists. now the remaining fields should not clear except the username. how do we achieve that? this s my code:
register.jsp:
This is servlet class:
RegisterServlet.java: