Results 1 to 2 of 2
  1. #1
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default Another Query On Validation

    I have another doubt with respect to automatic validations of fields.
    I want to give to the fields of the form of the jsp values by default .
    I do it through its formbean.
    The problem that I have is that when calling the bean, executes the automatic validations of struts that I have defined in the archives “validation.xml” and “Validator-rules.xml”.
    My question is: How Can I call jsp through the bean (like for example, the first time that I am going to call to certain jsp) and the validations are not executed (since the first time is single to show the form and I do not want that it validates nothing).

    Albert:rolleyes:

  2. #2
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default

    What I do is to have two action-mappings to the same class action in struts-config, one that validate and the other doesn't.

    When I enter for the first time I go by which doesn't validate I just go by the action that valued in the actions that require it

    Greetings.
    Eric

Similar Threads

  1. Struts validation
    By Jack in forum Web Frameworks
    Replies: 3
    Last Post: 10-06-2008, 01:54 AM
  2. form validation
    By abhiN in forum New To Java
    Replies: 0
    Last Post: 03-07-2008, 08:04 AM
  3. Swing Validation
    By ppayal in forum AWT / Swing
    Replies: 0
    Last Post: 02-09-2008, 10:00 AM
  4. Swing validation
    By ppayal in forum New To Java
    Replies: 0
    Last Post: 02-09-2008, 09:59 AM
  5. javascript validation
    By yuchuang in forum New To Java
    Replies: 5
    Last Post: 05-14-2007, 04:38 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
  •