Hi Laurie, sorry if I expressed not totally clear what I mean - have still some problems with my english! ;)
> What do you mean that the parameters passed to the action 'change every > now and then'? At random?!? If you just mean that there are a variable > number of them, no problem; that's what List- and array-backed > properties are for. I have some report objects that have different prompts, with those prompts I build a input form and pass them to my ParameterAware action. The parameter names, and also the parameter count changes from report to report. > Not sure I understand what you want. Do you just want to suppress the > exception report in the logs, or does the exception represent an actual > problem you need to fix? If the latter, you'll need to provide more details. I guess you can call it "suppress". Its more a cosmetic fix, but I try to understand more of s2 and how to avoid things like that. I have no functional problems with the exception - everything else works like expected! So thanks for your answer, it just would be fine to get rid of it, its not a show stopper, if it can be called like that! ;) Regards Jan Froehlich -----Ursprüngliche Nachricht----- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Laurie Harper Gesendet: Mittwoch, 30. Juli 2008 07:34 An: user@struts.apache.org Betreff: Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class.... Jan Froehlich wrote: > Hi there... > > I have a page with a dynamic number of input fields that is submited to > an action that implements ParameterAware. > Cause the names of the parameters passed to that action change every now > and then I can't write getters and setters for them. > Thats what I thought ParameterAware is made for. ParameterAware is just a low-level mechanism for getting access to the raw request parameters. If you want to apply conversion or validation to your request data, or have it injected into your actions or model objects, it's probably not what you need. What do you mean that the parameters passed to the action 'change every now and then'? At random?!? If you just mean that there are a variable number of them, no problem; that's what List- and array-backed properties are for. > But even then I get those "Unexpected Exception caught setting.....". > > Is there a way to tell s2 that it should stop doing it? > > Well, ok - not the most clever question, but I just want to get rid of > those Exceptions! Not sure I understand what you want. Do you just want to suppress the exception report in the logs, or does the exception represent an actual problem you need to fix? If the latter, you'll need to provide more details. L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]