Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 50063 invoked from network); 15 May 2000 04:31:15 -0000 Received: from domino.sdyn.com (207.92.48.20) by locus.apache.org with SMTP; 15 May 2000 04:31:15 -0000 Received: by domino.sdyn.com(Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) id 852568E0.0018881C ; Mon, 15 May 2000 00:27:57 -0400 X-Lotus-FromDomain: SDYN From: "Albert James" To: tomcat-user@jakarta.apache.org Message-ID: <852568E0.0018863A.00@domino.sdyn.com> Date: Mon, 15 May 2000 00:27:51 -0400 Subject: CGI.pm for JSP Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, (sorry if someone asked this already, I just got on the list) (1) Does CGI.pm for JSP exist? That is, in CGI.pm I always used to have perl scripts submit to themselves. If required fields were left blank, the form would redisplay and any textfields, selects, checkboxes, radios, etc. would be prefilled automatically (so long as I used the CGI.pm shortcuts). I am looking for the same functionality within Java. (The action of the form points to a servlet which does a forward to the appropriate JSP). I found the formtags tag library, but that seems to work with a bean, not with the request object. So, I created a bean with all the attributes of the form (whew!), and it seems to be working off and on for the text areas. Except it has raised some issues: (2) From within a JSP, one can do useBean and then setProperty *. This will set the bean up with any input from the request object. With my design, the servlet makes the decision, so the servlet must create the bean. I have not found a way to simulate the setProperty * from within Java. Is there a way? Should I be doing it? Maybe someone can point me to some good documentation for this subject? The info that I have found by searching and the info on the jakarta site is sketchy. The product (and APIs) seem awesome, I just wish I better knew how to use them. Its a tough transition from Perl/CGI/mod_perl. ... Kind Regards, Albert.