struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Orme <to...@genome.med.harvard.edu>
Subject Struts 2/Spring and @Required
Date Mon, 06 Apr 2009 18:34:08 GMT
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


Mime
View raw message