Well at least I understand how the thing is supposed to work now. Before I
posted here I searched every where I could think of to understand this
behavior and the struts documentation certainly wasn't complete in this
regard.
So thanks for working through the problem guys.
What this does do th
After reading "Form Submission" at
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13 this
behaviour seems correct.
=== cut here ===
17.13.3 Processing form data
When the user submits a form (e.g., by activating a submit button),
the user agent processes it as follows.
Step one: Identify
Rick you hit the nail on the head. In my mind I thought that when I hit
'enter' and when I clicked the button they were doing the same thing (in
fact someone asked me this ealier).
But now I realize it was failing when I hit enter and working when I pushed
the button. The reason for this is I
DispatchAction isn't going to change, since it would create compatibilty
problems. But you could always submit a new DispatchAction flavour - it
would be pretty simple, just override the getMethodName() method.
This type of behaviour has been advocated before, but no ones submitted
anything for co
Absolutely agree. but I hate to use javascript unless really needed.
Yesterday I suggested to use name instead of value for DispatchAction
("DispatchAction: use name instead of value" in dev list). It did not
get any responses though.
On 4/29/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> I really
I really don't like using the property on the button for the dispatch
parameter. I've run into problems with this before. For example are you
use the page always looks the same each time you are doing the post? The
reason I ask is I found really weird behavior when you end up with more
than one
Its not impossible that it could be a bug in the Struts tags - but those
tags have been in use for a long time by alot of people so I would be
surprised if that was the case. I don't actually use this technique - all my
submit buttons just do a submit and I don't have their "name" attributes
set. Y
Nial I used a packet sniffer to see what was actually being posted from the
browser to the server.
for some reason the &method=addcomponent gets dropped off the post. There
doesn't seem to be any logic to it either. I tried spaces in the text field
and that works fine most of the time. But i
Hey Niall I tried that debugging solution you suggested and here's the
result. In this case the submit worked about 5 times in a row (so I
manually clicked submit then went back to that page...etc.etc), then
resolved to the unspecified method. Here's the output
Value =[null]
Locale=[en_US
G. Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: DynaActionForm unable to find parameter method that happens
every 2-3 times
Date: Thu, 28 Apr 2005 17:04:25 -0400
Eric,
Are you ever pressing the ente
How about putting some debugging stuff in the unspecified() method in your
action. Something like the following and see what it shows...
protected ActionForward unspecified(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServ
Eric,
Are you ever pressing the enter/return key to submit the form instead of
clicking on the "method" submit button? That could cause a submit without
the method submit button being set (possibly).
Regards,
David
-Original Message-
From: Eoin Dunne [mailto:[EMAIL PROTECTED]
Sent: Thur
12 matches
Mail list logo