Originally posted by adeel ansari: yeah why not. but you request the servlet and get the response from it then show the message to user. and what you are showing is, "please enter the user name" which user knows already. isn't it time taking. this should be on the client end, so the user gets the mistake quickly.