Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
Hi all I have a class for several actions and each action is mapped to a method, like this: action name=update/modelObject class=net.myapp.web.modelObjectActions method=update result/index.jsp/result /action The above action will fire when a form is submitted and the

use continue in s:iterator

2008-03-22 Thread Kibo
Hi conference Can I use continue in struts tag s:iterator ? -- from: for (Category cat : category){ if (cat.getId() == 1) continue;

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 !=

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 Dave Newton
--- meeboo [EMAIL PROTECTED] wrote: I have a class for several actions and each action is mapped to a method, like this: action name=update/modelObject class=net.myapp.web.modelObjectActions method=update result/index.jsp/result /action The above action will fire

Re: Running a prepare method before the assigned action method

2008-03-22 Thread meeboo
won't work with a wildcard parameter mapping Dave action name=update/modelObject/* class=net.myapp.web.ModelObjectActions method=update 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

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 action name=update/modelObject/* 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

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 action name=update/modelObject/* class=net.schemer.web.ObjectModelActions interceptor-ref name=paramsPrepareParamsStack/ param name= id { 1 }

Re: struts 2 jsf plugin problem

2008-03-22 Thread Daniel
At first i have tried to make the portlet only with JSF. Unfortunately Weblogic has some problems , many problems, it's the first time when i use weblogic and it's not worthing it's money. After i failed making the portlet with pure JSF i said to make a try with struts 2 and jsf plugin. Using this

Multiple Select

2008-03-22 Thread Thangalin
Hi, I have a rather complex form with an html:select that uses dynamically generated html:option values. The problem is that the destination array, upon posting, returns an array with zero length. I am using a DynaActionForm in Struts 1.2 (version cannot change). The code ... =File:

Re: use continue in s:iterator

2008-03-22 Thread Laurie Harper
Kibo wrote: Hi conference Can I use continue in struts tag s:iterator ? -- from: for (Category cat : category){ if (cat.getId() == 1) continue;

Re: use continue in s:iterator

2008-03-22 Thread Laurie Harper
Laurie Harper wrote: Kibo wrote: Hi conference Can I use continue in struts tag s:iterator ? -- from: for (Category cat : category){ if (cat.getId() == 1) continue;

RE: Any issues using latest Dojo with Struts2?

2008-03-22 Thread Karr, David
After thinking about this some more, I guess the best answer is to avoid it in the first place. Keep complex JavaScript in .js files. If the JavaScript in your JSP is using a feature like this, it probably belongs in a JS module. -Original Message- From: Dave Newton [mailto:[EMAIL