aspose file tools
The moose likes JSP and the fly likes Working with text file using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » JSP
Bookmark "Working with text file using jsp" Watch "Working with text file using jsp" New topic
Author

Working with text file using jsp

enkhbat dash
Greenhorn

Joined: Aug 12, 2008
Posts: 11
Is it possible to work with text file using jsp? Forexample: I will create "test.txt" file then write in it value "testvalue".


Be nice!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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

Joined: Aug 12, 2008
Posts: 11
So I should use servlet to I/O to file. Tnx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Working with text file using jsp