wood burning stoves 2.0*
The moose likes Applets and the fly likes Converting JavaObject to JavaScript and reading it from an Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Converting JavaObject to JavaScript and reading it from an Applet" Watch "Converting JavaObject to JavaScript and reading it from an Applet" New topic
Author

Converting JavaObject to JavaScript and reading it from an Applet

Vedar Smith
Greenhorn

Joined: Dec 28, 2010
Posts: 2
Hi all! I'm a bit stuck with this concept that I've been working on and I'm looking for some sort of guide on this.
Essentially this is the problem:

Bean retrieves data from database and I need to store it as a hidden field on a webpage.
The user then must authenticate the data using an applet.
The resulting authenticated object is then sent to the database.

So i'm stuck at this paradigm:

Bean -> Html & Javascript -> Applet

I think I can figure out the upload issue later, thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18152
    
    8

The first thing to realize that you can only store text strings in hidden fields. So your first task would appear to be to convert this undescribed "bean" into a text string.
Vedar Smith
Greenhorn

Joined: Dec 28, 2010
Posts: 2
Yeah... I just figured that out and I'm working around it as I write. I'm also trying to use JSObject for reading the Javascript function return value right now. How do you get the value out of the enclosed type?

from what I gather the return type seems to be JSObject.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting JavaObject to JavaScript and reading it from an Applet
 
Similar Threads
simple questions
Getting back information from a JavaBean in a JSP page
Servlet to applet communication
Save elements from JList into mysql
Creating an HTML table in a Bean