Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Java Development > Managing error messages

Managing error messages

HttpServletRequest object's attributes are used to pass error messages from Java programs to other OFBiz resources, including web pages. By convention, error messages are passed as either a single HttpServletRequest attribute name/value pair (where the name is _ERROR_MESSAGE_) or as a list of messages (where the name of the list is _ERROR_MESSAGE_LIST_). All HttpServletRequest object attributes are assumed to be Java Strings.

How to do it...

While you may pass error messages in any fashion you like, the consolidation of error messages and message lists for consumption by other OFBiz resources is made easier if you follow some simple rules:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint