From: "joe a." <[EMAIL PROTECTED]>
> I am in need of a document covering how to use xml as a data source
> with struts.  If someone could post a link I would appreciate it.
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?

I don't know that I'd do it in a production site of any size, but I believe
the struts-example webapp uses an XML file for it's user database.

IMO the Struts code shouldn't know where the data is... it should just call
methods on data access objects and get the objects it needs in return.  I
use the J2EE BluePrints DAO pattern because my database isn't one where JDBC
makes sense.  But I could easily replace the underlying datastore with
something else, and never make a change in the Action code.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to