Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
Er... The "validation" interceptor? Yeah, you're right, duh! I didn't realize that the validation interceptor is actually the AnnotationValidationInterceptor class :-P - To unsubscribe, e-mail: user-unsubscr...@struts.ap

Re: Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
ges, I just can't figure out which one it is :-( Thanks! Steven Dave Newton wrote: Steven Hansen wrote: Is there anyway to manually check possible validation errors on this action as if it were called by the Validation interceptor? The previous answer was partially correct, depending o

Manually Checking Validation Errors on an Action

2009-06-11 Thread Steven Hansen
Hi, I'm trying to test some basic validations on an action: public class CreateUserAction extends ActionSupport implements ModelDriven { private User user = new User(); private IUserDao userService = new UserDao(); public String execute() { if ( this.userService.save

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Steven Hansen
I came to Struts2 from Rails. Rails (ruby especially) is really nice. It is very interesting to compare w/Java and Struts2 / Hibernate / Maven / Spring / Junit. There also tons of great books out there on ruby and or rails ' -Steven Bhaarat Sharma wrote: Guys, I've been doing struts2

Re: Struts 2: Redisplaying Invalid Form and Displaying Errors

2009-04-30 Thread Steven Hansen
Thanks Dave, Your suggestion fixed it! Best, Steven Dave Newton wrote: Steven Hansen wrote: The next problem, is that if I don't enter a value for the Age field (int), when the form is redisplayed the Age field has been populated with 0. If the Age field is left empty, I'd like

Struts 2: Redisplaying Invalid Form and Displaying Errors

2009-04-30 Thread Steven Hansen
Hi, I'm new to Struts 2 and am still trying to figure out some of the basics. The first problem I'm having, is with an action that uses ModelDriven. The model that I'm using has 2 fields that are both required, one is a string and one is an int. I'm stuck on two things. The first is that