Hey hi all,
I am new to jsp,servlets .. i am doing a small project on employee database management.
In this I have a form which has various fields. And also buttons for add,delete,update,next and previous. Now what I want is I click on previous it should retreive values from database .. its easy but then i want it to be displayed in the fields present in the form itself.
<input type="submit" value=" PREVIOUS" name="PREVIOUS" onClick="submitForm(this)"/>
this is calling the previous which is
else if(clickedbutton.name =="PREVIOUS")
{
// String s1=request.getParameter("EmployeeID");
// int i = Integer.parseInt(s1)-1;
// document.registrationform.EmployeeID.value='i';
// document.registrationform.Name.value;
}
now this is wat i wrote which is not working.
can u please help me go ahead.
thanks