How about writing a Servlet which is loaded on Startup & configured as such in web.xml. This servlet can load the data from the files & store them in a responsible context --- Peng Tuck Kwok <[EMAIL PROTECTED]> wrote: > Thanks for the prompt reply Jacob. > I do need the xml data to persist, one xml which contains a bunch of > users who can log in & the other xml contains a list of numbers that > belong to the bunch of users. > Since I need the application to read these xml files on startup, does > that mean I need to create a class which extends ActionServlet and > populate the servlet context like this ? : > getServletContext().setAttribute(LOCALES_KEY, locales); > > > > > > > Jacob Hookom wrote: > > You can have the ActionServlet determine where the source XML is > coming > > from. Then, either forward to a JSP and use JSTL to handle the > rendering, > > or use a transformer and write directly to the OutputStream within the > > ActionServlet, and return null instead of an ActionForward. > > > > -Jacob > > > > | -----Original Message----- > > | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] > > | Sent: Tuesday, February 11, 2003 12:06 AM > > | To: Struts Users Mailing List S > > | Subject: Some questions about struts > > | > > | I have a few questions I need to ask about struts. First of I've > done > > | some simple examples that allow my struts example to access the > database > > | and validate fields passed by an action form. All is good and well. > > | > > | Now I want my application to read say two xml files and when a page > is > > | requested, the page would display the data from the xml. > > | My question is when I pre-process the xml file on startup, how do I > make > > | the xml data available to struts on startup? Should I use a > > | ActionServlet to do this ? Or am I barking up the wrong tree here? > > | > > | > > | > > | > > | > --------------------------------------------------------------------- > > | To unsubscribe, e-mail: [EMAIL PROTECTED] > > | For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

