File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Passing Bean objects to JavaScript Objects....
 
Similar Threads
Reimplementing parts of my app with DWR
Regarding c:set target variable
Caching remote reference
send object to java?
Using Java Objects in AJAX??