Two Laptop Bag*
The moose likes Struts and the fly likes Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts" Watch "Struts" New topic
Author

Struts

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
where do we have to handle database error in struts(view, controller, model)

Please let me know
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Originally posted by lakshmi manepally:
where do we have to handle database error in struts(view, controller, model)

The model would throw an error. The controller would either route you to an error page or somewhere else useful. The view would display the appropriate message.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
So we can handle errors or excpetions in the model (ie action class) right?
 
GeeCON Prague 2014
 
subject: Struts