The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


POST of applet data along with data of native controls (take 2)

Posted by Virgil Mocanu on September 17, 2000 at 12:03 PM

Is there a way to perform a POST of Java applet data along with the data of other (native) controls on the same HTML page?

Basically, what I want to do, is:
1) Write my a user control in Java.
2) This control will be placed in a HTML document as an APPLET along with other native controls such as INPUT controls.
3) The user fills in the data in these controls (both native as well as Java applet) and then the he/she presses the "Send" button for the form.
4) The browser should send the values from the native controls (like INPUT) as well as the data found in the Java applet controls.
5) The browser should send all these values as a single data stream using the POST protocol (not 2 separate connections on 2 separate ports).

How can this be done?
Can this be done all in one POST request?
Is it necessary to use Java servlets?
Is there a way to combine Java Script with Java code to acheive this result?
Is there a way for the Java applet to read the values of all the other native controls on the page and then consolidate the POST into a single stream?
Is there an RFC for this browser-applet interaction? If not, there should be one.

Many thanks in advance.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us