Results 1 to 3 of 3

Thread: Configuring the validator

  1. #1
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Default 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
    Have a Nice day

  2. #2

    Default

    Hi,

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

    Simon

  3. #3
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    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"

Similar Threads

  1. FormAction or Validator for this situation?
    By tortuga in forum Web Flow
    Replies: 3
    Last Post: Jul 20th, 2005, 05:19 AM
  2. Replies: 3
    Last Post: Apr 5th, 2005, 09:20 PM
  3. Replies: 1
    Last Post: Feb 23rd, 2005, 06:40 AM
  4. comparing dates in validator
    By jburns in forum Web
    Replies: 6
    Last Post: Nov 30th, 2004, 08:38 PM
  5. Replies: 2
    Last Post: Nov 25th, 2004, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •