Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 39534 invoked from network); 1 Feb 2005 10:47:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Feb 2005 10:47:49 -0000 Received: (qmail 23735 invoked by uid 500); 1 Feb 2005 10:47:29 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23718 invoked by uid 500); 1 Feb 2005 10:47:28 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 23705 invoked by uid 99); 1 Feb 2005 10:47:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hanson.char@gmail.com designates 64.233.184.207 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.207) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 02:47:27 -0800 Received: by wproxy.gmail.com with SMTP id 50so1030800wri for ; Tue, 01 Feb 2005 02:47:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=G6ce5avVpvGR4lJig4PVQO4wdWm7qCWw7kD46XMZln6WjHZyD7OF4HAzRFETMB3pZMO0fi+AHlhLmrPzmUS6J5JgW/7mOd2oRgmoO3KjRNB8WnCOmTkn1BgVXSrLlDlpJlpVBE+KI+6WBg+LDE4r1djnXgUHrDPlgTf9iS2XbA0= Received: by 10.54.41.50 with SMTP id o50mr128346wro; Tue, 01 Feb 2005 02:47:25 -0800 (PST) Received: by 10.54.26.6 with HTTP; Tue, 1 Feb 2005 02:47:25 -0800 (PST) Message-ID: Date: Tue, 1 Feb 2005 21:47:25 +1100 From: Hanson Char Reply-To: Hanson Char To: Struts Users Mailing List Subject: Re: struts and java script and jsp In-Reply-To: <00a301c50847$ff35bfe0$0801a8c0@europatrust.local> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <00a301c50847$ff35bfe0$0801a8c0@europatrust.local> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Then, where does it come up with "username"? Could it be that you have "username" specified in validator.xml ? H On Tue, 1 Feb 2005 11:22:48 +0100, Cedric Levieux wrote: > Hi, > > You have this JavaScript code cause you ask into the tag the > ability to focus on a form field. > > But btw I don't understand why the javascript code didn't work :p > > Regards, > > Cedric > ----- Original Message ----- > From: "Nadia Kunkov" > To: "Struts help (E-mail)" > Sent: Tuesday, January 25, 2005 5:20 PM > Subject: struts and java script and jsp > > Hi, > > I'm not sure if this question is really about struts even though it occures > in my struts application. My apologies if this is a bit off topic. > I have a jsp logon page with two input fields "userId' and "password" > I of course have a corresponding ActionForm with the same attributes. > When I open my Logon page in Mozilla I have no problem whatosever. > When I open it in IE it's done with errors on page and I have the following > message: > document.forms["logonForm"].elements["username"].type is null or not an > object > > When I looked at the page source I saw the following javascript added: > > > I'm wondering why this javascript is being added and does it have anything > to do with struts? > Also, could the problem be that it refers to element["username"] that does > not exist in my jsp, since I have "userId"? > Then, where does it come up with "username"? > How do I get around it? > Should I change my form to have "username"? > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org