Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Usage of Both DynaValidatorForm and DispatchAction

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planning to use DynaValidatorForm(for validation framework purpose) and DispatchAction(multiple methods in same Action class).
I am not sure whether its possible to impliment both of them together.
Thanks in advance !
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Sumit,
This is absolutely possible. You have to understand that the dynavalidatorform is a form bean which is used to store the information being transferred betn server and client and the action is the controller which controls the application flow so there is no reason that one can not be mixed with the other.
DispatchAction is an action class that uses method names for choosing which method to execute (selective execution) but the validation fwk uses the path specified in the struts-config.xml to validate irrespective of the action class and the method name used.
So you should definately be able to use it.
Let me know if you have problems doing this.
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no problem.
You can use DynaValidatorForms with DispatchActions. You should get a book on Struts.
This article covers DispatchAction and other Actions. It is a book excerpt from Professional Struts Wrox book.
I suggest the Wrox book on Struts..... Hmmm.... I think it is called Professional Struts by James somebody and Richard somebody else. It has this great chapter on using the Validator Framework, DynaActionForms and other great stuff. (Warning: Evil author promoting his own book)

"When I first started with struts, I read several pieces on the subject, but none of it "jelled" for me...that is up until I read this book." Reviewer from Amazon.
Nov 19, 2003 A review from Boston, USA

It's a great book for beginners and others
This book is really amazing and I have referenced 2,3 other books for struts, but this one is the best. The concept of 'struts' is beautifully explained in a very simple way. I surely recommend this book! Reviewer from BookPool.

Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic