Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes i want to create a file in the server from the client? is it possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "i want to create a file in the server from the client? is it possible?" Watch "i want to create a file in the server from the client? is it possible?" New topic
Author

i want to create a file in the server from the client? is it possible?

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
a tree is constructed from the json file. and that json file is populated dynamically from the database. for that i have to populate that json file in the server. how can i?
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,

Use the JSON API from http://www.json.org/.

Sean


I love this place!
yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
i can create the tree. the problem what i have is to create a file in the server? do you have any idea in creating a file in the server?
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,

You will have to explain what you mean more clearly...

The Java JSON API will allow you to create JSON objects server side that you can then send out on request.

If you require something different then please explain.

Sean
rahul khanna
Ranch Hand

Joined: Sep 14, 2005
Posts: 48
I guess, you can do it.
But that would be with in your application context.

When you save it . it should gert saved somewhere with in your WEB-INF folder.

Hope it helps.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Are you working on something like "File Upload" ??


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
thank you. i have created that file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i want to create a file in the server from the client? is it possible?
 
Similar Threads
Getting IO exception with doPost is executed
JSON response to populate listbox
Sending a jason object via Post
Getting the javascript object(created in browser) as part of httservletrequest?
How to pass JSON Object to another window using window.open