You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Axel Groß <ka...@iaeste.at> on 2004/06/25 18:00:53 UTC
image submit and lookupDispatchAction - drives me struts
hi there!
i wanted to use images to hide my ugly submit button names, but exchanging
html:submit with html:image doesn't work;
this is what is rendered:
<html:submit property="action">
<fmt:message key="profiles_action_${ownerName}_${prepopulatedActionPart}"/>
</html:submit><br/>
<html:image src="images/edit-button.jpg" property="action">
<fmt:message key="profiles_action_${ownerName}_${prepopulatedActionPart}"/>
</html:image><br/>
<bean:define id="editButton" type="java.lang.String"><fmt:message
key="profiles_action_${ownerName}_${prepopulatedActionPart}"/></bean:define>
<html:submit property="action" value="${editButton}"/><br/>
<html:image src="images/edit-button.jpg" property="action" value="${editButton}"/>
gets rendered to
<input type="submit" name="action" value="EDIT_USER" /><br/>
<input type="image" name="action" src="images/edit-button.jpg" />
<input type="submit" name="action" value="EDIT_USER" /><br/>
<input type="image" name="action" src="images/edit-button.jpg" value="EDIT_USER" />
so the html:submit buttons do work, but neither of the html:image buttons
pass the parameter on and i get a null reference for
request.getParameter(parameter);
(with parameter.equals("action"))
the resulting error message is:
Request[/action/lookupDispatch] does not contain handler parameter named action
anybody knows what could help?
thanks,
axel
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org