Thanks for the input. > Since I'm yet working on shaping my conventions and finding > any best practises, I'll just give you my thoughts.
Well, can't say that I've completely established my jsp best practices either, but I feel that I'm on my way. It's a lonely and winding path going the way of JSP 2.0 XML syntax with integrated EL function calls. Not even sure I'm doing the right thing. > > First off, I'll be the first to give my full support for the > JSP2 way of doing things. I never really liked the "old" way, > and for my projects now, I never use it. Any JSP features I > use are either EL or custom tags. At times, I also use > servlet filters to process the output from my JSP pages (like > inserting them into a template and such). I'm not sure if > that makes sense. =) It makes perfect sense. Actually I think that it might be a better idea instead of what I'm doing now. Right now I set a group of parameters on the request on one page and then forward to the skin (page) I want to use for the moment. It separates the framework from the content, but I'm not 100% sure that it's the best way to do it. > So far, I've not been using the XML-syntax, and I'm mostly > not concerned with language settings etc, so I felt a bit > dizzy at first when reading your code below. ;) From what I > can tell, it makes good sense though, even if I tend to > prefer to keep the contents of the JSP pages as close to that > of the actual output as possible. > The main (and perhaps really only) reason I'm using XML syntax is that it provides me with integrated page validation. If the html I'm producing isn't well-formed, it breaks on compile time. Very nice. Oh, and it forces me to exclude constructs such as <%=...%> since they don't make a valid XML document. Otherwise, it really doesn't matter. /Erik Beijnoff =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
