I have been trying to learn Struts 2 through materials available on the net. One thing I just picked up is that there are 5 different return values from the action's execute() method, that are pre-defined in the framework, namely SUCCESS, ERROR, INPUT, LOGIN, NONE.
What I have a doubt about is...we can always set our own return value in the struts.xml file, in the action element. I can obviously do something like the following
and then make the execute() method return "reallycoolresult".
If I can't, then please tell me where my understanding went wrong. If I can, then what's the point of having pre-defined return values?
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.