Re: File Download
Re: File Download
- Subject: Re: File Download
- From: "Daniele Corti" <email@hidden>
- Date: Mon, 23 Jul 2007 18:08:09 +0200
2007/7/23, WILLIAM GARNETT <email@hidden>:
Hello everyone;
I need to make an XML file from my online database and be able to download
it and have it saved on the user's disk. Can anyone tell me how this can be
done please?
Hi Bill,
Look to create and manipulate XML in java, you have many approach, personally I prefer DOM, because it's the same of _javascript_. then use JAXP to create the file!
http://java.sun.com/webservices/jaxp/ To make the user download it... you can give the XML as Response, setting the header type=text/xml, but Safari and Firefox display the result (or better, Safari give the content of each tag in a single line, firefox give a navigable tree), so to save it you need to press File>>Save. IE i don't remember what it does, sorry :-)
A little advice, if what you need is a backup for the db, there's different ways of an XML file.
P.S. maybe you want to do something like an RSS, but look, I think in Project Wonder there's an easy way to do this, have a look at it!
Cheers,
Bill.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >File Download (From: "WILLIAM GARNETT" <email@hidden>) |