Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 67946 invoked from network); 10 Sep 2008 00:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2008 00:49:28 -0000 Received: (qmail 2491 invoked by uid 500); 10 Sep 2008 00:49:16 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 2363 invoked by uid 500); 10 Sep 2008 00:49: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 2352 invoked by uid 99); 10 Sep 2008 00:49:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 17:49:16 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.59.1.108] (HELO outbound.icp-qv1-irony-out1.iinet.net.au) (203.59.1.108) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 00:48:18 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsAAFu2xkh8qgg4/2dsb2JhbAAIsQwLAYZ0aAF7 X-IronPort-AV: E=Sophos;i="4.32,368,1217779200"; d="scan'208";a="382664320" Received: from unknown (HELO [10.1.1.3]) ([124.170.8.56]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 10 Sep 2008 08:47:47 +0800 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <712387.952.qm@web56701.mail.re3.yahoo.com> References: <712387.952.qm@web56701.mail.re3.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5AC119EA-3C9B-433E-A51B-7B3B1E722F12@iinet.net.au> Content-Transfer-Encoding: 7bit From: Mark Subject: Re: NullPointerException with Validation Messages Date: Wed, 10 Sep 2008 10:47:43 +1000 To: "Struts Users Mailing List" X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org Ok, that makes sense. How would I set that up? Right now, I have an index.jsp with the following: . This is so that someone accessing the site via http://localhost/ will be presented with the login page. Mark On 10/09/2008, at 10:20 AM, Dave Newton wrote: > Ah; there we go. The attached validation file in JIRA didn't have > the "key" attribute; threw me off. > > You're accessing the login page via the JSP, right? That won't > work. You should access it through an action so there's an action > on the stack so the getText() can be called on something that exists. > > You can either configure a class-less action in the XML or get at > it through dynamic method invocation: > > /${context}/login!input.action > > Dave > > --- On Tue, 9/9/08, Dave Newton wrote: >> --- On Tue, 9/9/08, Mark wrote: >>> No, I'm not using an tag. >> Should I be? >> >> Not if you don't need it. >> >> Does it work if you have the validation XML file's >> DOCTYPE w/o the trailing space after ".dtd "? >> >> How are you accessing the login page the first >> time--through an action? >> >> Dave >> >> >> --------------------------------------------------------------------- >> 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