Re: Redirect URLs have class names added after the action name with # or !

2016-10-25 Thread Lukasz Lenart
2016-10-25 16:54 GMT+02:00 Dhamelia, Krunal : > Question: How do you define "nextAction"? Is it a String like "homeAction"? > Ans: yes I define it as a string which is anaction name "/welcome.action" redirectAction result expects action name not the whole URL, instead "/welcome.action" return "we

RE: Redirect URLs have class names added after the action name with # or !

2016-10-25 Thread Dhamelia, Krunal
St W – 9th floor, Toronto, Ont, M5H 3P5 desk: 416 944 6187 cell: 647 835 3067 e-mail: krunal.dhame...@tdsecurities.com -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Tuesday, October 25, 2016 1:06 AM To: Struts Users Mailing List Subject: Re: Redirect URLs ha

Re: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Lukasz Lenart
2016-10-24 22:29 GMT+02:00 Dhamelia, Krunal : > Hi Lukaz, > I am really stuck with this issue. I tried on WebSphere Application Server > and this issue is not there only on JBOSS I am getting this. > > But the problem, when Struts is redirecting using action redirect that time &g

RE: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Martin Gainty
> From: krunal.dhame...@tdsecurities.com > To: user@struts.apache.org > Subject: RE: Redirect URLs have class names added after the action name with > # or ! > Date: Mon, 24 Oct 2016 20:29:43 + > > Hi Lukaz, > I am really stuck with this issue. I tried on WebS

RE: Redirect URLs have class names added after the action name with # or !

2016-10-24 Thread Dhamelia, Krunal
Hi Lukaz, I am really stuck with this issue. I tried on WebSphere Application Server and this issue is not there only on JBOSS I am getting this. But the problem, when Struts is redirecting using action redirect that time only I get this problem, I have manual redirect response.sendredirect

RE: Redirect URLs have class names added after the action name with # or !

2016-10-18 Thread Dhamelia, Krunal
3067 e-mail: krunal.dhame...@tdsecurities.com -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Tuesday, October 18, 2016 1:55 AM To: Struts Users Mailing List Subject: Re: Redirect URLs have class names added after the action name with # or ! 2016-10-17 16:30

Re: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Lukasz Lenart
2016-10-17 16:30 GMT+02:00 Dhamelia, Krunal : > Yep sorry I didn’t see that. > > Here is how redirect is configured > > LogonAction has method LogonSuccessful which at the end sets the variable > "nextAction" and returns the result "next" which is a redirect

RE: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Dhamelia, Krunal
Yep sorry I didn’t see that. Here is how redirect is configured LogonAction has method LogonSuccessful which at the end sets the variable "nextAction" and returns the result "next" which is a redirect type of result with location param value set to

Re: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Lukasz Lenart
e St W – 9th floor, Toronto, Ont, M5H 3P5 > desk: 416 944 6187 cell: 647 835 3067 > e-mail: krunal.dhame...@tdsecurities.com > > > -Original Message- > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > Sent: Sunday, October 16, 2016 8:31 AM > To: Struts Users Mailing Li

RE: Redirect URLs have class names added after the action name with # or !

2016-10-17 Thread Dhamelia, Krunal
...@tdsecurities.com -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Sunday, October 16, 2016 8:31 AM To: Struts Users Mailing List Subject: Re: Redirect URLs have class names added after the action name with # or ! 2016-10-14 16:07 GMT+02:00 Dhamelia, Krunal : > Hi Every

Re: Redirect URLs have class names added after the action name with # or !

2016-10-16 Thread Lukasz Lenart
2016-10-14 16:07 GMT+02:00 Dhamelia, Krunal : > Hi Everyone, > I am facing very weird issue at least I haven't seen it before. > > Struts version 2.3.16 > Struts Spring combination using Spring 3.0.6 Did you migrate from some other version? > Once the redirect happens it

RE: Redirect URLs have class names added after the action name with # or !

2016-10-14 Thread Dhamelia, Krunal
6187 cell: 647 835 3067 e-mail: krunal.dhame...@tdsecurities.com -Original Message- From: Dhamelia, Krunal Sent: Friday, October 14, 2016 10:07 AM To: Struts Users Mailing List Subject: Redirect URLs have class names added after the action name with # or ! Hi Everyone, I am facing very

Redirect URLs have class names added after the action name with # or !

2016-10-14 Thread Dhamelia, Krunal
Hi Everyone, I am facing very weird issue at least I haven't seen it before. Struts version 2.3.16 Struts Spring combination using Spring 3.0.6 When I redirect to an action from interceptor or as a result of another action it adds some class names with package in the URL and due to this

RE: [s1] ActionForward redirect to localhost loses the hostname

2015-06-28 Thread Martin Gainty
er when you make the call in Javascript: window.location = http://localhost:8080 + response.data; in java: org.apache.struts.action.ActionForward validActionForward; try { validActionForward = mapping.findForward("success"); } catch(Exception e) { boolean redirect=true; //if you have no se

[s1] ActionForward redirect to localhost loses the hostname

2015-06-26 Thread Christopher Schultz
calhost" that used to be in there. This does not happen on all pages. I can't seem to isolate anything that might be different about this redirect than any others. Any clues as to what might be happening? Thanks, - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http:/

Re: how to redirect to an action with parameter

2015-04-23 Thread Yaragalla Muralidhar
ains a property "studentId" > > on success i need to redirect to another action but need to pass > "studentid" parameter to that action. is it possible to do that. > > > > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* >

how to redirect to an action with parameter

2015-04-23 Thread Yaragalla Muralidhar
Hi my action class contains a property "studentId" on success i need to redirect to another action but need to pass "studentid" parameter to that action. is it possible to do that. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

Re: Call a forward or a redirect inside an interceptor.

2015-03-09 Thread ersinghlovepr...@gmail.com
; } But in case of Interceptor getter setter is not working so You can just set the value in stack like: invocation.getStack().set("url", "actionUrl"); and just return a "redirect" from interceptor instead of invocation.invoke() BUT BE CAREFUL THIS WILL NOT LET ANY

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 14:24 GMT+02:00 saikrishna : > I contacted middle ware team,who does server restart.Server is getting > restarted daily ! Actually,one month back we have done the struts upgrade to > 2.3.16.2.As a part of that,we have just updated our pom.xml with the struts > version ,as our project is

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:30 GMT+02:00 saikrishna gmail.com>: > > production servers are handled by some other team.You want me to recycle the > > servers once ? > > Yes, you should do it as soon as possible - after switching devMode to > off you must restart applica

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:30 GMT+02:00 saikrishna : > production servers are handled by some other team.You want me to recycle the > servers once ? Yes, you should do it as soon as possible - after switching devMode to off you must restart application to take effect And as I said, you are using safe version,

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:26 GMT+02:00 saikrishna gmail.com>: > > Even though dev mode is set to false,we are getting errors as above asking us > > to set devmode to false,which is already there. > > > > and both entries are taken from production logs. > > Have you r

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:26 GMT+02:00 saikrishna : > Even though dev mode is set to false,we are getting errors as above asking us > to set devmode to false,which is already there. > > and both entries are taken from production logs. Have you restarted the app? Regards -- Łukasz + 48 606 323 122 http://ww

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 12:17 GMT+02:00 saikrishna gmail.com>: > > Sorry,this is an issue from production,where already dev mode is set to false > > in the config files. > > Log entry is from production. > > Which one? Both entries have "Developer Notification (set >

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:17 GMT+02:00 saikrishna : > Sorry,this is an issue from production,where already dev mode is set to false > in the config files. > Log entry is from production. Which one? Both entries have "Developer Notification (set struts.devMode to false to disable this message" Regards -- Łu

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
Lukasz Lenart apache.org> writes: > > 2014-07-17 11:31 GMT+02:00 saikrishna gmail.com>: > > 2014-04-18 05:23:12,320 ERROR ParametersInterceptor:34 - Developer > > Notification (set struts.devMode to false to disable this message): > > Unexpected Exception caug

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 11:31 GMT+02:00 saikrishna : > 2014-04-18 05:23:12,320 ERROR ParametersInterceptor:34 - Developer > Notification (set struts.devMode to false to disable this message): > Unexpected Exception caught setting > 'redirect:${#a=#context.get('com.opensymphony.xwork2.d

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
>> > Hi Getting the below error.Looks like,somebody tried to attack our > > application > >> > with a redirect.Below is the log.Please advice. > >> > > >> > ParametersInterceptor:34 - Developer Notification (set struts.devMode to > > false > &

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
is the log.Please advice. >> > >> > ParametersInterceptor:34 - Developer Notification (set struts.devMode to > false >> > to disable this message): >> > Unexpected Exception caught setting >> > > 'redirect:${#res=#context.get('

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread saikrishna
t struts.devMode to false > > to disable this message): > > Unexpected Exception caught setting > > 'redirect:${#res=#context.get('com.opensymphony.xwork2.dispatcher.HttpServle tR > > esponse'),#res.setCharacterEncoding("UTF-8" > > ),#req=#context.get(

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-16 Thread Lukasz Lenart
low error.Looks like,somebody tried to attack our application > with a redirect.Below is the log.Please advice. > > ParametersInterceptor:34 - Developer Notification (set struts.devMode to false > to disable this message): > Unexpected Exception caught setting > 're

redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-16 Thread saikrishna
Hi Getting the below error.Looks like,somebody tried to attack our application with a redirect.Below is the log.Please advice. ParametersInterceptor:34 - Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'redirect:$

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
t; > > On Tue, Jun 17, 2014 at 5:14 PM, Christoph Nenning < > > christoph.nenn...@lex-com.net> wrote: > > > > > > HI All, > > > > > > > > We have two pages and both of them have tag and both of > them > > > use > > >

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
> HI All, > > > > > > We have two pages and both of them have tag and both of them > > use > > > token interceptor. > > > > > > After I submit one form I need to display another form in another page. > > > I am using "red

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
another page. > > I am using "redirectAction" to redirect > > > > Before redirecting in the first action class I am setting token value > into > > session. > > But when it tries to redirect to the 2nd action.. the error is getting > > displayed. >

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
> HI All, > > We have two pages and both of them have tag and both of them use > token interceptor. > > After I submit one form I need to display another form in another page. > I am using "redirectAction" to redirect > > Before redirecting in the first

struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
HI All, We have two pages and both of them have tag and both of them use token interceptor. After I submit one form I need to display another form in another page. I am using "redirectAction" to redirect Before redirecting in the first action class I am setting token value into se

Re: S2 - params on a redirect-result

2013-11-21 Thread Lukasz Lenart
It should work out-of-the-box 2013/11/21 Greg Lindholm : > I was attempting to add arbitrary parameter to a a result type of > "redirect" as shown in the second example here > http://struts.apache.org/development/2.x/docs/redirect-result.html and it > doesn't seem t

S2 - params on a redirect-result

2013-11-21 Thread Greg Lindholm
I was attempting to add arbitrary parameter to a a result type of "redirect" as shown in the second example here http://struts.apache.org/development/2.x/docs/redirect-result.html and it doesn't seem to work. The parameters are never added. Is there some trick to make this work or

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-02 Thread Lukasz Lenart
you can solve that. I give you few ways which depend on scale of your problem. If it is just one redirect, above sample is simpler that writing new Result from scratch. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-02 Thread Néstor Boscán
host123.company.org. When you're changing protocols, you have to include > > the FQN. Does your app know the public domain? > > > > 2) Is there a Struts enhancement hiding in this question? Maybe we should > > include a "protocol" and "hostname" as

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-01 Thread Lukasz Lenart
ssing www.company.org but you're on > host123.company.org. When you're changing protocols, you have to include > the FQN. Does your app know the public domain? > > 2) Is there a Struts enhancement hiding in this question? Maybe we should > include a "protocol" and

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-01 Thread Lukasz Lenart
2013/10/1 Néstor Boscán : > This one: > > type="redirect">cambioPassword!input.action It's a normal redirect (not redirectAction) so you can use https://host/cambioPassword!input.action Other option is to develop your own ServletRedirectResult. Regards -- Ł

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-01 Thread Paul Benedict
.company.org. When you're changing protocols, you have to include the FQN. Does your app know the public domain? 2) Is there a Struts enhancement hiding in this question? Maybe we should include a "protocol" and "hostname" as redirect parameters? Lukasz, thoughts? Paul O

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-10-01 Thread Néstor Boscán
on. When >> the application uses a redirect it will use HTTP instead of the original >> HTTPS protocol. Is there a way to force redirect to use HTTPS? > > What kind of redirect? to action? > > > Regards > -- > Łu

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-09-30 Thread Lukasz Lenart
2013/9/30 Néstor Boscán : > I have an application that runs on weblogic 10.3.6 and struts 2.3.8. The > weblogic is behind a loadbalancer that does https to http translation. When > the application uses a redirect it will use HTTP instead of the original > HTTPS protocol. Is there a

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-09-30 Thread Néstor Boscán
as te external name of the loadbalancer, no? > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Néstor Boscán > Date: Mon, 30 Sep 2013 16:19:35 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: S2: Using H

Re: S2: Using HTTPS, when I redirect, I get HTTP

2013-09-30 Thread jlmagc
Reply-To: "Struts Users Mailing List" Subject: S2: Using HTTPS, when I redirect, I get HTTP Hi I have an application that runs on weblogic 10.3.6 and struts 2.3.8. The weblogic is behind a loadbalancer that does https to http translation. When the application uses a redirect it wil

S2: Using HTTPS, when I redirect, I get HTTP

2013-09-30 Thread Néstor Boscán
Hi I have an application that runs on weblogic 10.3.6 and struts 2.3.8. The weblogic is behind a loadbalancer that does https to http translation. When the application uses a redirect it will use HTTP instead of the original HTTPS protocol. Is there a way to force redirect to use HTTPS? Regards

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
SUCCESS and redirects > to a jsp. As I said it is the struts 2 jquery showcase sample! > > I am new, please let me know if I should describe any thing else !! If you redirects to action directly, the action will be called. If you redirect to "/namespace/", action Index in that

Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
uld describe any thing else !!   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Tuesday, 9 July 2013, 17:40 Subject: Re: convention redirect to slash Ok, but could you share configuration of res

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
Ok, but could you share configuration of results? How do you perform redirect? 2013/7/9 Alireza Fattahi : > Here it is: > > I acutally downloaded the struts 2 jquery plug in and add > > to it! > > > > > > value="com.jgeppert.struts2.

Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Subject: Re: convention redirect to slash 2013/7/9 Alireza Fattahi : > The > > is not working ! > It keeps redirecting to slash > > any comments ?! Could you share your struts.xml? Os some snippets with results? Regards -- Łukasz + 48 606 323 122 http:/

Re: convention redirect to slash

2013-07-09 Thread Lukasz Lenart
2013/7/9 Alireza Fattahi : > The > > is not working ! > It keeps redirecting to slash > > any comments ?! Could you share your struts.xml? Os some snippets with results? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Hi, The is not working ! It keeps redirecting to slash any comments ?!   ~Regards, ~~Alireza Fattahi

Re: Showing messages after a redirect

2013-03-28 Thread pdegregorio
I added the following line to the 2nd block of code (the next action redirected to) saveMessages(request, messages); -- View this message in context: http://struts.1045723.n5.nabble.com/Showing-messages-after-a-redirect-tp3481980p5712345.html Sent from the S

RE: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-29 Thread Martin Gainty
From: mgai...@hotmail.com To: user@struts.apache.org Subject: RE: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade Date: Sat, 27 Oct 2012 22:20:49 -0400 place this encoding directuve at the top of each jsp <%@ page contentType="text/html; charset=UTF-8" %>

Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-28 Thread Lukasz Lenart
2012/10/28 Martin Gainty : > if i implement the 2.3.4 com.opensymphony.xwork2.conversion.impl I am plagued > by > No mapping for dependency[type=com.opensymphony.xwork2.FileManager, > name='default'] in > public void > com.opensymphony.xwork2.conversion.impl.XWorkConverter.setFileManager(com.ope

RE: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-28 Thread Martin Gainty
sage sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: j...@rodaxsoft.com >

Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread John Boyer
uelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter &g

RE: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread Martin Gainty
torisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le conten

Re: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread jlmagc
iling List" Subject: [Struts 2] Redirect Stopped Working After Struts 2 Upgrade Hello: Without making any code changes, I upgraded my Struts 2 libraries from v2.2.1 to v2.3.4.1. However, a redirect URL no longer works in Firefox or Safari. It works fine in Struts v2.2.1. No errors or warni

[Struts 2] Redirect Stopped Working After Struts 2 Upgrade

2012-10-27 Thread John Boyer
Hello: Without making any code changes, I upgraded my Struts 2 libraries from v2.2.1 to v2.3.4.1. However, a redirect URL no longer works in Firefox or Safari. It works fine in Struts v2.2.1. No errors or warnings appear in the log but, here's the warning I get in Firefox Firebug: &q

Re: Is it possible to redirect after a Stream result action has completed?

2011-09-24 Thread Li Ying
I guess you can not do this. Because there should be ONLY ONE HTTP response for every HTTP request. So you can only return a file downlod or a redirect to the client, but not both. If you want to jump to another page after file download, may be you can try JavaScript solution in the client side

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-24 Thread Carl Ballantyne
chiara wrote: > > > The reason behind is simple: no browser no redirect. > > The redirect is sent as http header, so as long as there is no browser > > to interpret the header there is no way to redirect. > > > > You might call by yourself the second action, WDY

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-24 Thread miguel
On Thu, 2011-09-22 at 10:23 +0200, Maurizio Cucchiara wrote: > The reason behind is simple: no browser no redirect. > The redirect is sent as http header, so as long as there is no browser > to interpret the header there is no way to redirect. > > You might call by yourself th

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-22 Thread Maurizio Cucchiara
The reason behind is simple: no browser no redirect. The redirect is sent as http header, so as long as there is no browser to interpret the header there is no way to redirect. You might call by yourself the second action, WDYT? PS: FWIW I have not read the optional reading :) Maurizio

Can Struts Junit plugin be used to test the redirect result of an action

2011-09-21 Thread Miguel Almeida
via hibernate. The result is a redirect to execute() of the same class, whose prepare() populates a List object with all the records available. For some reason, the prepare fires as it should, but returns the old number of items. Only a refresh shows the page with the correct results. For an odd

Is it possible to redirect after a Stream result action has completed?

2011-09-19 Thread roger
link is still displayed. I would like to be able to "redirect" to another page once the download has completed. Is this possible and if so pointers as to how I go about it would be welcome. Regards -- View this message in context: http://struts.1045723.n5.nabble.com/Is-it-possible-t

Re: How do i redirect to another action in filter?

2011-09-16 Thread jlmagc
Is there any particular reason for not using an interceptor? Is the perfect place to do such processing. --Mensaje original-- De: mohan rao Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: How do i redirect to another action in filter? Enviado: 16 Sep, 2011 11

How do i redirect to another action in filter?

2011-09-16 Thread mohan rao
httpRes, actionMaping); Throw me some light regarding this. Thanks. -- View this message in context: http://struts.1045723.n5.nabble.com/How-do-i-redirect-to-another-action-in-filter-tp4811120p4811120.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-09 Thread Maurizio Cucchiara
I got your point: what is explained on JIRA would not seem related to what really happen. On the other hand, it's just a debug message, I think is nothing to take care. Don't you think so? Maurizio Cucchiara

Re: struts2-portlet2-plugin-2.1.8.1 in Liferay 6.0.5 - Post-Redirect-Get aka Redirect after post

2011-09-09 Thread abhinav
iN LIFERAY6.0.6 tO SOLVE DUPLICATE FORM SUBMISSION u HAVE TO JUST DO true IN liferay-display.xml -- View this message in context: http://struts.1045723.n5.nabble.com/struts2-portlet2-plugin-2-1-8-1-in-Liferay-6-0-5-Post-Redirect-Get-aka-Redirect-after-post-tp3436007p4781220.html Sent from

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
Enroll1 > > > > /example/HelloWorld.jsp > > > Launched jetty with > mvn jetty:run > > Now whenever I go to > http://localhost:8080/tutorial/example/TestNavigateTo.action, Struts > send a redirect to > http://localhost:808

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread Maurizio Cucchiara
/example/HelloWorld.jsp Launched jetty with mvn jetty:run Now whenever I go to http://localhost:8080/tutorial/example/TestNavigateTo.action, Struts send a redirect to http://localhost:8080/tutorial/example/NavigateTo.action?navigateTo=Enroll1 So, my guess is there is something with your current

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
know. >> >> Thanks >> >> JL >> Sent via BlackBerry from T-Mobile >> >> -Original Message- >> From: Maurizio Cucchiara >> Sender: maurizio.cucchi...@gmail.com >> Date: Thu, 8 Sep 2011 10:44:36 >> To: Struts Users Mailing Lis

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
> JL > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Maurizio Cucchiara > Sender: maurizio.cucchi...@gmail.com > Date: Thu, 8 Sep 2011 10:44:36 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: Stru

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread jlmagc
- From: Maurizio Cucchiara Sender: maurizio.cucchi...@gmail.com Date: Thu, 8 Sep 2011 10:44:36 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL war

Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread Maurizio Cucchiara
Please forget my last mail, I mixed up the action name with the param name. Anyway I have been able to test your specific use case, using the blank webapp, and it works like a charm (that is without throwing any exception). So, I guess we need to know some further details. Also, could you try to ch

Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
You mean the param value for actionName? But that's the name of the action where the user is redirected. NavigateTo Enroll eco.login.navigate-to.screen Any case, I just tried to low

Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread Maurizio Cucchiara
Does anything change if you change to lower the param name?: navigateTo Maurizio Cucchiara On 7 September 2011 15:56, JOSE L MARTINEZ-AVIAL wrote: > NavigateTo - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm having some issues with this bug. Apparently it was fixed on 2.1.8, but I've tested both with 2.1.8 and 2.2.3, and it still givin an error message when I use a result like the following: NavigateTo Enroll It gives the following

Re: Special character problem while redirect-action

2011-07-28 Thread Vishwa Sahan
Cool. Congratz On Thu, Jul 28, 2011 at 3:10 PM, Sewwandi wrote: > Hi all, > > I found the solution. It was required to set the URIEncoding="UTF-8" > property, and that solved the problem. > > Thanks & regards > Sewdil > > On Thu, Jul 28, 2011 at 2:18 PM, Sewwandi wrote: > > > hi Vishwa, > > > >

Re: Special character problem while redirect-action

2011-07-28 Thread Sewwandi
Hi all, I found the solution. It was required to set the URIEncoding="UTF-8" property, and that solved the problem. Thanks & regards Sewdil On Thu, Jul 28, 2011 at 2:18 PM, Sewwandi wrote: > hi Vishwa, > > Thanks a lot for your reply... I don't get this with single and double > quotes and I am

Re: Special character problem while redirect-action

2011-07-28 Thread Sewwandi
hi Vishwa, Thanks a lot for your reply... I don't get this with single and double quotes and I am using UTF-8 charset. I think the request parameters which are passed need to be encoded but I can't find out how to. On Thu, Jul 28, 2011 at 1:58 PM, Vishwa Sahan wrote: > Is your problem persists

Re: Special character problem while redirect-action

2011-07-28 Thread Vishwa Sahan
Is your problem persists with the characters like singe and double quotes? I think the problem is with the charset. Try using UTF-8 charset it will be fine. Try explaining little more about what you are about to do. On Thu, Jul 28, 2011 at 1:59 PM, Sewwandi wrote: > yes > > On Thu, Jul 28, 2011

Re: Special character problem while redirect-action

2011-07-28 Thread Sewwandi
yes On Thu, Jul 28, 2011 at 1:04 PM, Vishwa Sahan wrote: > have you copied and pasted the charactor from somewhere else such as a MS > Word document? > > On Thu, Jul 28, 2011 at 1:25 PM, wrote: > > > hi, > > I am using struts 2.0.11.1 and i'm redirecting to an action with some > > parameters. >

Re: Special character problem while redirect-action

2011-07-28 Thread Vishwa Sahan
have you copied and pasted the charactor from somewhere else such as a MS Word document? On Thu, Jul 28, 2011 at 1:25 PM, wrote: > hi, > I am using struts 2.0.11.1 and i'm redirecting to an action with some > parameters. > the problem is that when the parameter value contain the special characte

Special character problem while redirect-action

2011-07-28 Thread sewdil
hi, I am using struts 2.0.11.1 and i'm redirecting to an action with some parameters. the problem is that when the parameter value contain the special character '–' (long dash) it is not correctly set in the parameter (ie when i print the value in 'otheractionName' action class (after redire

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dale Newfield
On 7/12/11 12:57 PM, stanl...@gmail.com wrote: what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. Unfortunately most "pages" are a result of many requests (images, stylesheets, ajax requests, scripts, etc.), so that constant number (2, 7, 99, whatever) w

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
>> life-cycles. However, unless you were doing something OOTO, a request in >> Struts/2 lasts for one reqest/response trip. >> >> Peace, >> Scott >> >> On Tue, Jul 12, 2011 at 11:14 AM, Dave Newtonmailto:davelnew...@gmail.com>> wrote: &

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
request in >> Struts/2 lasts for one reqest/response trip. >> >> Peace, >> Scott >> >> On Tue, Jul 12, 2011 at 11:14 AM, Dave Newton wrote: >> >>> On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: >>>>> Because it's a redirect, an

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
. However, unless you were doing something OOTO, a request in Struts/2 lasts for one reqest/response trip. Peace, Scott On Tue, Jul 12, 2011 at 11:14 AM, Dave Newton wrote: On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: Because it's a redirect, and things in the request go away when there&#x

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread stanlick
12, 2011 at 11:14 AM, Dave Newton wrote: > On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: > >> Because it's a redirect, and things in the request go away when > >> there's a new request. > > Not true for previous version. > > Previous version ha

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: >> Because it's a redirect, and things in the request go away when >> there's a new request. > Not true for previous version. Previous version had a bug, then, because by default, anything relating to an action's insta

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Chris Pratt
That is definitely not my experience. As Dave said, the Action/Field Errors/Messages have always been stored in the request and lost across a redirect. There have been several interceptors that have been talked about on this list to bridge that problem, but they are not on the stack by default

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
Hi Dave, Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version keeps the ActionMessage. Only ActionErrorMessage does not show. Only the new version does not show the message anymore after redirec

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
e! Is it > a bug? I have a lots classes depend on it. > > Thanks a lot! > Emi > > > > On 07/12/2011 11:39 AM, Emi Lu wrote: >> >> Hello List, >> >> Struts2.2.3, it seems that addActionMessage does not show message after >&

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Emi Lu
It works for 2.2.1, but the message does not shown for 2.2.3 anymore! Is it a bug? I have a lots classes depend on it. Thanks a lot! Emi On 07/12/2011 11:39 AM, Emi Lu wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dave Newton
Because it's a redirect, and things in the request go away when there's a new request. Dave On Tue, Jul 12, 2011 at 11:39 AM, Emi Lu wrote: > Hello List, > > Struts2.2.3, it seems that addActionMessage does not show message after > redirect. > > Someone kno

  1   2   3   4   5   6   7   8   9   10   >