struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mounir Benzid ...@meetingmasters.de>
Subject Re: Does the orrder of wildcard-annotated methods effects greediness?
Date Thu, 08 Mar 2012 12:50:57 GMT
Am 07.03.2012 19:17, schrieb Maurizio Cucchiara:
> In addition to what Dave suggested, could you check it against the latest
> nightly build? IIRC I made some change recently on wildcard support.

Can you please tell me how to access your nightly builds through maven?
https://builds.apache.org/job/Struts2/lastStableBuild/org.apache.struts$struts2-assembly/

or should I svn and build locally?

At the moment I'm developing against 2.3.2-snapshots

cheers
> Twitter     :http://www.twitter.com/m_cucchiara
> G+          :https://plus.google.com/107903711540963855921
> Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
>
> Maurizio Cucchiara
>
>
> On 7 March 2012 18:39, Mounir Benzid<mb@meetingmasters.de>  wrote:
>
>> Here is a simple example showing two methods in the given order
>>
>>     /***************************************************************
>> **********************************/
>>     @Override
>>     @Action(value="/do/some/**specificstuff/{thing}",
>> results={@Result(location = "result.jsp")}),
>>     public String execute() throws Exception {...}
>>
>>
>>     /***************************************************************
>> **********************************/
>>     @Override
>>     @Action(value="/do/some/{**thing}", results={@Result(location =
>> "result.jsp")}),
>>     public String input() throws Exception {...}
>>
>>
>>
>> Now if the request contains myApp/do/some/specificstuff/**eat
>>
>>
>> which action will fire? I my case it's the input() method but it really
>> should be the execute()  method.
>> The parameter "thing" in the second annotation then equals
>> "specificstuff/eat"
>>
>>
>> Is it possible to control the "greediness" of the patternmatcher? Using
>> XML notation one could simply control
>> this behaviour by  reordering the<action>  tags.
>>
>> Thanks
>>
>> - Mounir
>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<user-unsubscribe@struts.apache.org>
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>


-- 
Mounir Benzid
Systementwickler / EDV

meetingmasters.de
meetings meisterhaft managen

· Unabhängige Vermittlung von Tagungshotels
· Online-Hotelreservierungssystem zur Integration in die Veranstaltungs-Webseite
· Webbasiertes Veranstaltungs- und Teilnehmermanagement
· E-Procurement für den Tagungshoteleinkauf
· Webbasierte Anfrage und Verhandlung von Firmenraten

Max-Planck-Straße 22
D-54296 Trier

fon +49 (0)651-145789-38
fax +49 (0)651-145789-20

www.meetingmasters.de
mb@meetingmasters.de


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


Mime
View raw message