aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: control flow in struts mvc from Ajax call to Dao layer
 
Similar Threads
Access restriction on application classes
DAO's in Component and Sequence Diagram
Verifing User Input
Question on MDB/Service Activator in Business Layer Component or Integration Layer Component.
DAO & DTO Difference?