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
Yes, I did notice that they used struts which was also the reason I
poked around there in the first place hoping to learn a thing or two :) .
Craig R. McClanahan wrote:
The server.xml file is read by the org.apache.catalina.startup.Catalina
class - see the createStartDigester() method for wher
Yeah, digester is sooo neat that I use it to brush my teeth at night.
-Jacob ;-)
| -Original Message-
| From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 1:28 AM
| To: Struts Users Mailing List
| Subject: Re: Some questions about struts
|
| Craig R
On Tue, 11 Feb 2003, Peng Tuck Kwok wrote:
> Yes it is very cool and nice to use :) . I've done some simple things
> with it based on a tutorial I followed from the site. One question
> though, I've been poking around the admin webapp source in tomcat, which
> file actually reads the server.xml?
Craig R. McClanahan wrote:
Digester is pretty cool (if I do say so myself :-). It's what Struts uses
to process struts-config.xml files, and what Tomcat uses to read web.xml
and server.xml files.
Yes it is very cool and nice to use :) . I've done some simple things
with it based on a tutorial
On Tue, 11 Feb 2003, Peng Tuck Kwok wrote:
> Date: Tue, 11 Feb 2003 14:53:33 +0800
> From: Peng Tuck Kwok <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Some questi
Jacob Hookom wrote:
As a side note, look at Commons Digester in reading your XML file and
bringing it in as Objects so you can work with ActionForms and other
business logic (if that's what you want to do).
Yes I do intend to use the Commons Digester. Thanks Jacob.
---
ork with ActionForms and other
business logic (if that's what you want to do).
-Jacob
| -Original Message-
| From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 12:25 AM
| To: Struts Users Mailing List
| Subject: Re: Some questions about struts
|
| Thanks
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 cre
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
| -Origi
10 matches
Mail list logo