struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Bergström <>
Subject LookupDispatchAction and submit
Date Fri, 26 Sep 2003 14:40:05 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 property="actionType">
          <bean:message key="button.delete"/>
        <html:submit property="actionType">
          <bean:message key="button.update"/>
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"
      <forward name="input" path="/pages/myPage.jsp"/>

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message