This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes How can i Create a file on the client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can i Create a file on the client side" Watch "How can i Create a file on the client side" New topic
Author

How can i Create a file on the client side

Pranav Jaidka
Ranch Hand

Joined: Sep 14, 2000
Posts: 264
hi all
is there a way in which i can create a file on the client side which contains a string which is passed to a servlet on the server side.....NO COOKIES please because there is a certain size restriction on cookies......
thanks
pranav
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Passed by who, the browser? Doubtful. Open to corrections.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Brent Worden
Ranch Hand

Joined: Nov 26, 2001
Posts: 50
Instead of storing the string in a cookie, store an ID in a cookie that your servlet can map to the actual string. On requests, your servlet gets the ID from the cookie and looks up the string that is identified by the ID.
------------------
Brent Worden
http://www.Brent.Worden.org/


Brent Worden
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i Create a file on the client side