File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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: 30764
    
156

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts