Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
Beyond extracting the index the action should carry on as usual. All i've done is define an int called index provided gets and sets and the value is set during the indexed parameter check. Oh I've found it. Dooh!! what an idiot, the parameter returned for the mapping.getParameter() will be null

Re: Nested dispatch action

2004-06-27 Thread Rick Reumann
Mark Lowe wrote: I've been looking through the struts source with a view to trying to find a way of handling nested dispatch actions. I don't think it matters what kind of action it is, but maybe I'm missing what you are trying to do. I've looked at what you have below, but I confused from a 're

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
I gave up my tree barking with that last approach and simply defined a index int with get and sets in my NestedDispatchAction class. Now when i submit my indexed button .. But getMethodName called in my execute method returns null. null[index] On 27 Jun 2004, at 17:05, Mark Lowe wrote: I've got

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
I've got a strange problem where I've extended LookupDispatchAction with my own version and then in turn extended that to create NestedDispatchAction for one reason or another the getClass method DispatchAction throws a NoSuchMethodException even though its there and works quite happily when n

Re: Nested dispatch action

2004-06-27 Thread Michael McGrady
Danged if I can make out what it is you are trying to do, Mark. You say: "The situation is that i need to add an item to the the levelOne object. But when submitting there's no way of grabbing the index and thus knowing which of the levelOne objects to add a new rows of nested object to." This

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
The only means i've thought this could be possible would be to iterate through the parameter names enumeration like this.. Enumeration parameterNames = request.getParameterNames(); String parameter = mapping.getParameter(); while(parameterNames.hasMoreElements()) { String paramName = para