As Chris pointed out, you cannot mix client-side and server-side operations.
Remember that any
Java in your
JSP pages is executed on the server to format the HTML page to send to the browser. Once the browser has the page, all Java (including beans) is long gone and you must perform operations using client-side technology, or submit a new request to cause server-side processing to create a new page.
bear