Form
Applet Name: Form
Applet Source: form.java
Import(s): java.awt, java.io, java.net, java.util
Feature(s): GUI, network, mouse, keyboard
Author: Thomas
Wendt
The applet uses java as a form substitute and shows how to transfer small amounts of data to the server without the need of sockets or cgi-scripts. The applet is somewhat crippled because of the restrictions of current browsers. They don't allow sending email because of security.
fgco=int[3] Foreground color as RGB valuee(black) bgco=int[3] Background color as RGB value (gray) desc=String Question for Checkbox (Question) subj=String Fixed subject of message (Form) comment=String Label for Textarea (Comment) href=String recipient script/base path (don't send) type=String email, cgi (statistics) recip=String email address of recipient (don't send) buttons=String[2][]n Button desc/transmit (Answer,x) Example:
<applet code="form.class" width=450 height=150> <param name="fgco" value="0,0,0"> <param name="bgco" value="0,127,255"> <param name=desc value="Do you like our Applets?"> <param name=subj value="Applets (e)"> <param name=comment value="Your Comment:"> <param name=recip value="java@mt.e-tchnik.uni-kassel.de"> <param name=href value=http://www.uni-kassel.de/fb16/ipm/mt/"> <param name=buttons value="Yes,yes,-No,no"> </applet>