Re: Running a prepare method before the assigned action method

2008-03-30 Thread Kedar Choudhary
meeboo wrote: Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( meeboo wrote: Hey again I'm posting via nabble, and it seem

Re: Running a prepare method before the assigned action method

2008-03-25 Thread meeboo
Still no solution to this problem. How come parameters in actions with wildcards (for example myapp/modelObject/*) aren't parsed in the prepare method? They work fine when I parse them in my assigned action method :( meeboo wrote: > > Hey again > > I'm posting via nabble, and it seems to strip

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
Hey again I'm posting via nabble, and it seems to strip out my wildcards, basically my action looks like this now < param name= " id " > { 1 } /models/objectModel/update.jsp Hopefully this is viewable. newton.dave wrote: > > --- meeboo <[EMAIL PROTECTED]> wrot

Re: Running a prepare method before the assigned action method

2008-03-22 Thread Dave Newton
--- meeboo <[EMAIL PROTECTED]> wrote: > won't work with a wildcard parameter mapping Dave > > class="net.myapp.web.ModelObjectActions" > method="update"> Your first post didn't have a wildcard mapping. > The parameter simply isn't parsed in the prepare method unless it's in the

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
won't work with a wildcard parameter mapping Dave The parameter simply isn't parsed in the prepare method unless it's in the form of update/modelObject.action?id=22 this is what I'm currently doing update/modelObject/22.action The parameter is parsed in the update method, but not in the prepa

Re: Running a prepare method before the assigned action method

2008-03-22 Thread Dave Newton
--- meeboo <[EMAIL PROTECTED]> wrote: > I have a class for several actions and each action is mapped to a method, > like this: > > class="net.myapp.web.modelObjectActions" >method="update"> > /index.jsp > > > The above action will fire when a form is submitted and the mod

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
It seems as if the preparable method can't parse parameters if they are in the following format update/modelObject/10.action (where 10.action is the primary key) where as it works fine when using action urls like this update/modelObject?10.action Is this expected behavior? meeboo wrote: > >

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
Ahh nevermind the first mail, I managed to work around it. I still have a problem of not being able to access parameters via my prepare method though. Here's my action class: public class UserActions extends StrutsSupport implements Preparable { public void prepare() { if(id != n