In the simple case, this:
<s:url id="url" action="${courseName}">
and this:

<s:url  id="url"  value="${courseName}.action">

would be identical. You can also use the <param> tag to include request parameters. You can create any URL you need using the value attribute and params.

You referenced portal in your email so you might be using this in a mode I haven't tried. Looking at the code for s:url, the action string IS being evaluated but there's extra processing (a lot) to convert into a URL. The behaviour depends on whether you're in portlet mode or not. If you put a break-point in the end(writer, body) method of org.apache.struts2.components.URL.java you'll see where it's going wrong for your case. I don't think this is a bug in S2.

tom tom wrote:
Yes you are right,

Even though action attribute doesnt get evaluated
value attribute does,

but that is of no use as it does not create the URL
string to suite with Portal env.

The biggest concern is why the action attrbute of URL
tag doesnt evaluate.

that is following doesnt work
 <s:url  id="url"  action="%{courseName}">
                                
                   </s:url>

but this does but no point as it doesnt render the url
as per portal requirement

<s:url  id="url3"  value="%{courseName}">
                                
</s:url>

That is why I would like to call this as a bug-not
evaluating the action attribute of url tag


--- Dave Newton <[EMAIL PROTECTED]> wrote:

--- tom tom <[EMAIL PROTECTED]> wrote:
for the second one there is no href
attribute for the URL tag hence doesnt work.
The "value" attribute creates the href if the
"action"
attribute isn't used.

d.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to