You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hiyoucai <hi...@126.com> on 2011/08/29 11:52:04 UTC
I have a good idea for struts 3
To support the following configuration code.
struts.properties file
------------------------------------------------------------
struts.convention.action.packages=hiyoucai.apps.*.action
------------------------------------------------------------
I haved modified the struts2-convention-plugin-2.1.6 source code and build it again.
So when I have a java class like "hiyoucai.apps.3p.action.AddAction", Its access url will be http://127.0.0.1/3p/add.do
Diff:
-------------------------------------------------------------------------------
Character * matches the path will be the namespace, it is the parent directory, not only a subdirectory
-------------------------------------------------------------------------------
My english is so poor, hoping you can understand what i say.
Thanks! Good luck for you!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: I have a good idea for struts 3
Posted by Dave Newton <da...@gmail.com>.
I'd recommend filing a JIRA ticket with an attached patch. This seems like
something that would be nice to add, IMO.
Dave
On Mon, Aug 29, 2011 at 5:52 AM, hiyoucai <hi...@126.com> wrote:
> To support the following configuration code.
>
> struts.properties file
> ------------------------------------------------------------
> struts.convention.action.packages=hiyoucai.apps.*.action
> ------------------------------------------------------------
>
> I haved modified the struts2-convention-plugin-2.1.6 source code and build
> it again.
> So when I have a java class like "hiyoucai.apps.3p.action.AddAction", Its
> access url will be http://127.0.0.1/3p/add.do
>
> Diff:
>
> -------------------------------------------------------------------------------
> Character * matches the path will be the namespace, it is the parent
> directory, not only a subdirectory
>
> -------------------------------------------------------------------------------
> My english is so poor, hoping you can understand what i say.
>
> Thanks! Good luck for you!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>