I haven't tried to use a dynamic action name like that so can't comment
on whether its a bug or feature, but one of these options should work:
1. Try using the ${} notation without the c:out
<s:url id="url" action="${actionName}">
(I can't find the reference for this approach but it's somewhere on the
wiki)
2. Alternatively, work-around it by using the href attribute:
<s:url id="url" href="${actionName}.action">
href definitely does work.
tom tom wrote:
Hi,
We are experiencing that action attribute of the
<s:url tag is not evaluating the expressions.
For e.g Inside a interator if we want to get dynamic
action names from the interator and assign into the
action tag of the <s:url tag it just prints the text
as it is without evaluating.
Even tried <c:out of the jstl inside the action
property as follows in side a iterator but didnt work.
<s:iterator id="testID" value="xxxxxxxx">
<s:set name="testActionName" value="actionName"/>
<tr>
<td valign="middle" bgcolor="white" >
<s:url id="url" action="<c:out
value='${testActionName}'/>">
.....
.....
Is there any way to overcome this kind of
requirements.
Thanks
____________________________________________________________________________________Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]