Hi,
@Result (type=ServletActionRedirectResult.class, value = "show",
params = {"namespace", "/wsp/boss/target", "month", "${month}",
"year", "${year}"})
You need to add getMonth() and getYear() in action that is calling this result.
Best greetings,
Paweł Wielgus.
2008/10/28 col_chappy <[EMAIL
Bump... with a little more info.
Using struts 2.0.11.2. I have the annotation
@Result(name="success", value="someaction", params={"id", "${id}"},
type=ServletActionRedirectResult.class). There is a getter and setter for
"id" on both action classes. Neither is called. Results are the same setting
Does anyone have a use case for the params field in the Result
annotation? Currently it's defined in the annotation as:
String[] params() default {};
which I'm not sure makes sense as a name and value was passed in the XML
configuration.
/Ian
---
3 matches
Mail list logo