Mike:
I've this in dispatcher-servlet ...
<bean id="userController"
class="org.ean.webapp.controller.UserController">
<property name="validator" ref="beanValidator"/>
<property name="formView" value="userForm"/>
<property name="successView" value="redirect:display.html"/>
<property name="userManager" ref="userManager"/>
<property name="countryManager" ref="countryManager"/>
<property name="companyManager" ref="companyManager"/>
</bean>
And this in applicationContext-validation ...
<bean id="beanValidator"
class="org.springmodules.validation.commons.DefaultBeanValidator">
<property name="validatorFactory" ref="validatorFactory"/>
</bean>
And web.xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:/applicationContext-resources.xml
classpath*:/applicationContext-dao.xml
classpath*:/applicationContext-service.xml
/WEB-INF/applicationContext-validation.xml
</param-value>
</context-param>
I've tweaked things in validation.xml and the error propagation seems off
and on. I don't know what makes the errors show. If I can view source and
see the static javascript for the validations, then validator-rules.xml is
being read and also the validator bean should be instanced.
I've been over and over the JSP because I once had a <td> tag that was not
supposed to go there and that caused this. It's something in the rendering
of the errors object I think.
Still perplexed,
David
Michael Horwitz wrote:
>
> Have you defined a validator in your controller?
>
> Mike.
>
> On 7/5/07, David Whitehurst <[EMAIL PROTECTED]> wrote:
>>
>>
>> I can turn off javascript and I see no validation.
>>
>> Still perplexed,
>>
>> David
>>
>>
>> David Whitehurst wrote:
>> >
>> > Has anyone seen where a popup window will appear in your browser with
>> > errors but the errors don't appear on your page using Spring MVC and
>> > common validation. I think where the messages (errors) appear in the
>> > pop-up it's because I'm validating using javascript, but the
>> server-error
>> > propagation is not happening.
>> >
>> > Does anyone know why?
>> >
>> > David
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Spring-Validation-Server-side-failing-tf4027721s2369.html#a11441075
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Spring-Validation-Server-side-failing-tf4027721s2369.html#a11448630
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]