Musachy Barroso wrote:
> 
> does adding namespace="/" to the url tag make any difference?
> 
> There is a good chance that it is related to "" vs "/" namespace.
> 
> musachy
> 

I think it's a bug in the way the URL is being interrpreted. I tried your
idea setting the namespace attribute on the url tag, made no difference.
However if I drop the parameter from the URL then the action gets processed.
So

 <s:url value="deletegroup" var="url">
   <s:param name="deleteId" value="%{ccfGroups[#status.index].id}" />
 </s:url>

which is interpretted as 

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

throws a no action mapped exception, but 

<s:url value="deletegroup" var="url"></s:url>

which is interpretted as 
<button type="submit" id="ccfgroup___url_" name="action:deletegroup"
value="Submit">Delete</button>

calls the action deletegroup. I think struts is looking for an action called
"deletegroup?deleteId=3" rather than deletegroup with parameter deleteId.

Which leaves me with the problem of how to display individual "delete"
buttons against a list :(

Regards


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


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

Reply via email to