Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Create a file on the Client Side  RSS feed

 
Pranav Jaidka
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
is there a way in which i can create a file on my client machine which contains a String which is passed from the Jsp page on the Server..
can i use a new File("file path") format).
if yes how???
please help .
this is important and im stuck
thanks
pranav
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot create a file on the client. JSP can do the same things HTML can on the client (thus including what Javascript can).
The only file you can (indirectly) create and read is a cookie, and even then you can only access your own cookie. All this for obvious security reasons.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!