You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ma...@yahoo.com on 2010/08/17 11:23:30 UTC

[S2] 2.2.1 Appended .xhml to back of the url

Hi,

After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to 
turn it off like what 2.1.8.1 was?  


Thanks
LV

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by ma...@yahoo.com.
Hi,

Thanks, yes look like it work. But this cause  other problem on rest now.
For e.g, I call a rest controller like this /user-controller/ABC.json, it will 
set "ABC.json"  to the rest controller instead of "ABC"

Any clue?

Regards
LV






________________________________
From: Dave Newton <da...@gmail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Cc: lukasz.lenart@gmail.com
Sent: Tue, August 17, 2010 11:23:34 AM
Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url

Okay, so extrapolate, and try setting it to an empty string.

On Tue, Aug 17, 2010 at 6:20 AM, <ma...@yahoo.com> wrote:

> Hi,
>
> This solution not work for me, because it now append .action to back
> instead of
> xhtml. This causing all my spring security filter not work.
>
> Regards
> LV
>
>
>
>
> ________________________________
> From: Lukasz Lenart <lu...@googlemail.com>
> To: Struts Users Mailing List <us...@struts.apache.org>
> Sent: Tue, August 17, 2010 10:41:19 AM
> Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url
>
> Did you try to define
> struts.action.extension=action,,
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapituła Javarsovia 2010 http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by jordi <jo...@donky.org>.
i'm using struts.action.extension=,

On Tue, Aug 17, 2010 at 12:23 PM, Dave Newton <da...@gmail.com> wrote:

> Okay, so extrapolate, and try setting it to an empty string.
>
> On Tue, Aug 17, 2010 at 6:20 AM, <ma...@yahoo.com> wrote:
>
> > Hi,
> >
> > This solution not work for me, because it now append .action to back
> > instead of
> > xhtml. This causing all my spring security filter not work.
> >
> > Regards
> > LV
> >
> >
> >
> >
> > ________________________________
> > From: Lukasz Lenart <lu...@googlemail.com>
> > To: Struts Users Mailing List <us...@struts.apache.org>
> > Sent: Tue, August 17, 2010 10:41:19 AM
> > Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url
> >
> > Did you try to define
> > struts.action.extension=action,,
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> > Kapituła Javarsovia 2010 http://javarsovia.pl
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by Dave Newton <da...@gmail.com>.
Okay, so extrapolate, and try setting it to an empty string.

On Tue, Aug 17, 2010 at 6:20 AM, <ma...@yahoo.com> wrote:

> Hi,
>
> This solution not work for me, because it now append .action to back
> instead of
> xhtml. This causing all my spring security filter not work.
>
> Regards
> LV
>
>
>
>
> ________________________________
> From: Lukasz Lenart <lu...@googlemail.com>
> To: Struts Users Mailing List <us...@struts.apache.org>
> Sent: Tue, August 17, 2010 10:41:19 AM
> Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url
>
> Did you try to define
> struts.action.extension=action,,
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Kapituła Javarsovia 2010 http://javarsovia.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by ma...@yahoo.com.
Hi,

This solution not work for me, because it now append .action to back instead of 
xhtml. This causing all my spring security filter not work.

Regards
LV




________________________________
From: Lukasz Lenart <lu...@googlemail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Tue, August 17, 2010 10:41:19 AM
Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url

Did you try to define
struts.action.extension=action,,


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by Lukasz Lenart <lu...@googlemail.com>.
Did you try to define
struts.action.extension=action,,


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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


Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by ma...@yahoo.com.
Hi,

Here is the constant I define in struts.xml
    <constant name="struts.objectFactory" value="spring" />
    <constant name="struts.devMode" value="true" />
    <constant name="struts.ui.theme" value="custom" />
    <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
    <constant name="struts.convention.default.parent.package" value="default"/>
    <constant name="struts.serve.static" value="true" />
    <constant name="struts.i18n.encoding" value="utf-8" />  
    <constant name="struts.custom.i18n.resources" 
        value="resources.global-messages"/>


In struts.xml I also have some global result/exception defined, and some default 
package define.

Regards
Louis




________________________________
From: Lukasz Lenart <lu...@googlemail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Tue, August 17, 2010 10:30:02 AM
Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url

2010/8/17  <ma...@yahoo.com>:
> After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to
> turn it off like what 2.1.8.1 was?

What you have in struts.properties or/and in struts.xml ?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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

Re: [S2] 2.2.1 Appended .xhml to back of the url

Posted by Lukasz Lenart <lu...@googlemail.com>.
2010/8/17  <ma...@yahoo.com>:
> After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to
> turn it off like what 2.1.8.1 was?

What you have in struts.properties or/and in struts.xml ?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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