struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel GroƟ <kamik...@iaeste.at>
Subject image submit and lookupDispatchAction - drives me struts
Date Fri, 25 Jun 2004 16:00:53 GMT
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


Mime
View raw message