[OT?] Design - Business validations vs. Form validations

2002-03-26 Thread Sobkowski, Andrej
All, this may be somewhat OT, but it may be worth a short discussion (though this message is pretty long) :) We're using Struts (of course!) as part of a J2EE architecture that also includes EJB. To clearly separate the validation processes, we use the Struts Validator to perform the "first-leve

Validating an ActionForm "conditionnally"

2002-03-22 Thread Sobkowski, Andrej
Hello, I've been using the Struts Validator (nightly build of November) with no problems for a few months (great work!). Now I need to call the validation method of a specific "nested form" based on a condition: ParentForm +useChild: boolean +getChildForm:ChildForm If useChild returns true, I

[ANN] Mapper ActionForm-to-Value Object and back

2001-12-17 Thread Sobkowski, Andrej
Hi All, after reading a lot about problems related to mapping an ActionForm (somehow a "set of String properties mapping the data on the Presentation layer") to more business-oriented objects (Value Objects for example), I've written a simple "mapper" that will allow you to: - keep 'em separated

Struts Validator (dumb?) question

2001-12-06 Thread Sobkowski, Andrej
Hello All, I'm trying to use the Struts validator but it doesn't seem to be working in my - relatively common - case. I have a modify.jsp page that is displayed upon calling /modifyAction?command=init (using the DispatchAction). No validation must be performed at this point. The user then enters

Tip: Struts and Javascript's "error on page" with submit()

2001-11-13 Thread Sobkowski, Andrej
Hello, I just wanted to post this message as I've wasted 2 hours trying to understand what was wrong and I finally got it. There have been many messages related to using Javascript to submit to different actions so I hope someone will find the following useful. * Situation (that generates an ERR

RE: Validator design considerations

2001-11-02 Thread Sobkowski, Andrej
Ted, thanks for your answer. I understand your idea of "initial validation". And I also agree with "Generally, objects should have dominion over their own data". But in the case of the validation process, IMHO the bean is the data used by a potentially external validation process (and not vice-v