BZJavaTalk
Programmer
Here is a really triva question for all the Exports.
I have written JSP pages on my Web Server that have HTML, Java Beans, and JavaScript embedded within. I am looking at adding a Java 2 Swing Applet to the JSP page also. This I know how to do and even add the Plug-IN for Suns JVM so the Applet can run in the Client Browser.
What I am trying to figure out is how to send an object (data collected by the Applet controls that the user entered) back to the JSP page so the Bean can update the information on a SQL database. Collecting the data and creating the object is no problem and updating the data found in the object to a MS SQL database via stored procedures is not a problem and I can do that in my beans. I can pass a string or an integer by calling Applet methods from JavaScript, but has anyone done this with Objects? Can I pass Arrays or Vectors? Also, how can I pass the object data from JavaScript to my JSP bean. It seams that there is no way to update the server side variables in the JSP from JavaScript? My clients would be using Netscape 4.0 or higher or MS Internet Explorer 5.0 or higher. Do any experts out there have any suggestions?
Before I started using JSP pages, I wrote an Applet communicating with an Servlet, but I do not want to use servlets for this communication. I was able to write a stream of objects between Servlets and Applets. I really am looking at going from Applets to my web page JSP beans.
Any feedback is very much appreciated.
I have written JSP pages on my Web Server that have HTML, Java Beans, and JavaScript embedded within. I am looking at adding a Java 2 Swing Applet to the JSP page also. This I know how to do and even add the Plug-IN for Suns JVM so the Applet can run in the Client Browser.
What I am trying to figure out is how to send an object (data collected by the Applet controls that the user entered) back to the JSP page so the Bean can update the information on a SQL database. Collecting the data and creating the object is no problem and updating the data found in the object to a MS SQL database via stored procedures is not a problem and I can do that in my beans. I can pass a string or an integer by calling Applet methods from JavaScript, but has anyone done this with Objects? Can I pass Arrays or Vectors? Also, how can I pass the object data from JavaScript to my JSP bean. It seams that there is no way to update the server side variables in the JSP from JavaScript? My clients would be using Netscape 4.0 or higher or MS Internet Explorer 5.0 or higher. Do any experts out there have any suggestions?
Before I started using JSP pages, I wrote an Applet communicating with an Servlet, but I do not want to use servlets for this communication. I was able to write a stream of objects between Servlets and Applets. I really am looking at going from Applets to my web page JSP beans.
Any feedback is very much appreciated.