File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes File write with JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "File write with JSP" Watch "File write with JSP" New topic

File write with JSP

Raju Shrestha

Joined: Aug 12, 2001
Posts: 2
I need to create text and/or xml files from JSP pages. It works fine with Tomcat server but doesn't work with Resin server. Can anybody give solution?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
When reporting "it doesn't work", you really should at least include the exception or error that is thrown - I don't think anybody here can read your mind.
I hope your JSP page has declared an errorPage and your error page dumps a complete stack trace. Also - you didn't use the all-to-common short cut:
try { somecode();
}catch(Exception e){}
which discards vital information did you?
Raju Shrestha

Joined: Aug 12, 2001
Posts: 2
Unfortunately, it doesn't throw any exception. That's why I am in need of help. I tried to caught exception(s) using try..catch but it passess without exception but didn't create any file.
I'd appreciate if you try yourself with Resin server and if you got success pls. give me the code.
I agree. Here's the link:
subject: File write with JSP
It's not a secret anymore!