aspose 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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

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
 
Similar Threads
Eclipse IDE - How to set up a Struts 2 project
URL rewrite to maintain session state
Action class in Struts
Struts interview questions
InnerHTML and struts tags