struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: Convention Plugin and Method Called In Action Class
Date Tue, 01 Sep 2009 11:09:31 GMT
Hi all,
in my apps i use only convention to manage action configuration,
and also i make use of addresses like:
myapp/myaction!input
they work for 2.1.6.
I don't know if convention has anything to do with it,
but to be sure You can use config browser plugin to see how things are mapped.

Best greetings,
Paweł Wielgus.


2009/8/31 phillips1021 <bphillips@ku.edu>:
>
> I thought that was the case.  One of the references I'm using for the
> Convention plugin is the MEAP draft of Struts 2 in Practice (was sorry to
> learn that the book isn't being finished, the first few chapters were
> excellent).
>
> Using the bang (!) operator doesn't work with the Convention plugin.
>
> Oh well onto learning the Struts 2 annotations.
>
> Thanks for the information.
>
> __________________________________________
> It is going to default to the 'public String execute()' method. It
> might be possible to use the exclamation point to try to get the
> plugin to call a specific method ->
>
> http://localhost:8080/app/action!differentMethod
>
> Really though, this goes against the notion of 'conventions over
> configuration.' The @Action annotation would be a much more
> maintainable way to handle this sort of thing.
>
> -Wes
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> --
> View this message in context: http://www.nabble.com/Convention-Plugin-and-Method-Called-In-Action-Class-tp25229678p25230919.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message