Re: Implementing dependence between form properties

2004-10-26 Thread Laurent Duperval
Joe Hertz wrote: Something like this if youre using 1.2.x: test ((item1 != null) or (item2 != null) or (*this* != null)) Thanks. Is this supposed to work with DynaActionForm's? I tried it and it still seems to pass the validation. Finally, do I have to do this for all three fields or is

Implementing dependence between form properties

2004-10-25 Thread Laurent Duperval
Hi, How does one implement dependence between property fields? Specifically, I have three String fields and at least one of them must be non-null. Can I write this in the validator.xml file? Or do I have to write a custom validation rule? Thanks, L --

Re: Extending DynaValidatorActionForm... or using something else?

2004-10-19 Thread Laurent Duperval
Eddie Bush wrote: Application-specific exceptions are one of the least used and most useful tools. That's exactly how I'd go about doing it, and I dare say it's the right way. Indeed. One thing I've found with this approcah: if I don't put all the mandatory data in the form, I get an error mes

Re: Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
Laurent Duperval wrote: I'm sure others have done something similar. What approaches have you taken? Well, shortly after posting this, I remembered the tag could be added in an action. By defining a specific exception for the errors I'm trackin and sending them back to the conta

Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
HI, We've created a bunch of forms to allow users to create new object in our database. All the forms have a "name" property in them, and depending on the object, there are other properties. Most of our validation is just a simple "required". However, we have a business rule which states that t

Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Laurent Duperval
Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L - To unsubscribe,

Re: Periods in form attribute names prevents retrieval

2004-10-08 Thread Laurent Duperval
Jeff Beal wrote: Have you tried ? Ahaaa! No I haven't. Thanks! L - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Periods in form attribute names prevents retrieval

2004-10-07 Thread Laurent Duperval
Hello, I have an opbject that looks like this: Profile { String name; Account account; String getName(); Account getAccount(); } Account { String name; String getName(); } In my jsp, I have code like this: ... ... ... ... ... ... This generates: I'm using DynaValidatorActionForm's t

Re: What is halting my action?

2004-10-06 Thread Laurent Duperval
Laurent Duperval wrote: The "foo" parameter should actually read "add". I changed it to see if my class was being called and it isn't. Otherwise, I would get a NoSuchMethodExcpetion. My class is defined as: Grmblb. I found it. There was an execute() method in the

Re: Tracing action dispatching

2004-10-06 Thread Laurent Duperval
[EMAIL PROTECTED] wrote: Hi, L. Did you upgrade your struts.jar recently? Yes. The new struts action servlet calls a different method on actions, and it's default implementation is to show an empty page. Stumbled over this one also. Sure, but I've got mappings that should load the correct page. I

What is halting my action?

2004-10-06 Thread Laurent Duperval
HI, While tracing my application, this is the debug output I get: [DEBUG] RequestProcessor - Processing a 'GET' for path '/mainHardwareProfile' [DEBUG] ActionConfigMatcher - Attempting to match '/mainHardwareProfile' to a wildcard pattern [DEBUG] BeanUtils - Cloning bean: org.apache.struts.action.

Tracing action dispatching

2004-10-06 Thread Laurent Duperval
Hi, Is there a flag I can set so that Struts tells me what it's doing? I'm having a problem with one of my actions: when I click on it, I get a blank page and I don't understand why. I'd like to be able to see what decisions Sruts is taking in order to load my pages, to determine where I made a