Share on Google+Share on Google+

Ekanath
How to use spring validator with multiaction controller?
2 Answer(s)      5 years and 7 months ago
Posted in : Spring

Hi, I am trying to use spring validator with multiaction controller.

The configuration is as below- /**/configurationList.do=list /**/configurationUpdate.do=update /**/configurationSave.do=commit

            </value>
        </property>
    </bean>
</property>
<property name="delegate">
    <ref bean="configurationManagementDelegate" />
</property>
<property name="validators" >
    <ref bean="configurationManagementValidator"/>
</property>

<bean id="configurationManagementDelegate" class="in.gov.uidai.web.portal.delegate.ConfigurationManagementDelegate">
</bean>

<!-- Validator class for ConfigurationManagementController -->
<bean id="configurationManagementValidator" class="in.gov.uidai.web.portal.spi.validation.impl.ConfigurationManagementValidator">

And the controller has method called update(..., BindException error)

----it shows error saying BindException class can't be instantiated - .

org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.validation.BindingResult]: Specified class is an interface

Ads

View Answers

August 24, 2011 at 5:43 PM


Please visit the following link:

Spring Multiaction Controller



August 24, 2011 at 5:50 PM


thanks, but that does not splve my problem. I want to know how to use validator with multiaction controller.










Tutorials   
Java Spring Hibernate Struts Training spring inteview question You Spring Project is not running java lang incompatibleclasschangeerror quartz spring - Error resolved exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined The import javax.validation cannot be resolved java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence Solving java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean issue What is the maven dependency for spring batch? Hibernate Session Attribute java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource Testing spring with junit and mock testing in Spring MVC, i would like to download my Mysql database table in pdf,msword,excel formats. java.lang.NoClassDefFoundError: org/hibernate/engine/FilterDefinition error package org.springframework.scheduling.quartz does not exist jquery dependency dropdown box in spring hibernate my sql Server side validation on dynamically generated fields from more than one table on spring framework. What are the new features of Spring 4.1? Append Arguments to the URL quartz schedular in spring mvc Where to download spring framework zip file? Integrating spring 4 with hibernate 4 Learn spring Multiple files upload code using spring mvc 2.0 with xml configuration without using annotations Spring 4 features I need Spring 2.5 example. Please point me towards a good Spring transactional tutorial Could anyone point me towards some good Spring tutorials, Please? What is Spring framework? Spring and hibernate based Online Shopping project with source code How to populate collection like map with annotation in mybatis? Spring Abstraction with Redis Spring framework How to insert and retreive an image in mysql database using spring mvc framework??? CRUD operations in spring mvc 2.5 meenakshi Meenakshi how many scenarios is having to developing web based application by using spring mvc. getting voucherPin parent and child dropdown Spring 3 Spring 3 MVC Login Form Example with Database MySql What is Spring Integration? How to configure Spring using Annotation What is Spring IOC Container ? What is difference between singleton and prototype bean? What are the differences between EJB and Spring What is Spring's JdbcTemplate ?

Ads

 
Advertisement null

Ads