Why can't the custom tags do the work of loading the data and displaying the results? I haven't written a custom tag, but can't they be designed to persist data within the same request so a subsequent call from the same page won't result in a fresh query?
I may be wrong, but it seems that even if you have the controller execute the queries to populate the data, they won't be parallel, unless you spawn new threads for each of the db tasks, a technique which I've seen described as "risky". Q ------------------------------------------ Quinn Stone Stone Consultants Alameda, CA telephone: 510.865.7342 e-mail: [EMAIL PROTECTED] http://www.stoneconsultants.com > -----Original Message----- > From: A mailing list for discussion about Sun Microsystem's > Java Servlet API Technology. > [mailto:[EMAIL PROTECTED]] On Behalf Of Jay Burgess > Sent: Thursday, April 25, 2002 12:11 PM > To: [EMAIL PROTECTED] > Subject: Re: Model 2 questions > > > No. The "application" is predefined, in advance, by the app > developer. The app consists of one or more JSPs, all > interlinked, that display database info as tables and charts. > When a user logs into the app, he/she migrates through the > pages, looking at the values shown by the tables and charts > at that point in time. When the data changes in the > database, the "views" provided by the webapp will change the > next time a given JSP is accessed. And there may be many of > these apps, all consisting of different numbers of JSPs, > where every JSP shows different tables differently. However, > there are still just two custom tags - "display table X as a > table" and "display table X as a chart". > > Whew...I thought I had such a simple question, but I'm really > having trouble explaining myself. :) I appreciate > everyone's input though. > > Jay > > > -----Original Message----- > > From: Michael Weller [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 25, 2002 1:58 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Model 2 questions > > > > > > hi! > > so there's some kind of a configuration page where the > user > defines which > tables of which db to display as > table or as a graph? if > that's the case, > you could save > those values in the user's session, when he > requests your > jsp > which displays the tables, it simply asks the session > object > which tables it > should display and asks a helper > for the data. > > -mw > > ----- Original Message ----- > > From: "Jay Burgess" <[EMAIL PROTECTED]> > To: > <[EMAIL PROTECTED]> > Sent: Thursday, April 25, > 2002 8:38 PM > Subject: Re: Model 2 questions > > > > > Thanks, but the user doesn't request Table 1 and Table 3. > The user > > requests a JSP page, which has been predefined > as part of > the overall > > webapp to show Table 1 as a > chart, Table 1 as a table, and > Table 3 as a > > chart. > All the controller servlet knows is that it's > supposed to > return > > pageX.jsp, but has no knowledge when it receives > the request of what > > table(s) pageX is going to need. > > > > > Jay > > > > ______________________________________________________________ > _____________ > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
