Announcement Announcement Module
Collapse
No announcement yet.
Configuring the validator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuring the validator

    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

  • #2
    Hi,

    you can configure it in a separate file; you only need to reference that file in your web.xml.

    Simon

    Comment


    • #3
      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"

      Comment

      Working...
      X