File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatic validation is not working with dispatch action

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
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/cart.do?operation=view 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