struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RogerV <roger.var...@googlemail.com>
Subject Convention Confusion
Date Tue, 29 Sep 2009 07:18:37 GMT

Hi

I'm having problems getting my head around how the convention plugin derives
it's URL's. In my jsp I have this snippet

<s:if test="%{ccfGroups[#status.index].id > 0}">
  <s:url value="deletegroup" var="url">
  <s:param name="deleteId" value="%{ccfGroups[#status.index].id}" />
  </s:url>
  <s:submit type="button" label="Delete" action="%{url}"/>  
</s:if>

which generates the HTML snippet

<button type="submit" id="ccfgroup___url_"
name="action:deletegroup?deleteId=3" value="Submit">
Delete
</button>

In my action I have the anotation

@Action("deletegroup")
	public String delete() {
		return "saved";
	}

and config-browser shows that the I have an Action Name of "deletegroup"
defined with a class of
com.vasilikon.actions.EditCCFGroup (which is where I placed the @Action
annotation) and a result type of "saved" defined. However, when I press the
the "delete" button I get the "There is no Action mapped for namespace / and
action name deletegroup?deleteId=" message. 

What am I missing?

Regards
-- 
View this message in context: http://www.nabble.com/Convention-Confusion-tp25658114p25658114.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message