struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Rakowski" <matth...@rakowski.biz>
Subject Re: Struts 2 Annotation Tutorial (additional info)
Date Wed, 28 Sep 2011 15:49:01 GMT
I wrote:

 > make sure your Hallo-Action is in class HalloController in package
 > foo.actions.bar (foo and bar are random names)

which is not quite correct:
the prefix of the actions-package can be random.
The sub-packages names defines the url namespace.
For example, you can access the foo.actions.HalloController
with /context-path/hallo and the foo.actions.bar.BazController action
with /context-path/bar/baz

Regards, Matthias

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


Mime
View raw message