You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts lover <st...@yahoo.com> on 2005/12/21 17:53:51 UTC
Resources initValidator
Hi,
I am trying to call the org.apache.struts.validator.Resources class initValidator method.
It has the following piece of code in the initValidator method.
validator.setParameter(SERVLET_CONTEXT_PARAM, application);
validator.setParameter(HTTP_SERVLET_REQUEST_PARAM, request);
validator.setParameter(Validator.LOCALE_PARAM, locale);
validator.setParameter(ACTION_MESSAGES_PARAM, errors);
validator.setParameter(Validator.BEAN_PARAM, bean);
The ACTION_MESSAGES_PARAM and Validator.BEAN_PARAM keys hash to the same index.
Is this a bug or is ok?
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com