• 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Wiley Jakarta Pitfalls: Extend Struts ActionForms for array validation  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Java but I've managed to successfully implement the Formatter & Validation code presented in Chapter 2 of the Jakarta Pitfalls book by Dudney.

The formatting and validation works great with a single form. The author states that the code can also handled nesting and arrays. Unfortunately you
can't just pass two arrays for formatting and validation.

I want to know what to do so I can pass an array into the populate() component of the formatter library. The code I'm using is discussed in the following:

http://72.14.203.104/search?q=cache _rTrxRH4koJ:java.sun.com/developer/Books/javaprogramming/Dudney/Pitfall_Ch02.pdf+struts+validation+of+BigDecimal&hl=en
 
Rich W
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I really need to know is how to define an ActionForm that is an array of another ActionForm.

AutoInfoForm extends MasterForm {
String key;
String year;
String make;
String mode;
}
etc....

AutoListForm extends MasterForm {
AutoInfoForm[] autolist;
}
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!