SimpleDispatchAction inherits from Action class not from DispatchAction. At http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved you can read: "You can use a dispatch action without requiring configuration of a parameter attribute in struts-config.xml."

My problem is that each of my forms generates two POSTs with one click. I am not sure if the error comes from SimpleDispatchAction although it appeared when I 've started using it. Its code looks ok.

Error appears in second POST, when SimpleDispatchAction::execute tries to get handler parameter from request. Request of second POST doesn't have any attributes set by me. All of them are erased after first POST - which is proper behaviour. I dont know where this second POST comes from.

Are there any 'typical' situations when one click generates two submits?

Dnia Fri, 17 Jun 2005 15:27:01 +0200, McDonnell, Colm (MLIM) <[EMAIL PROTECTED]> napisał:

The exception message

<snip>Request[/login] does not contain handler parameter named
'null'.</snip>

Implies that you either haven't defined the dispatch parameter or you
haven't supplied a value for the dispatch parameter. Have you checked
the API for DispatchAction, in particular the parts relating to the
"parameter" attribute of a dispatch action mapping.


-----Original Message-----
From: Janek Ziniewicz [mailto:[EMAIL PROTECTED]
Sent: 17 June 2005 13:23
To: user@struts.apache.org
Subject: SimpleDispatchAction error


Hello again,
   all my action classes are derived from SimpleDispatchAction class.
After
submitting a form I am forwarded to desired page but always get a
following error. Logs of my app show that after each submitting to POSTs
are sent. First forwards me to next page, second produces an error. Any
ideas what is happening?

Source of StrutsCatalogDispatchAction can be found at
http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved but
almost for sure problem is not located in SimpleDispatchAction.

<snip>
11:21:27,140 ERROR [SimpleDispatchAction] Request[/login] does not
contain
handler parameter named 'null'.  This may be caused by whitespace in the
label text.
...
...
</snip>



--
Pozdrawiam, Janek Ziniewicz
gg:902858
irc.freenode.net: #gore, #dub

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to