You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mail-daemon <po...@euroinfobase.com> on 2001/03/23 13:12:43 UTC

Returned Mail: User Unknown

The following recipient did not receive this message: matthias.bild@euroinfobase.com

   ----- Original message follows -----

Received: from apache.org ([64.208.42.41]) by euroinfobase.com ( IA Mail Server Version: 3.2.4. Build: 1096 ) ) ; Fri, 23 Mar 2001 13:12:40 +0100
Received: (qmail 51091 invoked by uid 500); 23 Mar 2001 12:14:47 -0000
Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
Reply-To: struts-user@jakarta.apache.org
list-help: <ma...@jakarta.apache.org>
list-unsubscribe: <ma...@jakarta.apache.org>
list-post: <ma...@jakarta.apache.org>
Delivered-To: mailing list struts-user@jakarta.apache.org
Received: (qmail 50678 invoked from network); 23 Mar 2001 12:14:43 -0000
Received: from mailout1-0.nyroc.rr.com (HELO mailout1.nyroc.rr.com) (24.92.226.81)
  by h31.sny.collab.net with SMTP; 23 Mar 2001 12:14:43 -0000
Received: from apache.org (roc-24-93-14-35.rochester.rr.com [24.93.14.35])
	by mailout1.nyroc.rr.com (8.11.2/8.11.2) with ESMTP id f2NCC4T26676
	for <st...@jakarta.apache.org>; Fri, 23 Mar 2001 07:12:04 -0500 (EST)
Message-ID: <3A...@apache.org>
Date: Fri, 23 Mar 2001 07:14:40 -0500
From: Ted Husted <hu...@apache.org>
Organization: Apache Jakarta Project
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: struts-user@jakarta.apache.org
Subject: Re: db and forms
References: <20...@web10606.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

Let's see, 

Say you have a view named {page}.jsp

For each HTML form in your view, you would usually have an ActionForm 
bean. This gives you a place to store the user's input. 

Most people would name these classes {page}Form. 

Every HTML form is submitted to an Action. (Before Java, the Actions
were usually CGI scripts.) The form can use either the POST or GET
methods, as you prefer. Since Actions are just URLs, you can also
hardcode an Action as a hyperlink. In Struts, you would usually write an
Action class to handle these requests.

Most people would name these Java classes {page}Action. 

If your page actually offers several different but related Actions, you
can either handle them in a single Action class, or offer a seperate
Action class for each. This is an implementation decision. 

The Struts Action class has full access to the servlet, request, and
response, so you can check the parameters to the Action, and proceed
accordingly. 


********** Remainder of message body suppressed **********