File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
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 - updated with new look and Ping home screen widget
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
 
Similar Threads
file download !
Text Search on a file from a JSP page?????
retrive files in a directory
Can you do this in JSP
How can I do a text search in a file