Can I reference a bean within a JavaScript function in a JSP Page. I have used <jsp:useBean .. /> as a instance of a bean, and I would like to control the client side graphics using JavaScript <SCRIPT> … </SCRIPT>. At the end of the processing I would like to have the Java Script use methods/variables in the bean.

Govind Seshadri

Sure, if you have an engine that supports JavaScript as the scripting langauge, you should be able to access your beans within your JavaScript functions.

You may want to check out Resin from caucho.com, which allows you to use either Java or JavaScript as the scripting language. Also, for details on accessing beans from within JavaScript functions, see:

http://www.caucho.com/products/resin/jsref/wrap.xtp

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact