struts-user mailing list archives

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


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:submit type="button" label="Delete" action="%{url}"/>  

which generates the HTML snippet

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

In my action I have the anotation

	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?

View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message