You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Lukasz Lenart <lu...@apache.org> on 2017/06/22 13:36:07 UTC

Struts 2.5.11 test build is ready

Hi,

Please take a time and test the bits - any help is appreciated. Please
report any problems back. I'll call for vote in a week if no problems
will be spotted.

Staging Maven repo
https://repository.apache.org/content/groups/staging/

Standalone artifacts
https://dist.apache.org/repos/dist/dev/struts/2.5.11/

Release notes
https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11


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

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


Re: Struts 2.5.11 test build is ready

Posted by Yasser Zamani <ya...@live.com>.
I started with WW-4810 but could not re-produce. I tested 
`?request_locale=` , `?request_locale=''` and `?request_locale=""`. All 
works here with Struts 2.5.11. Same for `ff` , `fff` and `ffff`.

Sorry if it's a bad question; Couldn't we do them in 2.5.11, or 2.5.11 
is released and available publicly and not modifiable?

On 7/5/2017 3:27 PM, Lukasz Lenart wrote:
> 2017-07-01 17:42 GMT+02:00 Yasser Zamani <ya...@live.com>:
>> Struts 2.5.11 successfully passed Our JMeter functional integration test
>> scenarios :)
>
> Great! There are two issues I want to address and release 2.5.12, what
> do you think?
>
> https://issues.apache.org/jira/projects/WW/versions/12341037
>
>
> Regards
>

Re: Struts 2.5.11 test build is ready

Posted by Christoph Nenning <Ch...@lex-com.net>.
> > Struts 2.5.11 successfully passed Our JMeter functional integration 
test
> > scenarios :)
> 
> Great! There are two issues I want to address and release 2.5.12, what
> do you think?
> 
> https://issues.apache.org/jira/projects/WW/versions/12341037
> 
> 

+1


Regards,
Christoph


This Email was scanned by Sophos Anti Virus

Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
Ok, all the things are done :) So I'm going to drop 2.5.11 and prepare
2.5.12 ASAP - I assume there no more issue and we can officially
release on the next Monday.

2017-07-05 15:49 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> 2.5.11 is in a test phase and I would like to either resolve the issue
> with locale or mark it as invalid. Then we can decided what to do.
>
> 2017-07-05 15:46 GMT+02:00 Yasser Zamani <ya...@live.com>:
>> I started with WW-4810 but could not re-produce. I tested
>> `?request_locale=` , `?request_locale=''` and `?request_locale=""`. All
>> works here with Struts 2.5.11. Same for `ff` , `fff` and `ffff`.
>>
>> Sorry if it's a bad question; Couldn't we do them in 2.5.11, or 2.5.11
>> is released and available publicly and not modifiable?
>>
>> On 7/5/2017 3:27 PM, Lukasz Lenart wrote:
>>> 2017-07-01 17:42 GMT+02:00 Yasser Zamani <ya...@live.com>:
>>>> Struts 2.5.11 successfully passed Our JMeter functional integration test
>>>> scenarios :)
>>>
>>> Great! There are two issues I want to address and release 2.5.12, what
>>> do you think?
>>>
>>> https://issues.apache.org/jira/projects/WW/versions/12341037
>>>
>>>
>>> Regards
>>>

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


Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2.5.11 is in a test phase and I would like to either resolve the issue
with locale or mark it as invalid. Then we can decided what to do.

2017-07-05 15:46 GMT+02:00 Yasser Zamani <ya...@live.com>:
> I started with WW-4810 but could not re-produce. I tested
> `?request_locale=` , `?request_locale=''` and `?request_locale=""`. All
> works here with Struts 2.5.11. Same for `ff` , `fff` and `ffff`.
>
> Sorry if it's a bad question; Couldn't we do them in 2.5.11, or 2.5.11
> is released and available publicly and not modifiable?
>
> On 7/5/2017 3:27 PM, Lukasz Lenart wrote:
>> 2017-07-01 17:42 GMT+02:00 Yasser Zamani <ya...@live.com>:
>>> Struts 2.5.11 successfully passed Our JMeter functional integration test
>>> scenarios :)
>>
>> Great! There are two issues I want to address and release 2.5.12, what
>> do you think?
>>
>> https://issues.apache.org/jira/projects/WW/versions/12341037
>>
>>
>> Regards
>>

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


Re: Struts 2.5.11 test build is ready

Posted by Yasser Zamani <ya...@live.com>.
I started with WW-4810 but could not re-produce. I tested 
`?request_locale=` , `?request_locale=''` and `?request_locale=""`. All 
works here with Struts 2.5.11. Same for `ff` , `fff` and `ffff`.

Sorry if it's a bad question; Couldn't we do them in 2.5.11, or 2.5.11 
is released and available publicly and not modifiable?

On 7/5/2017 3:27 PM, Lukasz Lenart wrote:
> 2017-07-01 17:42 GMT+02:00 Yasser Zamani <ya...@live.com>:
>> Struts 2.5.11 successfully passed Our JMeter functional integration test
>> scenarios :)
>
> Great! There are two issues I want to address and release 2.5.12, what
> do you think?
>
> https://issues.apache.org/jira/projects/WW/versions/12341037
>
>
> Regards
>

Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-07-01 17:42 GMT+02:00 Yasser Zamani <ya...@live.com>:
> Struts 2.5.11 successfully passed Our JMeter functional integration test
> scenarios :)

Great! There are two issues I want to address and release 2.5.12, what
do you think?

https://issues.apache.org/jira/projects/WW/versions/12341037


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

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


Re: Struts 2.5.11 test build is ready

Posted by Yasser Zamani <ya...@live.com>.
Struts 2.5.11 successfully passed Our JMeter functional integration test 
scenarios :)

On 6/22/2017 6:06 PM, Lukasz Lenart wrote:
> Hi,
>
> Please take a time and test the bits - any help is appreciated. Please
> report any problems back. I'll call for vote in a week if no problems
> will be spotted.
>
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
>
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>
>
> Thanks in advance
>

Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
Thanks! Seems to do the job!

Markus

Am 25.06.2017 um 11:21 schrieb Greg Huber:
> If you know the location of the messages you can just use :
>
> ResourceBundle.getBundle("ApplicationResources", locale);
>
> Which would be faster than using the LocalizedTextUtil  which searches the
> hierarchy etc.
>
> On 25 June 2017 at 07:07, info@flyingfischer.ch <in...@flyingfischer.ch>
> wrote:
>
>> I get stuck with the refactored LocalizedTextUtil:
>>
>> We had a change in 2.5.2 which disallowed the use of getText(String key)
>> in classes that cannot extend ActionSupport.
>>
>> I did work around with a custom utility class that did the job, built
>> mainly around:
>>
>> final String value = LocalizedTextUtil.findDefaultText(key, getLocale());
>>
>> This does not work anymore. What is the present correct way to get this
>> working? Is there any documentation for this?
>>
>> Thanks!
>>
>> Markus
>>
>>
>> Am 23.06.2017 um 13:46 schrieb Christoph Nenning:
>>> Hi,
>>>
>>> it's working great in my apps!
>>>
>>> But I had to adjust some things:
>>> - explicitly upgrade versions of logging library and apis (log4j to 2.8.2
>>> and slf4j to 1.7.24)
>>> - we have some custom code dealing with TextProvider, that needed to be
>>> adapted after refactoring in struts
>>>
>>>
>>>
>>> regards,
>>> Christoph
>>>
>>>
>>>
>>>> From: Lukasz Lenart <lu...@apache.org>
>>>> To: Struts Developers List <de...@struts.apache.org>,
>>>> Date: 22.06.2017 15:36
>>>> Subject: Struts 2.5.11 test build is ready
>>>>
>>>> Hi,
>>>>
>>>> Please take a time and test the bits - any help is appreciated. Please
>>>> report any problems back. I'll call for vote in a week if no problems
>>>> will be spotted.
>>>>
>>>> Staging Maven repo
>>>> https://repository.apache.org/content/groups/staging/
>>>>
>>>> Standalone artifacts
>>>> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>>>>
>>>> Release notes
>>>> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>>>>
>>>>
>>>> Thanks in advance
>>>> --
>>>> Łukasz
>>>> + 48 606 323 122 http://www.lenart.org.pl/
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>>
>>> This Email was scanned by Sophos Anti Virus
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>


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


Re: Struts 2.5.11 test build is ready

Posted by Greg Huber <gr...@gmail.com>.
If you know the location of the messages you can just use :

ResourceBundle.getBundle("ApplicationResources", locale);

Which would be faster than using the LocalizedTextUtil  which searches the
hierarchy etc.

On 25 June 2017 at 07:07, info@flyingfischer.ch <in...@flyingfischer.ch>
wrote:

> I get stuck with the refactored LocalizedTextUtil:
>
> We had a change in 2.5.2 which disallowed the use of getText(String key)
> in classes that cannot extend ActionSupport.
>
> I did work around with a custom utility class that did the job, built
> mainly around:
>
> final String value = LocalizedTextUtil.findDefaultText(key, getLocale());
>
> This does not work anymore. What is the present correct way to get this
> working? Is there any documentation for this?
>
> Thanks!
>
> Markus
>
>
> Am 23.06.2017 um 13:46 schrieb Christoph Nenning:
> > Hi,
> >
> > it's working great in my apps!
> >
> > But I had to adjust some things:
> > - explicitly upgrade versions of logging library and apis (log4j to 2.8.2
> > and slf4j to 1.7.24)
> > - we have some custom code dealing with TextProvider, that needed to be
> > adapted after refactoring in struts
> >
> >
> >
> > regards,
> > Christoph
> >
> >
> >
> >> From: Lukasz Lenart <lu...@apache.org>
> >> To: Struts Developers List <de...@struts.apache.org>,
> >> Date: 22.06.2017 15:36
> >> Subject: Struts 2.5.11 test build is ready
> >>
> >> Hi,
> >>
> >> Please take a time and test the bits - any help is appreciated. Please
> >> report any problems back. I'll call for vote in a week if no problems
> >> will be spotted.
> >>
> >> Staging Maven repo
> >> https://repository.apache.org/content/groups/staging/
> >>
> >> Standalone artifacts
> >> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
> >>
> >> Release notes
> >> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
> >>
> >>
> >> Thanks in advance
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: dev-help@struts.apache.org
> >>
> > This Email was scanned by Sophos Anti Virus
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-06-27 10:25 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
> provider.findText() seems to need in any case three arguments.
>
> provider.findDefaultText(key, locale) works perfectly without bundle.

Ach... you are right, this is what "global-only" implementation does,
it only uses "findDefaultText" methods to search for messages.


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

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


Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
Am 27.06.2017 um 10:05 schrieb Lukasz Lenart:
> 2017-06-27 8:59 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
>> For the time being, it really can't be shorter than this?:
>>
>>         final LocaleProviderFactory factory =
>> ActionContext.getContext().getInstance(LocaleProviderFactory.class);
>>         final Locale locale = factory.createLocaleProvider().getLocale();
>>         final ResourceBundle bundle =
>> ResourceBundle.getBundle("global-messages", locale);
>>         final LocalizedTextProvider provider =
>> ActionContext.getContext().getInstance(LocalizedTextProvider.class);
>>         final String value = provider.findText(bundle, key, locale);
> Why do you need a bundle? If you defined the "global-messages" in the
> "struts.custom.i18n.resources" you do need to refer to a bundle
> anymore.
>

Thanks again!

provider.findText() seems to need in any case three arguments.

provider.findDefaultText(key, locale) works perfectly without bundle.

Markus

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


Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-06-27 8:59 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
> For the time being, it really can't be shorter than this?:
>
>         final LocaleProviderFactory factory =
> ActionContext.getContext().getInstance(LocaleProviderFactory.class);
>         final Locale locale = factory.createLocaleProvider().getLocale();
>         final ResourceBundle bundle =
> ResourceBundle.getBundle("global-messages", locale);
>         final LocalizedTextProvider provider =
> ActionContext.getContext().getInstance(LocalizedTextProvider.class);
>         final String value = provider.findText(bundle, key, locale);

Why do you need a bundle? If you defined the "global-messages" in the
"struts.custom.i18n.resources" you do need to refer to a bundle
anymore.

> provider.findText seems to need an additional argument. And does
> factory.createLocaleProvider().getLocale() by any chance return null?

It can but only when you call this code out of action flow - the same
as using ActionContext.getContext().getLocale()


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

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


Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
Am 27.06.2017 um 08:42 schrieb Lukasz Lenart:
> 2017-06-27 8:38 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
>> Thanks! This works fine. And you are perfectly right:
>>
>> StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));
>>
>> Is not needed anymore. It seemed, if I am not mistaken, to be necessary
>> with:
>>
>> LocalizedTextUtil.findDefaultText(key, getLocale());
>>
>> Single quotes in my properties files are escaped with two single quotes.
>>
>> Well it is and was kind of a hacky approach, to compensate for the lost
>> convenience method of getText(key) since 2.5.2. I do not like to do
>> things that way, and prefer to leave such details to the framework.
> Ah... I think it is the same problem as this issue [1], it will be
> resolved in 2.6 (or another 2.5.x) - which means your hack want be
> needed :) Sorry for that :(
>
> [1] https://issues.apache.org/jira/browse/WW-4742
>
>
> Regards
Thanks for the update.

For the time being, it really can't be shorter than this?:

        final LocaleProviderFactory factory =
ActionContext.getContext().getInstance(LocaleProviderFactory.class);
        final Locale locale = factory.createLocaleProvider().getLocale();
        final ResourceBundle bundle =
ResourceBundle.getBundle("global-messages", locale);
        final LocalizedTextProvider provider =
ActionContext.getContext().getInstance(LocalizedTextProvider.class);
        final String value = provider.findText(bundle, key, locale);

provider.findText seems to need an additional argument. And does
factory.createLocaleProvider().getLocale() by any chance return null?

Markus



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


Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-06-27 8:38 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
> Thanks! This works fine. And you are perfectly right:
>
> StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));
>
> Is not needed anymore. It seemed, if I am not mistaken, to be necessary
> with:
>
> LocalizedTextUtil.findDefaultText(key, getLocale());
>
> Single quotes in my properties files are escaped with two single quotes.
>
> Well it is and was kind of a hacky approach, to compensate for the lost
> convenience method of getText(key) since 2.5.2. I do not like to do
> things that way, and prefer to leave such details to the framework.

Ah... I think it is the same problem as this issue [1], it will be
resolved in 2.6 (or another 2.5.x) - which means your hack want be
needed :) Sorry for that :(

[1] https://issues.apache.org/jira/browse/WW-4742


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

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


Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
> It must be a bean create by the framework, e.g. an action, then the
> LocalizedTextProvider gets injected. If you want to use it in some
> other context you can use this approach:
>
> LocalizedTextProvider provider =
> ActionContext.getContext().getInstance(LocalizedTextProvider.class)
> LocaleProviderFactory factory =
> ActionContext.getContext().getInstance(LocaleProviderFactory.class)
>
> provider.findText("a.key", factory.createLocaleProvider().getLocale());
>
>> StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));
> Why do you do this?
>
>
> Regards
Thanks! This works fine. And you are perfectly right:

StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));

Is not needed anymore. It seemed, if I am not mistaken, to be necessary
with:

LocalizedTextUtil.findDefaultText(key, getLocale());

Single quotes in my properties files are escaped with two single quotes.

Well it is and was kind of a hacky approach, to compensate for the lost
convenience method of getText(key) since 2.5.2. I do not like to do
things that way, and prefer to leave such details to the framework.

Markus

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


Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-06-26 18:28 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
> Thanks for the inputs. I cant't get this to work. Sorry, this is rather
> a topic for user list. I'll wait to see some examples coming around. For
> the moment being I'll use, not very sophisticated my utility class
> below. This works fine. Though I think Struts should have somthing like
> this integrated. Before 2.5 this was as easy as "getText(key)".

It must be a bean create by the framework, e.g. an action, then the
LocalizedTextProvider gets injected. If you want to use it in some
other context you can use this approach:

LocalizedTextProvider provider =
ActionContext.getContext().getInstance(LocalizedTextProvider.class)
LocaleProviderFactory factory =
ActionContext.getContext().getInstance(LocaleProviderFactory.class)

provider.findText("a.key", factory.createLocaleProvider().getLocale());

> StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));

Why do you do this?


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

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


Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
Am 26.06.2017 um 08:57 schrieb Lukasz Lenart:
> 2017-06-25 8:07 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
>> I get stuck with the refactored LocalizedTextUtil:
>>
>> We had a change in 2.5.2 which disallowed the use of getText(String key)
>> in classes that cannot extend ActionSupport.
>>
>> I did work around with a custom utility class that did the job, built
>> mainly around:
>>
>> final String value = LocalizedTextUtil.findDefaultText(key, getLocale());
>>
>> This does not work anymore. What is the present correct way to get this
>> working? Is there any documentation for this?
> LocalizedTextUtil was converted into a bean, the LocalizedTextProvider
> - an interface with two implementations. You can use them by defining
> a setter and annotating it with @Inject (like for other Struts beans)
>
> @Inject
> public void setLocalizedTextProvider(LocalizedTextProvider
> localizedTextProvider) {
>     this.localizedTextProvider = localizedTextProvider;
> }
>
> This will inject an implementation which behaves the same as
> LocalizedTextUtil, it will scan hierarchy (but just once) to localise
> proper resource bundles.
>
> The second implementation based just on the global properties defined
> with "struts.custom.i18n.resources" and you can use it by adding a
> name to the @Inject
>
> @Inject("global-only")
> public void setLocalizedTextProvider(LocalizedTextProvider
> localizedTextProvider) {
>     this.localizedTextProvider = localizedTextProvider;
> }
>
>
> Regards

Thanks for the inputs. I cant't get this to work. Sorry, this is rather
a topic for user list. I'll wait to see some examples coming around. For
the moment being I'll use, not very sophisticated my utility class
below. This works fine. Though I think Struts should have somthing like
this integrated. Before 2.5 this was as easy as "getText(key)".

Markus


package util;

import java.util.Locale;
import java.util.ResourceBundle;

import org.apache.commons.text.StringEscapeUtils;

import com.opensymphony.xwork2.ActionContext;

public class Texti18n {

    /**
     * Returns i18n text messages from the default bundles for utility
classes which cannot
     * extend ActionSupport: Utility myUtility = new Utility() will not
work with struts default
     * getText() i18n mechanism, due to a change in behavior with struts
> 2.5.2.
     * Returns the value for a key depending on the locale present. For
missing i18n keys in a given
     * language bundle, the default bundle (English) will be used. If a
key is not present at all, the key will
     * be returned instead of a value.
     */
    public String getText(final String key) {

        final ResourceBundle bundle =
ResourceBundle.getBundle("global-messages", getLocale());
        final String value = bundle.getString(key);

        if (value != null) {
            return
StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));
        }

        return key;
    }

    /**
     * Returns the Locale present in the ActionContext. The Locale.US
will be returned as default,
     * if no Locale is present.
     */
    public Locale getLocale() {

        final ActionContext context = ActionContext.getContext();

        if (context != null && context.getLocale() != null) {
            return context.getLocale();
        } else {
            // default language
            return Locale.US;
        }

    }

}





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


Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
2017-06-25 8:07 GMT+02:00 info@flyingfischer.ch <in...@flyingfischer.ch>:
> I get stuck with the refactored LocalizedTextUtil:
>
> We had a change in 2.5.2 which disallowed the use of getText(String key)
> in classes that cannot extend ActionSupport.
>
> I did work around with a custom utility class that did the job, built
> mainly around:
>
> final String value = LocalizedTextUtil.findDefaultText(key, getLocale());
>
> This does not work anymore. What is the present correct way to get this
> working? Is there any documentation for this?

LocalizedTextUtil was converted into a bean, the LocalizedTextProvider
- an interface with two implementations. You can use them by defining
a setter and annotating it with @Inject (like for other Struts beans)

@Inject
public void setLocalizedTextProvider(LocalizedTextProvider
localizedTextProvider) {
    this.localizedTextProvider = localizedTextProvider;
}

This will inject an implementation which behaves the same as
LocalizedTextUtil, it will scan hierarchy (but just once) to localise
proper resource bundles.

The second implementation based just on the global properties defined
with "struts.custom.i18n.resources" and you can use it by adding a
name to the @Inject

@Inject("global-only")
public void setLocalizedTextProvider(LocalizedTextProvider
localizedTextProvider) {
    this.localizedTextProvider = localizedTextProvider;
}


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

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


Re: Struts 2.5.11 test build is ready

Posted by "info@flyingfischer.ch" <in...@flyingfischer.ch>.
I get stuck with the refactored LocalizedTextUtil:

We had a change in 2.5.2 which disallowed the use of getText(String key)
in classes that cannot extend ActionSupport.

I did work around with a custom utility class that did the job, built
mainly around:

final String value = LocalizedTextUtil.findDefaultText(key, getLocale());

This does not work anymore. What is the present correct way to get this
working? Is there any documentation for this?

Thanks!

Markus


Am 23.06.2017 um 13:46 schrieb Christoph Nenning:
> Hi,
>
> it's working great in my apps!
>
> But I had to adjust some things:
> - explicitly upgrade versions of logging library and apis (log4j to 2.8.2 
> and slf4j to 1.7.24)
> - we have some custom code dealing with TextProvider, that needed to be 
> adapted after refactoring in struts
>
>
>
> regards,
> Christoph
>
>
>
>> From: Lukasz Lenart <lu...@apache.org>
>> To: Struts Developers List <de...@struts.apache.org>, 
>> Date: 22.06.2017 15:36
>> Subject: Struts 2.5.11 test build is ready
>>
>> Hi,
>>
>> Please take a time and test the bits - any help is appreciated. Please
>> report any problems back. I'll call for vote in a week if no problems
>> will be spotted.
>>
>> Staging Maven repo
>> https://repository.apache.org/content/groups/staging/
>>
>> Standalone artifacts
>> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>>
>> Release notes
>> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>>
>>
>> Thanks in advance
>> -- 
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
> This Email was scanned by Sophos Anti Virus
>


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


Re: Struts 2.5.11 test build is ready

Posted by Christoph Nenning <Ch...@lex-com.net>.
Hi,

it's working great in my apps!

But I had to adjust some things:
- explicitly upgrade versions of logging library and apis (log4j to 2.8.2 
and slf4j to 1.7.24)
- we have some custom code dealing with TextProvider, that needed to be 
adapted after refactoring in struts



regards,
Christoph



> From: Lukasz Lenart <lu...@apache.org>
> To: Struts Developers List <de...@struts.apache.org>, 
> Date: 22.06.2017 15:36
> Subject: Struts 2.5.11 test build is ready
> 
> Hi,
> 
> Please take a time and test the bits - any help is appreciated. Please
> report any problems back. I'll call for vote in a week if no problems
> will be spotted.
> 
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
> 
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
> 
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
> 
> 
> Thanks in advance
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 

This Email was scanned by Sophos Anti Virus

Re: Struts 2.5.11 test build is ready

Posted by Greg Huber <gr...@gmail.com>.
OK, great, switched to 3.6 and seems to work now.

Cheers Greg.

On 23 June 2017 at 09:15, Lukasz Lenart <lu...@apache.org> wrote:

> Just notice that the Struts 2.5.11 is using Commons-Lang 3.6, maybe
> this is the issue.
>
> 2017-06-23 10:04 GMT+02:00 Greg Huber <gr...@gmail.com>:
> > Getting a really strange message testing this :
> >
> >
> >    1.
> >    org.apache.commons.lang3.reflect.MethodUtils.
> getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/
> Class;ZZ)Ljava/util/List;
> >    2. java.lang.NoSuchMethodError:
> >    org.apache.commons.lang3.reflect.MethodUtils.
> getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/
> Class;ZZ)Ljava/util/List;
> >
> > Seems to be on this statement :
> >
> > <s:a href="https://someURL/me" rel="nofollow noopener"
> target="_blank"><img
> > src="<s:url value='/images/someImage.png'/>" alt="SomeAlt"
> > title="SomeTitle" border="0" /></s:a>
> >
> >
> > as if I remove it it works?? Also if I go back to 2.5.10.1 it works.
> >
> > Cheers Greg
> >
> > On 22 June 2017 at 14:36, Lukasz Lenart <lu...@apache.org> wrote:
> >
> >> Hi,
> >>
> >> Please take a time and test the bits - any help is appreciated. Please
> >> report any problems back. I'll call for vote in a week if no problems
> >> will be spotted.
> >>
> >> Staging Maven repo
> >> https://repository.apache.org/content/groups/staging/
> >>
> >> Standalone artifacts
> >> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
> >>
> >> Release notes
> >> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
> >>
> >>
> >> Thanks in advance
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: dev-help@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
Just notice that the Struts 2.5.11 is using Commons-Lang 3.6, maybe
this is the issue.

2017-06-23 10:04 GMT+02:00 Greg Huber <gr...@gmail.com>:
> Getting a really strange message testing this :
>
>
>    1.
>    org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;
>    2. java.lang.NoSuchMethodError:
>    org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;
>
> Seems to be on this statement :
>
> <s:a href="https://someURL/me" rel="nofollow noopener" target="_blank"><img
> src="<s:url value='/images/someImage.png'/>" alt="SomeAlt"
> title="SomeTitle" border="0" /></s:a>
>
>
> as if I remove it it works?? Also if I go back to 2.5.10.1 it works.
>
> Cheers Greg
>
> On 22 June 2017 at 14:36, Lukasz Lenart <lu...@apache.org> wrote:
>
>> Hi,
>>
>> Please take a time and test the bits - any help is appreciated. Please
>> report any problems back. I'll call for vote in a week if no problems
>> will be spotted.
>>
>> Staging Maven repo
>> https://repository.apache.org/content/groups/staging/
>>
>> Standalone artifacts
>> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>>
>> Release notes
>> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>>
>>
>> Thanks in advance
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>

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


Re: Struts 2.5.11 test build is ready

Posted by Greg Huber <gr...@gmail.com>.
*javax.servlet.ServletException: java.lang.NoSuchMethodError:
org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;*

    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:909)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:838)
    org.apache.jsp.WEB_002dINF.jsps.core.LoginRegister_jsp._jspService(LoginRegister_jsp.java:244)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:64)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:524)
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:895)
    org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:679)
    org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:673)
    org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:123)
    org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)
    org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
    org.apache.tiles.request.render.ChainedDelegateRenderer.render(ChainedDelegateRenderer.java:68)
    org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
    org.apache.tiles.TilesContainerWrapper.render(TilesContainerWrapper.java:108)
    org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:188)
    org.apache.tiles.template.InsertAttributeModel.execute(InsertAttributeModel.java:132)
    org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:299)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspx_meth_tiles_005finsertAttribute_005f6(tiles_002dloginpage_jsp.java:715)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspx_meth_s_005fif_005f0(tiles_002dloginpage_jsp.java:680)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspService(tiles_002dloginpage_jsp.java:248)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.events.ui.core.filters.PersistenceSessionFilter.doFilter(PersistenceSessionFilter.java:36)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)


​....

*java.lang.NoSuchMethodError:
org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;*

    org.apache.struts2.components.Component.getStandardAttributes(Component.java:546)
    org.apache.struts2.components.Component.isValidTagAttribute(Component.java:534)
    org.apache.struts2.components.UIBean.setDynamicAttributes(UIBean.java:1248)
    org.apache.struts2.views.jsp.ui.AbstractUITag.populateParams(AbstractUITag.java:133)
    org.apache.struts2.views.jsp.ui.AbstractClosingTag.populateParams(AbstractClosingTag.java:32)
    org.apache.struts2.views.jsp.ui.AnchorTag.populateParams(AnchorTag.java:59)
    org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53)
    org.apache.jsp.WEB_002dINF.jsps.core.LoginRegister_jsp._jspx_meth_s_005fa_005f0(LoginRegister_jsp.java:364)
    org.apache.jsp.WEB_002dINF.jsps.core.LoginRegister_jsp._jspService(LoginRegister_jsp.java:178)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:64)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:524)
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:895)
    org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:679)
    org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:673)
    org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:123)
    org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)
    org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
    org.apache.tiles.request.render.ChainedDelegateRenderer.render(ChainedDelegateRenderer.java:68)
    org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
    org.apache.tiles.TilesContainerWrapper.render(TilesContainerWrapper.java:108)
    org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:188)
    org.apache.tiles.template.InsertAttributeModel.execute(InsertAttributeModel.java:132)
    org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:299)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspx_meth_tiles_005finsertAttribute_005f6(tiles_002dloginpage_jsp.java:715)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspx_meth_s_005fif_005f0(tiles_002dloginpage_jsp.java:680)
    org.apache.jsp.WEB_002dINF.jsps.tiles.tiles_002dloginpage_jsp._jspService(tiles_002dloginpage_jsp.java:248)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

​





On 23 June 2017 at 09:07, Lukasz Lenart <lu...@apache.org> wrote:

> Greg can you post the whole stack trace?
>
> 2017-06-23 10:04 GMT+02:00 Greg Huber <gr...@gmail.com>:
> > Getting a really strange message testing this :
> >
> >
> >    1.
> >    org.apache.commons.lang3.reflect.MethodUtils.
> getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/
> Class;ZZ)Ljava/util/List;
> >    2. java.lang.NoSuchMethodError:
> >    org.apache.commons.lang3.reflect.MethodUtils.
> getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/
> Class;ZZ)Ljava/util/List;
> >
> > Seems to be on this statement :
> >
> > <s:a href="https://someURL/me" rel="nofollow noopener"
> target="_blank"><img
> > src="<s:url value='/images/someImage.png'/>" alt="SomeAlt"
> > title="SomeTitle" border="0" /></s:a>
> >
> >
> > as if I remove it it works?? Also if I go back to 2.5.10.1 it works.
> >
> > Cheers Greg
> >
> > On 22 June 2017 at 14:36, Lukasz Lenart <lu...@apache.org> wrote:
> >
> >> Hi,
> >>
> >> Please take a time and test the bits - any help is appreciated. Please
> >> report any problems back. I'll call for vote in a week if no problems
> >> will be spotted.
> >>
> >> Staging Maven repo
> >> https://repository.apache.org/content/groups/staging/
> >>
> >> Standalone artifacts
> >> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
> >>
> >> Release notes
> >> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
> >>
> >>
> >> Thanks in advance
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: dev-help@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts 2.5.11 test build is ready

Posted by Lukasz Lenart <lu...@apache.org>.
Greg can you post the whole stack trace?

2017-06-23 10:04 GMT+02:00 Greg Huber <gr...@gmail.com>:
> Getting a really strange message testing this :
>
>
>    1.
>    org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;
>    2. java.lang.NoSuchMethodError:
>    org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;
>
> Seems to be on this statement :
>
> <s:a href="https://someURL/me" rel="nofollow noopener" target="_blank"><img
> src="<s:url value='/images/someImage.png'/>" alt="SomeAlt"
> title="SomeTitle" border="0" /></s:a>
>
>
> as if I remove it it works?? Also if I go back to 2.5.10.1 it works.
>
> Cheers Greg
>
> On 22 June 2017 at 14:36, Lukasz Lenart <lu...@apache.org> wrote:
>
>> Hi,
>>
>> Please take a time and test the bits - any help is appreciated. Please
>> report any problems back. I'll call for vote in a week if no problems
>> will be spotted.
>>
>> Staging Maven repo
>> https://repository.apache.org/content/groups/staging/
>>
>> Standalone artifacts
>> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>>
>> Release notes
>> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>>
>>
>> Thanks in advance
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>

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


Re: Struts 2.5.11 test build is ready

Posted by Greg Huber <gr...@gmail.com>.
Getting a really strange message testing this :


   1.
   org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;
   2. java.lang.NoSuchMethodError:
   org.apache.commons.lang3.reflect.MethodUtils.getMethodsListWithAnnotation(Ljava/lang/Class;Ljava/lang/Class;ZZ)Ljava/util/List;

Seems to be on this statement :

<s:a href="https://someURL/me" rel="nofollow noopener" target="_blank"><img
src="<s:url value='/images/someImage.png'/>" alt="SomeAlt"
title="SomeTitle" border="0" /></s:a>


as if I remove it it works?? Also if I go back to 2.5.10.1 it works.

Cheers Greg

On 22 June 2017 at 14:36, Lukasz Lenart <lu...@apache.org> wrote:

> Hi,
>
> Please take a time and test the bits - any help is appreciated. Please
> report any problems back. I'll call for vote in a week if no problems
> will be spotted.
>
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
>
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/2.5.11/
>
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11
>
>
> Thanks in advance
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>