• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Usage of Both DynaValidatorForm and DispatchAction

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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 !
Sumit
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Sahil
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
http://doc.advisor.com/Articles.nsf/nl/13372
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.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic