2016-03-25 13:39 GMT+01:00 José Antonio Delgado Trujillo <jadt...@gmail.com>:
>
>> On 25 Mar 2016, at 06:29, Lukasz Lenart <lukaszlen...@apache.org> wrote:
>>
>> I don't really understand what do you mean by that,
>
>
> In the example annotations there are two index.jsp files (one in the /webapp 
> and another in /webapp/content).
>
> The first redirect the response to “index”
> i suppose that this redirect to /webapp/content/index.jsp (but i don’t know 
> why).
>
> In hello-success.jsp and register-success.jsp they are URL action to index.
> There isn’t IndexAction class so i don’t know what the framework will do by 
> default.
> I read the convention plugin documentation i understood the next:
>
> action url -> hello
> action class -> */actions/HelloAction.class
> (result=input), response -> /webapp/content/hello-input.jsp
>
> But what happens if the framework doesn’t find the action class.

It will try to find an "index" action which is created automatically
by Convention plugin

> In my case i had the action class in the package 
> /pfc/struts2/annotations/actions so i had to use the 
> namespace=/annotations/actions in the url and i put the jsp in 
> /webapp/content/annotations/actions
> The url index in jsp files doesn’t go to /webapp/index.

webapp/index.jsp is threatened as a welcome-page but only by
container, for Convention plugin it will be
webapp/web-inf/content/index.jsp


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to