--- Alex Wibowo <[EMAIL PROTECTED]> wrote: > But that will tie up the hibernate objects to Struts, > wouldnt it?
XWork, technically, but yes. The other issue (I think; haven't explored it yet) is that you'd lose the ability to validate differently based on the Action method (which I need). So I'm going to stick w/ the XML validation config, because the visitor thing lets me specify a validation "context" (like a method, I hope!) and currently my Hibernate objects are being created from the mapping XML files, so I can't do it via annotations anyway. > And hopefully if everything works right, the > validation should work? Yep. I'm not entirely sure I understand the "appendPrefix" attribute, since mine worked both with and without it :/ > Not sure if I can eliminate the <s:fieldErrors/> ... > since I'm using "simple" theme - my understanding is > that with "simple" theme, I have to specifically > write the actionErrors & fieldErrors. Could be wrong > though... Nope, I believe you are correct. > with your @Validations above.. if you specify > message="", wouldnt that create an extra empty error > message? I experienced that before. AFAICT a visitor's message is prepended to the validation message for the visited object; if you want just the msg defined in your POJO then I think you leave the visitor's message empty. d. ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]