PDA

View Full Version : How to Include text file in laszlo app


shankara
10-20-2005, 02:10 AM
Hi all,

I have got a peculiar situation here.I have done a small app for our project which uploads text files to the server(thanks a lot to everyone who have helped me in that).Now we need to display the content of the uploaded text file in the same window.
I have browsed through the forums and also been through the docs but could not find a solution.can anyone help me with this.probably on how to do it and if possible with an example.

thank you

bfagan
10-20-2005, 06:34 AM
If it's just a text file, why not just grab the text from the file on the server side, wrap it in an XML tag and send it back in a dataset.

shankara
10-25-2005, 04:24 AM
Hi,

Thanks for the reply,I have been working on it but i am not getting to wrap the contents of the uploaded file into XML.The problem is i am able to upload the text file also i am able to display a text file by giving the path to the file.I dont want that to happen .what i need is to display the contents of the uploaded file in laszlo.

The user may upload another file and save it and see its contents.

Sorry for that i know its a server side operation nothing much to do with laszlo maybe.But i coudn't help it as i even didn't get any response in java developer forums.If some one has already done it or if they can give me a code snippet to display uploaded file i would be grateful.

I am attaching the code of upload jsp file.
Someone kindly take a look at it and help me.

Thank you