This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "File write with JSP" Watch "File write with JSP" New topic
Author

File write with JSP

Raju Shrestha
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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?
Bill
Raju Shrestha
Greenhorn

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.
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: File write with JSP