Need help with XML and Applets

Hi,

I have a JSP page which displays events (eg: Club events), say I have 10 events, i can select whatever events I want and create an XML on the server and then dowload it to client using a signed applet. The problem is, say, if I select 1 and 2 events at first and say save, an XML is created and my requirement is met, but, now say I select 5 and 6 events, the XML is created properly with these events on server, but when I download it to client machine, there is only old XML.

If u need more info, let me know ...

Thanks for help,

[560 byte] By [psr2407a] at [2007-10-2 7:06:56]
# 1

Still bussy I see, sorry I couldn't be of much help before.

http://forum.java.sun.com/thread.jspa?threadID=657129

So you choose for your client to post some info to the serer wich will store it in

an xml file?

Then when the client fetches the xml again it gets the old version, sounds like

caching to me. I am not sure the jre will cache xml files (it caches files with

.class, .jpg and .jar according to server cache responses).

There are 2 ways of solving this if it is cache related.

1. The web server, switch of caching for the xml files.

2. On the client: by insurring the request is always unique:

URL u = new URL(this.getCodeBase(),

"myfile.txt?uniquestring=" + cal.getTimeInMillis() // this works only for http served files

);

harmmeijera at 2007-7-16 20:38:46 > top of Java-index,Security,Signed Applets...
# 2
Sorry, you need to create cal of course:Calendar cal = Calendar.getInstance();
harmmeijera at 2007-7-16 20:38:46 > top of Java-index,Security,Signed Applets...
# 3
Hi harmmeijer, Thanx for all the help you gave me. The code you gave me worked and as of now full filling client's requirements.Thanx once again,Sudheer.
psr2407a at 2007-7-16 20:38:46 > top of Java-index,Security,Signed Applets...