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 from my 
filter does not cause the same behavior neither Spring filter redirect.

Does this ring any bell?

Thanks and Regards,
Krunal Dhamelia
Consultant | TD Securities Technology Solutions| TD Securities
130 Adelaide 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: Dhamelia, Krunal 
Sent: Tuesday, October 18, 2016 11:30 AM
To: Struts Users Mailing List
Subject: RE: Redirect URLs have class names added after the action name with # 
or !

Not yet I will try it on Tomcat.

I was running on Websphere before and can not recall of getting it on that.

Thanks and Regards,
Krunal Dhamelia
Consultant | TD Securities Technology Solutions| TD Securities
130 Adelaide 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 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 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 type of result 
> with location param value set to value of "nextAction".
>
>  class="logonAction">
> login
> 
> ${nextAction}
> 
> 
>  name="location">j_spring_security_check?j_username=${username}
> 
> 

Hm looks good. Did you try to test on some other container? Tomcat or Jetty?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


If you wish to unsubscribe from receiving commercial electronic messages from 
TD Bank Group, please click here or go to the following web address: 
www.td.com/tdoptout 
Si vous souhaitez vous désabonner des messages électroniques de nature 
commerciale envoyés par Groupe Banque TD veuillez cliquer ici ou vous rendre à 
l'adresse www.td.com/tddesab

NOTICE: Confidential message which may be privileged. Unauthorized 
use/disclosure prohibited. If received in error, please go to www.td.com/legal 
for instructions.
AVIS : Message confidentiel dont le contenu peut être privilégié. 
Utilisation/divulgation interdites sans permission. Si reçu par erreur, prière 
d'aller au www.td.com/francais/avis_juridique pour des instructions.
B�CB��[��X��ܚX�KK[XZ[
�\�\�][��X��ܚX�P��]˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\�Z[��]˘\X�K�ܙ�B


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 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 from my 
> filter does not cause the same behavior neither Spring filter redirect.
> 
> Does this ring any bell?
MG>nearest i can tell the JBOSS RewriteValve (enabled-default=on) will only 
rewrite if you put in a reg-exp rule inside rewrite.properties on webapp 
classpath whose rules  RewriteValve  implements..an example :
https://developer.jboss.org/thread/234205?_sscc=t
MG>
> Thanks and Regards,
> Krunal Dhamelia
> Consultant | TD Securities Technology Solutions| TD Securities
> 130 Adelaide 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: Dhamelia, Krunal 
> Sent: Tuesday, October 18, 2016 11:30 AM
> To: Struts Users Mailing List
> Subject: RE: Redirect URLs have class names added after the action name with 
> # or !
> 
> Not yet I will try it on Tomcat.
> 
> I was running on Websphere before and can not recall of getting it on that.
> 
> Thanks and Regards,
> Krunal Dhamelia
> Consultant | TD Securities Technology Solutions| TD Securities
> 130 Adelaide 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 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 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 type of 
> > result with location param value set to value of "nextAction".
> >
> >  > class="logonAction">
> > login
> > 
> > ${nextAction}
> > 
> > 
> >  > name="location">j_spring_security_check?j_username=${username}
> > 
> > 
> 
> Hm looks good. Did you try to test on some other container? Tomcat or 
> Jetty?
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> If you wish to unsubscribe from receiving commercial electronic messages from 
> TD Bank Group, please click here or go to the following web address: 
> www.td.com/tdoptout 
> Si vous souhaitez vous désabonner des messages électroniques de nature 
> commerciale envoyés par Groupe Banque TD veuillez cliquer ici ou vous rendre 
> à l'adresse www.td.com/tddesab
> 
> NOTICE: Confidential message which may be privileged. Unauthorized 
> use/disclosure prohibited. If received in error, please go to 
> www.td.com/legal for instructions.
> AVIS : Message confidentiel dont le contenu peut être privilégié. 
> Utilisation/divulgation interdites sans permission. Si reçu par erreur, 
> prière d'aller au www.td.com/francais/avis_juridique pour des instructions.
> B�CB��[��X��ܚX�KK[XZ[
> �\�\�][��X��ܚX�P��]˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
> �\�\�Z[��]˘\X�K�ܙ�B
> B�CB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P��]˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\�Z[��]˘\X�K�ܙ�B
  

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 
> only I get this problem, I have manual redirect response.sendredirect from my 
> filter does not cause the same behavior neither Spring filter redirect.
>
> Does this ring any bell?

Nope, not at all. You are the first person reporting such issue. Maybe
you have a custom interceptor that does something funky - really hard
to fifure out what's wrong.

>> > class="logonAction">
>> login
>> 
>> ${nextAction}
>> 
>> 
>> > name="location">j_spring_security_check?j_username=${username}
>> 
>> 

How do you define "nextAction"? Is it a String like "homeAction"?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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