IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes Passing Bean objects to JavaScript Objects.... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Passing Bean objects to JavaScript Objects...." Watch "Passing Bean objects to JavaScript Objects...." New topic
Author

Passing Bean objects to JavaScript Objects....

Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
Hello,
Is it possible to pass on an JavaBean object reference to a JavaScript object... so that i can manipulate and restore the changes back to the
JavaBean object?
please advise..
Thanks...


Best regards,<br /> <br />vanchin
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
You mean in JSP ?
Yes, you can pass the value of javabean to javascript provided javascript can understand it but not the vice versa.


Spritle Software Blogs
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
yes, actually there is a JavaBean object in a JSP page. The bean contains a password property. I want to pass the password property value to a class object in JavaScript to compare with the re-entered password by the user.
The JavaScript file is refered by the 'src' attribute of the 'script' element.
pl. advise...
 
 
subject: Passing Bean objects to JavaScript Objects....
 
Threads others viewed
Using Java Objects in AJAX??
Regarding c:set target variable
send object to java?
Caching remote reference
Reimplementing parts of my app with DWR
IntelliJ Java IDE