GeeCON Prague 2014*
The moose likes Struts and the fly likes control flow in struts mvc from Ajax call to Dao layer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "control flow in struts mvc from Ajax call to Dao layer" Watch "control flow in struts mvc from Ajax call to Dao layer" New topic
Author

control flow in struts mvc from Ajax call to Dao layer

rambabu desina
Ranch Hand

Joined: May 26, 2012
Posts: 35

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

Joined: May 26, 2003
Posts: 30580
    
154

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.


[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
rambabu desina
Ranch Hand

Joined: May 26, 2012
Posts: 35

in that flow if we get exception then what we have to do
rambabu desina
Ranch Hand

Joined: May 26, 2012
Posts: 35

what we have do if we get exception at dao layer while populating the UI data using the ajax calls
 
GeeCON Prague 2014
 
subject: control flow in struts mvc from Ajax call to Dao layer