struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Bergström <lars.bergst...@systeam.se>
Subject LookupDispatchAction and Submit
Date Mon, 29 Sep 2003 06:27:06 GMT
Hi everyone,

I have a <html:form> in which i have several buttons like this:

        <html:submit property="actionType">
          <bean:message key="button.add"/>
        </html:submit>
        <html:submit property="actionType">
          <bean:message key="button.delete"/>
        </html:submit>
        <html:submit property="actionType">
          <bean:message key="button.update"/>
        </html:submit>

With the help of this I use the LookupDispatchAction which my Action
class extends. This works fine for my submit buttons.

My action-mapping

    <action path="/MyAction"
            type="com.mycompany.MyAction"
            name="myBean"
            parameter="actionType">
      <forward name="input" path="/pages/myPage.jsp"/>
    </action>


However, I also have a <html:text property="propKey" size="55"/> in the
same <html:form>. When the text field has focus and I press enter the
LookupDispatchAction does not work.This because the execute method of
LookupDispatchAction does not receive any value in the parameter
actionType. Is this a trap, that LookupDispatchAction cannot handle this
particular case?

Best regards

Lasse


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message