Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 72295 invoked from network); 6 Apr 2009 18:34:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2009 18:34:39 -0000 Received: (qmail 71820 invoked by uid 500); 6 Apr 2009 18:34:36 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 71774 invoked by uid 500); 6 Apr 2009 18:34:36 -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 71764 invoked by uid 99); 6 Apr 2009 18:34:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 18:34:36 +0000 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; Mon, 06 Apr 2009 18:34:29 +0000 Received: from [10.200.12.44] [10.200.12.44] by genome.med.harvard.edu with ESMTP (SMTPD-10.01) id AB201FFC; Mon, 06 Apr 2009 14:34:08 -0400 Message-ID: <49DA4B20.1030509@genome.med.harvard.edu> Date: Mon, 06 Apr 2009 14:34:08 -0400 From: Timothy Orme User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Struts 2/Spring and @Required Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello All, One of the nice annotation features of spring is the ability to annotate injected fields with @Required so that you don't get null pointer exceptions. However, I can only seem to get this to work with my test cases (spring throws an error when a required field isn't set), but I can't get the same behavior on the startup of my struts 2 web app. Does anyone know if it's possible for the web-app to break when an @Required field isn't set at startup? Thanks, Tim --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org