Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction
I have tried with Struts 2.3.4 Spring 3.0.5.RELEASE and Spring Security 3.0.5.RELEASE and no success. I thing it's important to mention I'm using Tiles, this time 2.2.2, but I kept trying with Tiles 2.0.6 before and it was the same... What I can tell you to bear in mind is that /Start/Presentation is de default action for namespace /Start/ and that's what is added when redirection is held. On Mon, Jun 18, 2012 at 11:15 AM, Hernán wrote: > I was using Struts 2.3.4 Spring 3.0.6.RELEASE and Spring Security > 3.1.0.RELEASE now I will try to use Spring Security 3.0 to see what happens. > > > On Mon, Jun 18, 2012 at 11:12 AM, Hernán wrote: > >> Well I don't know what is the problem really and there is nothing in the >> web, so it seems is something new, I'll try to explain better so you can >> understand what I mean. >> This web app is in three languages, whenever you go to its URL, the "/" >> namespace has an action that redirects to a namespace /Start/ >> and the action Presentation, depending on the language it goes to a >> different namespace and different Action mapping (different names in the >> corresponding language) but end up being the same action for example >> /Inicio/Presentacion in spanish. When this is done what I see in the URL is >> URL/Inicio/Presentacion!/Inicio/Presentacion#/Inicio/Presentacion. >> This is not a big problem, but the thing is there is another action named >> "ChangeLocaleToSpanishAction" and "ChangeLocaleToEnglishAction" in the "/" >> namespace, this action can be called in every moment for example suppose >> you are in /Start/Professionals/WhoAreWe >> and you want to see the page in spanish you click on the "spanish link" >> and "ChangeLocaleToSpanishAction" is invoked, and you should be redirected >> to /Inicio/Profesionales/QuienesSomos the thing is that >> /Inicio/Profesionales/QuienesSomos!/Inicio/Presentacion?request_locale=es#/Inicio/Presentacion >> is shown in the URL and I use the URL to redirect again if someone wishes >> to change the language, of course I can programmatically exclude the things >> I don't want in the URL, but I just don't want that to appear in the URL. >> There is nothing about that in the web. >> >> >> On Mon, Jun 18, 2012 at 11:01 AM, Maurizio Cucchiara < >> mcucchi...@apache.org> wrote: >> >>> Could you specify your struts2 version? >>> I have a lot of apps based on the stack you mentioned and I've never seen >>> something similar. >>> Did you investigate if it is a struts issue or is something related to >>> the synergy with spring? >>> >>> Twitter :http://www.twitter.com/m_cucchiara >>> G+ :https://plus.google.com/107903711540963855921 >>> Linkedin:http://www.linkedin.com/in/mauriziocucchiara >>> >>> Maurizio Cucchiara >>> >>> >>> On 18 June 2012 15:03, Hernán wrote: >>> >>> > I have upgraded a webApp using struts 2 to use Spring 3 and Spring >>> Security >>> > 3.1, before that Spring 2.5 and Spring Security 2 was used. The >>> problem is >>> > that when using redirectAction I get a >>> > !Namespace?parameters#namespace added to the URL's and that is not a >>> good >>> > idea... I need the URL without that things added. Do you know what is >>> > happening? >>> > >>> > -- >>> > Hernán >>> > >>> >> >> >> >> -- >> Hernán >> > > > > -- > Hernán > -- Hernán
Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction
I was using Struts 2.3.4 Spring 3.0.6.RELEASE and Spring Security 3.1.0.RELEASE now I will try to use Spring Security 3.0 to see what happens. On Mon, Jun 18, 2012 at 11:12 AM, Hernán wrote: > Well I don't know what is the problem really and there is nothing in the > web, so it seems is something new, I'll try to explain better so you can > understand what I mean. > This web app is in three languages, whenever you go to its URL, the "/" > namespace has an action that redirects to a namespace /Start/ > and the action Presentation, depending on the language it goes to a > different namespace and different Action mapping (different names in the > corresponding language) but end up being the same action for example > /Inicio/Presentacion in spanish. When this is done what I see in the URL is > URL/Inicio/Presentacion!/Inicio/Presentacion#/Inicio/Presentacion. > This is not a big problem, but the thing is there is another action named > "ChangeLocaleToSpanishAction" and "ChangeLocaleToEnglishAction" in the "/" > namespace, this action can be called in every moment for example suppose > you are in /Start/Professionals/WhoAreWe > and you want to see the page in spanish you click on the "spanish link" > and "ChangeLocaleToSpanishAction" is invoked, and you should be redirected > to /Inicio/Profesionales/QuienesSomos the thing is that > /Inicio/Profesionales/QuienesSomos!/Inicio/Presentacion?request_locale=es#/Inicio/Presentacion > is shown in the URL and I use the URL to redirect again if someone wishes > to change the language, of course I can programmatically exclude the things > I don't want in the URL, but I just don't want that to appear in the URL. > There is nothing about that in the web. > > > On Mon, Jun 18, 2012 at 11:01 AM, Maurizio Cucchiara < > mcucchi...@apache.org> wrote: > >> Could you specify your struts2 version? >> I have a lot of apps based on the stack you mentioned and I've never seen >> something similar. >> Did you investigate if it is a struts issue or is something related to >> the synergy with spring? >> >> Twitter :http://www.twitter.com/m_cucchiara >> G+ :https://plus.google.com/107903711540963855921 >> Linkedin:http://www.linkedin.com/in/mauriziocucchiara >> >> Maurizio Cucchiara >> >> >> On 18 June 2012 15:03, Hernán wrote: >> >> > I have upgraded a webApp using struts 2 to use Spring 3 and Spring >> Security >> > 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem >> is >> > that when using redirectAction I get a >> > !Namespace?parameters#namespace added to the URL's and that is not a >> good >> > idea... I need the URL without that things added. Do you know what is >> > happening? >> > >> > -- >> > Hernán >> > >> > > > > -- > Hernán > -- Hernán
Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction
Well I don't know what is the problem really and there is nothing in the web, so it seems is something new, I'll try to explain better so you can understand what I mean. This web app is in three languages, whenever you go to its URL, the "/" namespace has an action that redirects to a namespace /Start/ and the action Presentation, depending on the language it goes to a different namespace and different Action mapping (different names in the corresponding language) but end up being the same action for example /Inicio/Presentacion in spanish. When this is done what I see in the URL is URL/Inicio/Presentacion!/Inicio/Presentacion#/Inicio/Presentacion. This is not a big problem, but the thing is there is another action named "ChangeLocaleToSpanishAction" and "ChangeLocaleToEnglishAction" in the "/" namespace, this action can be called in every moment for example suppose you are in /Start/Professionals/WhoAreWe and you want to see the page in spanish you click on the "spanish link" and "ChangeLocaleToSpanishAction" is invoked, and you should be redirected to /Inicio/Profesionales/QuienesSomos the thing is that /Inicio/Profesionales/QuienesSomos!/Inicio/Presentacion?request_locale=es#/Inicio/Presentacion is shown in the URL and I use the URL to redirect again if someone wishes to change the language, of course I can programmatically exclude the things I don't want in the URL, but I just don't want that to appear in the URL. There is nothing about that in the web. On Mon, Jun 18, 2012 at 11:01 AM, Maurizio Cucchiara wrote: > Could you specify your struts2 version? > I have a lot of apps based on the stack you mentioned and I've never seen > something similar. > Did you investigate if it is a struts issue or is something related to > the synergy with spring? > > Twitter :http://www.twitter.com/m_cucchiara > G+ :https://plus.google.com/107903711540963855921 > Linkedin:http://www.linkedin.com/in/mauriziocucchiara > > Maurizio Cucchiara > > > On 18 June 2012 15:03, Hernán wrote: > > > I have upgraded a webApp using struts 2 to use Spring 3 and Spring > Security > > 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem > is > > that when using redirectAction I get a > > !Namespace?parameters#namespace added to the URL's and that is not a good > > idea... I need the URL without that things added. Do you know what is > > happening? > > > > -- > > Hernán > > > -- Hernán
Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction
I am using struts 2.3.1.2 version and also using simple theme. From: Maurizio Cucchiara To: Struts Users Mailing List Sent: Monday, June 18, 2012 10:01 AM Subject: Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction Could you specify your struts2 version? I have a lot of apps based on the stack you mentioned and I've never seen something similar. Did you investigate if it is a struts issue or is something related to the synergy with spring? Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 18 June 2012 15:03, Hernán wrote: > I have upgraded a webApp using struts 2 to use Spring 3 and Spring Security > 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem is > that when using redirectAction I get a > !Namespace?parameters#namespace added to the URL's and that is not a good > idea... I need the URL without that things added. Do you know what is > happening? > > -- > Hernán >
Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction
Could you specify your struts2 version? I have a lot of apps based on the stack you mentioned and I've never seen something similar. Did you investigate if it is a struts issue or is something related to the synergy with spring? Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 18 June 2012 15:03, Hernán wrote: > I have upgraded a webApp using struts 2 to use Spring 3 and Spring Security > 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem is > that when using redirectAction I get a > !Namespace?parameters#namespace added to the URL's and that is not a good > idea... I need the URL without that things added. Do you know what is > happening? > > -- > Hernán >
Struts 2 Spring 3 Spring Security 3.1 RedirectAction
I have upgraded a webApp using struts 2 to use Spring 3 and Spring Security 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem is that when using redirectAction I get a !Namespace?parameters#namespace added to the URL's and that is not a good idea... I need the URL without that things added. Do you know what is happening? -- Hernán