You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2007/04/20 15:18:51 UTC

[S2 Tip] Define base class constants for common Result names

The framework defines several constants that are used to identify
common result use cases, such as, ERROR, INPUT, FAILURE, LOGIN. NONE,
and SUCCESS.

When an application has common result cases of its own, such HELP,
MENU, or CANCEL, the application should define additional constants to
represent various result types.

The use of constants reduces programming errors, increases cohesion,
and also documents an application's common result types.

-HTH, Ted
<http://jroller.com/rss/TedHusted?catname=/Struts>

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