Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 44354 invoked from network); 8 Aug 2007 18:48:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 18:48:11 -0000 Received: (qmail 37157 invoked by uid 500); 8 Aug 2007 18:48:00 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 37128 invoked by uid 500); 8 Aug 2007 18:48:00 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 37117 invoked by uid 99); 8 Aug 2007 18:48:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 11:48:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [128.2.10.83] (HELO smtp.andrew.cmu.edu) (128.2.10.83) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 18:47:51 +0000 Received: from webmail.andrew.cmu.edu (WEBMAIL10.andrew.cmu.edu [128.2.10.167]) (user=smwamufi mech=GSSAPI (56 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id l78IlWE1005856 for ; Wed, 8 Aug 2007 14:47:32 -0400 Received: from 128.237.227.40 (SquirrelMail authenticated user smwamufi@ANDREW.CMU.EDU); by webmail.andrew.cmu.edu with HTTP; Wed, 8 Aug 2007 14:47:32 -0400 (EDT) Message-ID: <4149.128.237.227.40.1186598852.squirrel@128.237.227.40> In-Reply-To: <46B9FDC5.6060002@Newfield.org> References: <3490.128.237.227.40.1186590907.squirrel@128.237.227.40> <46B9F182.40707@Newfield.org> <3636.128.237.227.40.1186591761.squirrel@128.237.227.40> <46B9FA20.5050208@Newfield.org> <46B9FDC5.6060002@Newfield.org> Date: Wed, 8 Aug 2007 14:47:32 -0400 (EDT) Subject: Re: getting the value of a s:checkbox From: "Session A Mwamufiya" To: "Struts Users Mailing List" User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Scanned-By: MIMEDefang 2.60 on 128.2.10.83 X-Virus-Checked: Checked by ClamAV on apache.org I appreciate the explanation on how it's all supposed to work, but given my limited experience with struts 2 and this type of framework as a whole, I am not yet proficient enough to figure out where things are being generated. I use log4j to log a number of events in my code, but I don't even know how to display this type of request object logging you're presenting. I need examples to run with and understand how things work; going through this was helpful to get a big view, and I don't mean to be rude, but it still doesn't help me read the checkbox value. Is there a simple example I can follow? That's the best way I learn. Thanks, Session > Dale Newfield wrote: >> OK--now this request goes to your server. Hopefully eventually to >> struts. Struts then steps through the interceptors and eventually >> calls your action. The action does it's thing and selects a result. > > And this whole process can generate as many logs as you have log4j set up > to generate. For example, here's a piece from a log (in this case > generated because the request was multipart/included an upload) in my app > showing that there were two parameters found in the request corresponding > with the form's single checkbox: > > MultiPartRequest.parse(94) | Found item user.commentsPlain > MultiPartRequest.parse(96) | Item is a normal form field > MultiPartRequest.parse(94) | Found item __checkbox_user.commentsPlain > MultiPartRequest.parse(96) | Item is a normal form field > > Why were there two? Because s:checkbox generated not only an of > type checkbox, but also an of type hidden. These are both visible > in the html of the page with the form. > > How does having the __checkbox_user.commentsPlain parameter help? Well, > the "checkbox" interceptor notices that it's there, and if > user.commentsPlain is not, it does whatever it needs to to make the rest > of the process do the right thing. > > -Dale > > --------------------------------------------------------------------- To > unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional > commands, e-mail: user-help@struts.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org