You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by An...@fiducia.de on 2006/10/06 09:34:15 UTC

strange error: submit-value is not always available

Hello!

I've got a jsp, which is really easy:

<html:form action="/cont">
<h3><bean:message key="change.title" /></h3>
<logic:iterate name="text" id="str">
<bean:write name="str"/><br>
</logic:iterate>
<br><html:text property="eingabe" size="20"/><br><br><br>
<html:submit property="aktion" value="weiter"/>
<html:submit property="aktion" value="abbruch"/>
</html:form>


Sometimes (!!!), if a user submits this form, the getter getAktion() in the
ActionForm-class becomes null as value (the null is set for the variable in the
reset-method of the ActionForm-class). Why? Does anybody has an idea how to
solve this problem or where to search to locate the problem?


Kind regards,
Andreas Hartmann


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


Re: strange error: submit-value is not always available (update)

Posted by An...@fiducia.de.
Hello!

I've got a jsp, which is really easy:

<html:form action="/cont">
<h3><bean:message key="change.title" /></h3>
<logic:iterate name="text" id="str">
<bean:write name="str"/><br>
</logic:iterate>
<br><html:text property="eingabe" size="20"/><br><br><br>
<html:submit property="aktion" value="weiter"/>
<html:submit property="aktion" value="abbruch"/>
</html:form>


Sometimes (!!!), if a user submits this form, the getter getAktion() in the
ActionForm-class becomes null as value (the null is set for the variable in the
reset-method of the ActionForm-class). Why? Does anybody has an idea how to
solve this problem or where to search to locate the problem?


Update:
Meanwhile, I know how this error can be triggered: If you just press return on
the keyboard with IE 6, there is no value submitted for "aktion". In Mozilla,
the default is the submit button with the value "weiter", so the problem doesn't
exist, if the user just presses return.



Kind regards,
Andreas Hartmann


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