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
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
Marshal

Joined: Mar 22, 2005
Posts: 41488
    
  52
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.


Ping & DNS - my free Android networking tools app
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