Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File write with JSP

 
Raju Shrestha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic