Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

control flow in struts mvc from Ajax call to Dao layer  RSS feed

 
rambabu desina
Ranch Hand
Posts: 42
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear JavaRanchers,

please tell me control flow from Ajax call to Dao layer which(Ajax call) is retrieve the data from database and populate the UI using that data.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way as an Struts action. You submit to an action which calls a DAO (directly or indirectly). For the view, you could forward to a template or just return raw JSON/XML.
 
rambabu desina
Ranch Hand
Posts: 42
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in that flow if we get exception then what we have to do
 
rambabu desina
Ranch Hand
Posts: 42
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what we have do if we get exception at dao layer while populating the UI data using the ajax calls
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!