That's a pretty wide open question. There really is no need to "trigger" the fetch from the dB. I guess the question is how extensive does your data access need to be for your entire application. Is it only the product list?
What Type of database is it? -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of Ming Li Sent: Thursday, August 18, 2005 12:48 PM To: JSP-INTEREST@JAVA.SUN.COM Subject: How to trigger an event to fetch data from DB? Hello, I'm working on a Web site whose home page has a menu with a product list. The product list needs to be there without user's input. My question is: how to trigger an event to fetch the data from database? Thanks, Ming Li =========================================================================== 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 =========================================================================== 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