• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Working with text file using jsp

 
enkhbat dash
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to work with text file using jsp? Forexample: I will create "test.txt" file then write in it value "testvalue".
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You really shouldn't perform file I/O (or anything else that requires Java code) inside of JSP pages; it's considered bad design. Move that code to a backing bean or a servlet; then you can write all the Java code you need w/o complications.
 
enkhbat dash
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I should use servlet to I/O to file. Tnx.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic