OK, I just read in Jakarta Pitfalls, by Riley, that you can create a Formatter abstract base class that has a getFormatter factory method, and a format method that will be abstract. Then you can have sublasses that override the format method and formats the
String to be a Date or Currency or what ever, and you have one for each type.
OK, I didn't need to explain what I read, plus I read it late last night, and can't remember it completely. But another base class will extend ActionForm and well the design basically by using ActionForm directly will not allow this solution to work with a DynaActionForm class defined in your struts-config.xml
Does anyone know of a way of formatting the data you get and send to HTML forms, while still using DynaActionForms?
And, this is an HTML question and would probably be better in the HTML/JAvascript forum, but if I post my second question there then it would almost be a duplicate post and all the world would descend upon me. OK, here's the question, is there a way to have the HTML form only allow certain entries. Like if you have a number field on the form, and you don't want to allow you user to enter Characters.
Thanks
Mark