You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ca...@planetbob.de on 2004/03/18 15:54:01 UTC
LookupDispatchAction problem
Hi out there,
i've no idea why the following mechanisms doesn't work. I want to build
a formular with 2 submit buttons. When i push one of the buttons the
validation method of the suitable form bean validates the user input.
It works fine if an an error occures. Then the user gets an error
message. If the data is valid then i get the following error message.
"Request[/uploadDocument] does not contain handler parameter named
submit"
i really don't know why this error appears. i've searched the archives
the whole day but found nothing that solves my problem.
THE ARCHITECTURE:
# A JSP page with a formular. The formular contains two submit buttons.
<html:form action="uploadDocument.do">
.....
.....
<html:submit property="submit">
<bean:message key="profile.dom.upload.label.addMetaData"/>
</html:submit>
<html:submit property="submit">
<bean:message key="profile.dom.upload.label.changeMetaData"/>
</html:submit>
</html:form>
# A lookupDispatchAction like this:
public class DomUploadAction extends LookupDispatchAction{
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("profile.dom.upload.label.addMetaData", "addMetaData");
map.put("profile.dom.upload.label.changeMetaData", "modifyMetaData");
map.put("profile.dom.upload.label.sendDoc", "uploadData");
return map;
}
... Here the methods addMetaData, modifyMetaData, uploadData ...
}
# the configuration files says
<action
path="/uploadDocument"
type="com.odc.vis.web.actions.DomUploadAction"
name="DocumentUploadForm"
scope="request"
input="/jsp/secured/dom/Dom_Upload.jsp"
parameter="submit"
unknown="false"
validate="true">
I think the form bean is not so interesting at this point !
Please give a hint (Maybe i'm to blind)
THX
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org