>From: "Campano, Troy" <[EMAIL PROTECTED]> >Subject: Good jsp/java design with good response. >Date: Fri, 4 Oct 2002 22:20:53 -0400
>Hi, >I'm wondering your opinions to this JSP design questions. > >I build web applications that generally talk to a database. >There is usually a form..or interface screen and a processing page that >does all the backend work (connects to database and stuff like that). > >I want all my "interface screens" to be written JSTL, since that seems to >be a good separation between logic and interface. I'm not sure how JSTL factors in to this, but okay. >I'm not sure how to do the processing pages. I was thinking writing a bunch >of classes and putting then in a JAR and calling them from 1 JSP page, but >that seems that it would slow response time. Do you think it would? No. >It seems redundant to separate all the logic into their own self contained >JSP processing page and it becomes harder to manage all these pages. >So having one file with a bunch of methods seems easier to me...but again >from a response time perspective, it seems that would slow it down because >you'd have multiple requests to one document. Do would that slow response >time? Why don't you use an MVC design? You're focusing on the wrong part of the architecture, and for the wrong reasons. Java isn't ASP. Classloaders aren't slow. > >What do you think is the best way to design web apps would be? I'm biased, but I'm currently digging into WebWork (http://www.opensymphony.com/webwork) and finding it VERY useful. The documentation is JUST enough to imply that you can do some awesome stuff with it; they're right. (I'm trying to work with the WW team to get some better docs online to help with the learning curve. You can see one example that's in VERY rough condition at http://enigmastation.com/~joeo/webwork.html if you like.) WebWork can even work with the JSTL, if you prefer, and hopefully will integrate less visibly with the JSTL soon. (Right now, you have to access the valuestack explicitly if you're using EL, which is ugly -- EL doesn't allow pluggable evaluators any more, according to the page on Jakarta about it. The WW team is investigating ways to hide the valuestack access from the end users.) ----------------------------------------------- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com