Jeromy Evans on 10/01/08 01:32, wrote:
I had quickly coded a Result to do some 'view logic' (i.e. retrieve a list
from the model) and I had assumed I would be able to parameterize this
using extra parameters in <result> but it seems my extra parameters are
ignored - the only one that counts is <result><param name="location">

Is that correct?

AFAIK, you can define any new parameters for your Result and set them through
struts.xml <param> provided there's a public property for it. I've definitely
used it for custom results extending StrutsResultSupport.  I have a getter
and setter in every case.

Thanks for the answer. I discovered that from the OGNL stacktrace I had produced. I had a private property with public getters and setters on my Result. OGNL threw a IllegalAccessException. So I deleted the getters and setters and made the field public. It seems you don't need the getters and setters for OGNL.

See my next msg for continuation on the thread re architecture.

Thanks
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to