• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

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

Sean
 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Are you working on something like "File Upload" ??
 
yuvaraj KumarAmudhan
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you. i have created that file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic