Re: Default action method for unmatched wildcard actions

2014-05-28 Thread Antonio Sánchez

https://issues.apache.org/jira/browse/WW-4353

El mar 27 may 2014 11:58:45 CEST, Lukasz Lenart escribió:

Yes, please! Thanks!

2014-05-27 11:48 GMT+02:00 Antonio Sánchez :

JIRA?

El mar 27 may 2014 11:45:28 CEST, Lukasz Lenart escribió:


2014-05-27 11:43 GMT+02:00 Antonio Sánchez :


I believe that is not a Conventions feature, but would be great to be.



Yeah... just looking into code and looks doable, the problem is it
will probably break backward compatibility :\



Struts3?



S2.5 is closer ;-)


Regards



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



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



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



Re: Default action method for unmatched wildcard actions

2014-05-28 Thread Lukasz Lenart
Great!

2014-05-28 9:03 GMT+02:00 Antonio Sánchez :
> https://issues.apache.org/jira/browse/WW-4353
>
> El mar 27 may 2014 11:58:45 CEST, Lukasz Lenart escribió:
>
>> Yes, please! Thanks!
>>
>> 2014-05-27 11:48 GMT+02:00 Antonio Sánchez :
>>>
>>> JIRA?
>>>
>>> El mar 27 may 2014 11:45:28 CEST, Lukasz Lenart escribió:


 2014-05-27 11:43 GMT+02:00 Antonio Sánchez :
>>>
>>>
>>> I believe that is not a Conventions feature, but would be great to
>>> be.
>>
>>
>>
>> Yeah... just looking into code and looks doable, the problem is it
>> will probably break backward compatibility :\
>
>
>
> Struts3?



 S2.5 is closer ;-)


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

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



Struts Dojo Plugin is broken (2.3.16.3)

2014-05-28 Thread Andrew Paul
Hi!
If anyone else have issues with latest Struts Dojo, here's something for
you;


The error in question can be seen when the javascript error console
yells: "TypeError: "$Rev$".match(...) is null"

This happens because the current available Struts built from Git and not
Subversion.
When checking out from Subversion, it appends the revision number to all
instances of "$Rev$" in the files.
Git does not do keyword substitution.

This is the offending line;
 
https://github.com/apache/struts/blob/develop/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js#L36

It looks like this when checked out from Subversion;

  dojo.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev:
670371 $".match(/[0-9]+/)[0]),toString:function(){

Now unfortunately it looks like this in the latest jar;

 
dojo.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev$".match(/[0-9]+/)[0]),toString:function(){

So the .match() fails and kills Dojo.


Regards
AP.


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



Re: Struts Dojo Plugin is broken (2.3.16.3)

2014-05-28 Thread Lukasz Lenart
https://issues.apache.org/jira/browse/WW-4349 :-)

2014-05-28 13:27 GMT+02:00 Andrew Paul :
> Hi!
> If anyone else have issues with latest Struts Dojo, here's something for
> you;
>
>
> The error in question can be seen when the javascript error console
> yells: "TypeError: "$Rev$".match(...) is null"
>
> This happens because the current available Struts built from Git and not
> Subversion.
> When checking out from Subversion, it appends the revision number to all
> instances of "$Rev$" in the files.
> Git does not do keyword substitution.
>
> This is the offending line;
>
> https://github.com/apache/struts/blob/develop/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js#L36
>
> It looks like this when checked out from Subversion;
>
>   dojo.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev:
> 670371 $".match(/[0-9]+/)[0]),toString:function(){
>
> Now unfortunately it looks like this in the latest jar;
>
>
> dojo.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev$".match(/[0-9]+/)[0]),toString:function(){
>
> So the .match() fails and kills Dojo.
>
>
> Regards
> AP.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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



Re: Struts Dojo Plugin is broken (2.3.16.3)

2014-05-28 Thread Andreas
Ach, I was too lazy to check the bugrepo and only peeked if the trunk
was changed.

Anyway that is awesome news!
Any hint on when we can expect 2.3.18 and 2.5?

Regards
AP.

On 2014-05-28 18:37, Lukasz Lenart wrote:
> https://issues.apache.org/jira/browse/WW-4349 :-)
>
> 2014-05-28 13:27 GMT+02:00 Andrew Paul :
>


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



Re: Struts Dojo Plugin is broken (2.3.16.3)

2014-05-28 Thread Lukasz Lenart
2.3.18 in month or faster, 2.5 it's a longer story ;-)

2014-05-28 13:49 GMT+02:00 Andreas :
> Ach, I was too lazy to check the bugrepo and only peeked if the trunk
> was changed.
>
> Anyway that is awesome news!
> Any hint on when we can expect 2.3.18 and 2.5?
>
> Regards
> AP.
>
> On 2014-05-28 18:37, Lukasz Lenart wrote:
>> https://issues.apache.org/jira/browse/WW-4349 :-)
>>
>> 2014-05-28 13:27 GMT+02:00 Andrew Paul :
>>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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



Re: Struts2 namespace confusion

2014-05-28 Thread Matt Williams


I found the following property: struts.mapper.alwaysSelectFullNamespace (which 
is false by default).

To me, it should be 'true' to match how the documentation explains matching 
actions to namespaces and falling back to default namespace.





--
On Sat, May 24, 2014 8:51 PM CDT Dave Newton wrote:

>This isn't the struts.enable.SlashesInActionNames = false setting?
>
>Dave
>
>
>
>On Sat, May 24, 2014 at 2:50 PM, Lukasz Lenart wrote:
>
>> Can you share your struts.xml file?
>>
>> Maybe you have defined default-action-ref or wildcard mapping?
>>
>> 2014-05-24 18:58 GMT+02:00 Matt Williams :
>> >
>> >
>> > No, there are no other 'search' actions defined anywhere else.
>> >
>> >
>> >
>> > --
>> > On Sat, May 24, 2014 11:46 AM CDT Ken McWilliams wrote:
>> >
>> >What he explains is likely the result of a search action also mapped in
>> the
>> >default namespace.
>> >On 2014-05-24 9:35 AM, "John Patrick"  wrote:
>> >>
>> >> Not seen this happen myself, what strut
>> >>
>> >> Not seen this happen myself, what struts jar's do you have as it might
>> be
>> >> something like the convention plugin...
>> >>
>> >> If your using maven then it might be useful for others to include what
>> >> specific maven dependencies your including so potentially someone else
>> can
>> >> try using the exact same jars.
>> >>
>> >> John
>> >>
>> >>
>> >>
>> >> On 24 May 2014 15:28, Matt Williams  wrote:
>> >>
>> >> > Hello,
>> >> > I have been using struts 2.1.8 for a while and last night noticed an
>> >> issue
>> >> > with mapping actions working with any url.
>> >> >
>> >> > For instance in the struts.xml file:
>> >> > - I have a package with a namespace of "/employee".
>> >> > - Within the package, I have an action mapping "search"
>> >> > - The webapp name is "TestWeb".
>> >> >
>> >> > So to access this page, I can go to:
>> >> > http://localhost:8080/TestWeb/employee/search.action and this works.
>> >> > However, if anything is added to the URL after the namespace such as:
>> >> > http://localhost:8080/TestWeb/employee/someExtraText/search.actionthe
>> >> > page still loads.
>> >> >
>> >> > Why does this happen?
>> >> >
>> >> >
>> >> > Reading the struts documentation
>> >> > (
>> >>
>> http://struts.apache.org/release/2.1.x/docs/namespace-configuration.html)
>> >> > would make me assume that it should search the
>> "/employee/someExtraText"
>> >> > namespace...not find it, so then it should fall back to the default "
>> >> > namespace...not find it...then display no action mapping found.
>> >> >
>> >> >
>> >> > Any insight? Thanks!
>> >> >
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> > For additional commands, e-mail: user-h...@struts.apache.org
>> >> >
>> >> >
>> >>
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>-- 
>e: davelnew...@gmail.com
>m: 908-380-8699
>s: davelnewton_skype
>t: @dave_newton 
>b: Bucky Bits 
>g: davelnewton 
>so: Dave Newton 


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