Yes, writing a java-cgi is no different from writing a perl-cgi, except that you use a different editor :-). The parameters will be there.