This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts Validation Isssue

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i have created my own validator class for validating certain fields which are beyond the default validation scope (e.g. telephone, postcode, username already exists etc.) and have linked it to the validator-rules.xml file.

when the input field is invalid, i do get the appropriate error msg so this works ok. however, the problem is when all fields have valid input. In this instance, the flow goes to my validator class and returns true, but instead of going to the action, it returns to the jsp page. there are no errors displayed, just that it wont move to the action.

i've checked my struts-config, validator-rules and validation files and they are identical to those in the 'how-to's on the struts site. the only difference is that i have several struts config files, but the validator plugin is only in the main struts-config.xml

i am completly stumped on this one.
cheers,
abhaya
 
reply
    Bookmark Topic Watch Topic
  • New Topic