struts server side validation

Discussion in 'Java' started by David McDivitt, May 13, 2004.

  1. I have a problem I'm hoping someone can shed light on. In my application,
    client side validation works fine. However, I need to use server side
    validation instead because users want that. I removed the onsubmit attribute
    from the html:form tag in the JSP, but no error is ever generated on the
    server side. I have been through the documentation and insured all the
    pieces are in place. The form bean extends ValidatorForm, and there is an
    input value for the action mapping in struts-config.xml. Can anyone shed
    light on why server validation is not working pursuant to values put in
    validation.xml? If client side validation works, that would imply
    validation.xml has been done properly, then if client side validation is
    removed, server validation should occur pursuant to the same rules. Thanks
    David McDivitt, May 13, 2004
    #1
    1. Advertising

  2. David McDivitt

    Sudsy Guest

    David McDivitt wrote:
    > I have a problem I'm hoping someone can shed light on. In my application,
    > client side validation works fine. However, I need to use server side
    > validation instead because users want that. I removed the onsubmit attribute
    > from the html:form tag in the JSP, but no error is ever generated on the
    > server side. I have been through the documentation and insured all the
    > pieces are in place. The form bean extends ValidatorForm, and there is an
    > input value for the action mapping in struts-config.xml. Can anyone shed
    > light on why server validation is not working pursuant to values put in
    > validation.xml?


    Not without seeing all the files. You might want to have a peek here,
    however:
    <http://www.sudsy.net/technology/validation.html>
    Sudsy, May 13, 2004
    #2
    1. Advertising

  3. David McDivitt

    amarnath_it

    Joined:
    Sep 11, 2007
    Messages:
    1
    --------------------------------------------------------------------------------

    I have a problem I'm hoping someone can shed light on. In my application,
    client side validation works fine. However, I need to use server side
    validation instead because users want that. I removed the onsubmit attribute
    from the html:form tag in the JSP, but no error is ever generated on the
    server side. I have been through the documentation and insured all the
    pieces are in place. The form bean extends ValidatorForm, and there is an
    input value for the action mapping in struts-config.xml. Can anyone shed
    light on why server validation is not working pursuant to values put in
    validation.xml? If client side validation works, that would imply
    validation.xml has been done properly, then if client side validation is
    removed, server validation should occur pursuant to the same rules. Thanks
    amarnath_it, Sep 11, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Colin Mackay
    Replies:
    0
    Views:
    2,678
    Colin Mackay
    Jun 25, 2003
  2. Matt
    Replies:
    14
    Views:
    4,073
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  3. =?Utf-8?B?dmlkeWE=?=
    Replies:
    1
    Views:
    741
    Kevin Spencer
    Jun 2, 2005
  4. timmac
    Replies:
    11
    Views:
    15,131
    timmac
    Dec 17, 2004
  5. Replies:
    0
    Views:
    1,121
Loading...

Share This Page