i have an Action class in the package
com.company.web.struts.actions.admin.LoginAction. inside LoginAction,
i use Annotation to specify the Action (i.e. @Action(value="/login")
on a method. according to the documentation at,
http://struts.apache.org/2.1.8.1/docs/convention-plugin.html, this
should map to /admin/login (i.e.
http://localhost:8080/webapp/admin/login, on Tomcat). however, i keep
seeing the message below.

No result defined for action
com.company.web.struts.actions.admin.LoginAction and result success

this message goes away if i specify the result explicitly (i.e.
@Action(value="/login",result...@result(name="success",location="login-success.jsp")}).
BUT, why do i have to explicitly specify the result? doesn't this
defeat the purpose of the Convention plugin?

for all my Action classes, so far, and using the Convention plugin, i
just simply specify @Action(value="/something"), and it is smart
enough to forward to /something-success.jsp, /something-error.jsp,
/something-input.jsp, etc... without any explicit setting of the
@Result. any ideas is appreciated.

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

Reply via email to