Hai braniees,
Is there any way to configure the validator instead
configuring it in the app-servlet.xml file?.If so pls tell me.
Thanks
anieshuk
Hai braniees,
Is there any way to configure the validator instead
configuring it in the app-servlet.xml file?.If so pls tell me.
Thanks
anieshuk
Have a Nice day
Hi,
you can configure it in a separate file; you only need to reference that file in your web.xml.
Simon
You can also <import> inside your main servlet.xml.
So for example, you might have a "beansForUseCaseA-config.xml" which contains all your controllers, validators, formBackingObjects etc. for useCaseA, and then in your servlet-context (not applicationContext) you would include them.
They shouldn't be in the application-context because they won't be able to see anything else defined in the servlet-context, only the app-Context. besides which, they are not "application specific", they are "web specific"![]()