Hello there,
im new to the whole mailing lists thing, so if iam doing something wrong, tell
me. I am
using all configuration via Annotations.
Anyway, im starting with struts and im dealing with redirectAction result right
now.
Problem is, that im using now variable Actions "SlashesInActionNames". Next, im
using
"defaultStack" interceptor for my classes.
via.
{code:xml}
<constant name="struts.patternMatcher" value="namedVariable"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.enable.SlashesInActionNames" value="true"/>
{code:xml}
so i can go to the action like this "localhost/draft/edit/123"
{code:java}
@Action(value = "edit/{ident}", results = {
@Result(name = SUCCESS, type = "redirectAction", params = {
"actionName", "index", "namespace", "/home"
})
})
public String getDraft() {
return SUCCESS;
}
{code:java}
But if i will put there result fe. SUCCESS , what will redirect this result to
another action,
fe. "index" in namespace "home", i will get
localhost/home/index.action?ident=123
In this moment, struts will show error message (because my dev mode is
enabled), that
it cant set ident variable because of missing setter in home Action.. But i
dont need that setter
in home action.
How to disable redirectAction to pass any variable from parent Action to URL on
redirect ???
Thanks,
Regards,
John