aspose file tools*
The moose likes Servlets and the fly likes Need help. Can a servlet do this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need help. Can a servlet do this?" Watch "Need help. Can a servlet do this?" New topic
Author

Need help. Can a servlet do this?

Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
i need a servlet to write and periodically append/modify files (*.txt and *.xml) to a location on the server, based on input from the client side. can jsp or servlets do this, or can a servlet call another java file to do it?
[This message has been edited by Eric Johnson (edited September 12, 2001).]
Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
naever mind, it's been working the whole time, just writting the file to the root of the server, not in the folder with the servlet. thanx though!
Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Could you share this servlet?
Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
sure. this works on my machine running jswdk 1.0.1. use this html file

to call this servlet

to add another line of text to the created file, use this html

to call this servlet

which imports this class

you can have all the neccessary code in the servlet, but i was experimenting with calling other classes from a servlet, so that's how this one is. hope this helps.
[This message has been edited by Eric Johnson (edited September 26, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help. Can a servlet do this?