Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatic validation is not working with dispatch action

Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have have a dispatch action with two methods: view (to view the cart) , add (to add a book to cart).
This dispatch action have an action form associated with it, this form uses automatic validation (not javascript).
The previous form is used by add method.
Here is a snippet:

Upon sucess, bookDetails.jsp displays a message, upon fail , another message.
The problem is when /action/ is called , bookDetails.jsp displayed again.
The problem solved when input attribute and the accompanying entry in validation.xml removed.
But validation should happened, how to over come this problem ?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic