if you add a "/" to the action name, it won't append the namespace to it, but use it as the whole action name. If your namespace is "myactions", and you set the name as "/action", the action name is "/action", if you set it to "action" then the action name will be "/myaction/action".
musachy On Thu, May 14, 2009 at 3:30 PM, Jim Collings <jlistn...@gmail.com> wrote: > So I have this working but I had to specify a value for @Action. I don't > think I should have to do this. There should be a convention in the > convention plugin of assuming that a result mapped the way I tried to map it > is for the current method using it's conventional url when value is left > blank. Note that it also didn't work when I specified the actual url being > used for a value. It seems the intent was to force changing it. Anyone know > why? > > @Action(value = "/dir/some-action",results = {...@result(name = "success", > location = "somewhere-else", type = "chain")}) > > > On Thu, May 14, 2009 at 1:30 PM, Jim Collings <jlistn...@gmail.com> wrote: > >> I have an action with "execute" in the superclass (ActionSupport) being >> called by one activity and another method of the same Action called >> "doSomething" being called by ! notation in a form submit. >> >> I've noticed that when I annotate the "doSomething" method with: >> >> @Action(results = {...@result(name = "success", location = "somewhere-else", >> type = "chain")}) >> >> What happens is that I start getting NPE's in the execute method because >> the properties of the Action have not been set. >> >> Is this a Bug? Am I not annotating correctly? Anybody got ideas regarding >> this? >> >> >> Jim C. >> >> > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org