Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 66667 invoked from network); 27 May 2008 17:41:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 17:41:24 -0000 Received: (qmail 94216 invoked by uid 500); 27 May 2008 17:41:16 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 94189 invoked by uid 500); 27 May 2008 17:41:16 -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 94172 invoked by uid 99); 27 May 2008 17:41:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 10:41:16 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [134.174.159.105] (HELO genome.med.harvard.edu) (134.174.159.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 17:40:29 +0000 Received: from BPFDESKTOP2 [10.200.13.162] by genome.med.harvard.edu with ESMTP (SMTPD-9.23) id A79C03DC; Tue, 27 May 2008 13:40:44 -0400 From: "Michael Gagnon" To: "'Struts Users Mailing List'" Subject: FW: password> Problem Date: Tue, 27 May 2008 13:40:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcjAHVrMWuscqDUOQ9up7JNrC4/fOQAAGMmQAAA+lfAAAHu9IA== Message-Id: <200805271340472.SM04768@BPFDESKTOP2> X-Virus-Checked: Checked by ClamAV on apache.org Single line breaks were dropped by Outlook...reposting for readability -----Original Message----- From: Michael Gagnon [mailto:mgagnon@genome.med.harvard.edu] Sent: Tuesday, May 27, 2008 1:24 PM To: 'Struts Users Mailing List' Subject: RE: password> Problem The form could just not require the user to enter a password then. So, you'd have a change password (call this A) and change password confirmation textboxes (call this B) and: 1. If A has a non-null value that is not equal to B, display an error 2. If A has a non-null value that is equal to B, submit the form 3. If A has a null value, regardless of B, submit the form 4. In the update action, if password is null, do not update this field 5. In the update action, if password is not null, change the value in the DB (from the above, this will only occur when both A and B had matching non-null values) -----Original Message----- From: Himanshu Rathore [mailto:techsawi@gmail.com] Sent: Tuesday, May 27, 2008 1:16 PM To: Struts Users Mailing List Subject: Re: password> Problem Hey Michael, I have a update page wherein I'm displaying the information as stored in DB. Situtation can be that user may or may not want to change/update the password. I can't user to enter his existing password. So what are the options? On Tue, May 27, 2008 at 6:51 PM, Michael Gagnon < mgagnon@genome.med.harvard.edu> wrote: > I'd imagine that's all that separates s:password from s:textfield > If you want the text to be visible, use s:textfield or s:property instead > > But certainly if you're going to require that the password be shown as > stars > instead of plain text, then you don't want to be sending the plain text > value along to the client side. If you're making an 'update account values' > type page where you can change your password, then you should have 2 blank > s:password fields. One to enter the new password and one to confirm. > Assuming you want to redisplay this page when submitting, then you should > acknowledge the change with a status message at the top of the page saying > 'password successfully updated' or something to that effect. > > Do you have some different specification that doesn't fall into these > patterns? > > -----Original Message----- > From: Himanshu Rathore [mailto:techsawi@gmail.com] > Sent: Tuesday, May 27, 2008 8:06 AM > To: Struts Users > Subject: Problem > > Hi, > > The data set in password field is not displayed on jsp. In my bean, the > value is set properly after retrieved from db but when page is displayed > I'm > not able to see it. > > May be this is security feature but it might not be acceptable by client. > Is > there way around? > > -- > -- > Regards, > Himanshu Rathore > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- Regards, Himanshu Rathore --------------------------------------------------------------------- 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