Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throwing exceptions to JSP

 
Ed Lance
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a standard model/view/controller app. The view is a JSP, the controller is a servlet and the model is a standard java class that interacts with the database. My question is how is the best way to throw exceptions from the model to the JSP. Remeber, the model is NOT a servlet. Thanks in advance.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest:
1. Always designate an errorPage for your JSP
2. have your errorPage dump a stack trace
3. debug your model class as much as possible out of the JSP environment
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic