Here comes the problem.......onclick i am calling validate().....and since it is of type submit().........the form ACTION attribute also calls Addtask.jsp.......and this call is a must since i need to send some values to another JSP where in i access them using REQUEST.GETPARAMTER().......i need to use the ACTION attribute call...to do so....