The Java program that receives the form parameters should have the following main method declaration:
public static void main(String args[]) {
...
}
The args array of String objects will contain the
parameters sent from the Java program containing
the form declaration.
The individual strings in this array consists of the
name/value pairs as follows:
args[i] = "parameter_name=value"and the following code should extract the parameter value:
if (args[i].length() != 0) {
if (args[i].startsWith("parameter_name",0)) {
int pos = args[i].indexOf("=");
parameter_value = args[i].substring(pos + 1);
}
}