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
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
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
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
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
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
6 matches
Mail list logo