|
From: <ad...@tr...> - 2004-03-12 14:05:16
|
On 03-12-2004 6:37 -0700 Matt Raible <li...@ra...> wrote: > Actually, I've tested this with the current Commons Validator and the > JavaScript doesn't care if you have name="x" on your form or id="x". So > it's really just a question of whether other taglibs generate valid > <form> markup. Struts doesn't generate XHTML 1.0 Strict markup b/c of > the name vs. id attribute. Personally, I aimed for strict compliance > for about a year and found it was more trouble than it was worth. > Transitional works just as good and you still get well-formed XML. Any > reason you prefer Strict over Transitional? One of the main reasons, so far, has been to allow use of XSLT to do refactoring. Obviously, not all projects benefit from this but I was working on an application with a huge number of pages and having validating XML was great. The second reason is JSP 2.0. The new applications we're developing right now are using JSP 2.0 and benefiting from cleaner templates. Since JSP 2.0 suppose matching namespaces to taglibs, using a validating editor allows you to almost completely eliminate any typos. *Really* nice. You can still screw-up your EL, mind you. A. P.S. External JS with Struts, thanks. -- Adam Sherman Tritus CG Inc. +1 (613) 797-6819 http://www.tritus.ca/ |