Please file a JIRA.
--- On Fri, 12/12/08, Luis Gervaso luis.gerv...@gmail.com wrote:
From: Luis Gervaso luis.gerv...@gmail.com
Subject: Maybe a bug on S2 2.0.14 : ServletRedirectResult
To: Struts Users Mailing List user@struts.apache.org
Date: Friday, December 12, 2008, 1:35 AM
Hello
This works for me
public class ServletRedirectResultExt extends ServletRedirectResult {
private static final Log log =
LogFactory.getLog(ServletRedirectResult.class);
protected void doExecute(String finalLocation, ActionInvocation
invocation) throws Exception {
ActionContext ctx
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
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
Hi,
Thanks for the reply,
I tried both but with no luck,
Option 1 as stated I gave $actionName but doesnt
evaluate and for the second one there is no href
attribute for the URL tag hence doesnt work.
I tried various combinations like
c:out, ${actionName}, ${testID.actionName} and also
--- 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.
Shape
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
(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
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
9 matches
Mail list logo