Hi Sameer,
Key represents the value from the form . suppose there is something wrong with the userid then you can set the action error like
"errors.add("userid",new ActionMessage("error.invalid.userid"));"
Refer This Link. Which will solve your doubt.
Regards
Jatan