If I have 2 input fields in a jsp and i want them to be in sync always, I know the solution. Write an onchange event for each input field and call a function. This function will sync the two fields.
Now in my situation, the two input fields are in two different jsps. And they are both included in a third jsp. Is it still possible to sync the fields?
If both jsps result in a single html page, on client side you are still dealing with a single page. Approach described in question should work there.