Or index only instead of index.action

On Fri, Dec 11, 2009 at 12:06 PM, Lukasz Lenart <
lukasz.len...@googlemail.com> wrote:

> 2009/12/11 Nguyen Xuan Son <yama...@gmail.com>:
> > can you tell me more in detail?
> > thank you very much
>
> You're probably accessing your application like that
> http://localhost:8080/myapp/index.jsp
>
> And in such case, action isn't executed. Try to create action that
> will have execute() method and will return SUCCESS and the result will
> the index.jsp, then you access your application in that way
> http://localhost:8080/myapp/index.action
>
> It's a good practice in Struts not to access jsp (or other) pages
> directly, all the time define actions and the forward to jsp
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Reply via email to