Click to See Complete Forum and Search --> : setting a bean from javascript


cocabc
01-31-2003, 09:58 AM
I know that javascript is client side and beans are client side but does anyone know how I might be able to set a value in a java bean from javascript. I am creating a print friendly version of a screen where a user can change some values. If they change any values I need to determine the change and forward it to another JSP for printing.
Thanks.

khalidali63
01-31-2003, 10:13 AM
I have not used LiveConnect much,therefore, not sure if you can directly use JavaScript to pass a value to a bean.
I know this though.
You can use JSP+JavaScript and pass a value to a bean.

JavaScript passes the value to jsp page.
jsp then sets the value to a beans setter or any other method.

This I know you can do.

Khalid