I didn't get the approach you are suggesting .
After making chnages and clicks on Update Button , i have a function named as updateEmployee() inside my jsp
Now please tell me how can i send this Modified EMployee DTO into this function ??
function updateEmployee()
{
// Need your help here ??
}
Thanks inn advnace .
Looking at the code, I'd say updateEmployee() is a javascript function. Maybe inside this function is where we try to send the data to the server using forms. And in the jsp/servlet end, we parse the sent data and translate it to the intended javabeans.
Maybe something like this:
But somethings not quite right here..you should'nt use JSP for your parsing and logic.. In MVC, JSPs are for view only. So might as well move your logic inside a servlet.
Thanks,
Ian