| Author |
control flow in struts mvc from Ajax call to Dao layer
|
rambabu desina
Ranch Hand
Joined: May 26, 2012
Posts: 32
|
|
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: 26218
|
|
|
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: 32
|
|
|
in that flow if we get exception then what we have to do
|
 |
rambabu desina
Ranch Hand
Joined: May 26, 2012
Posts: 32
|
|
|
what we have do if we get exception at dao layer while populating the UI data using the ajax calls
|
 |
 |
|
|
subject: control flow in struts mvc from Ajax call to Dao layer
|
|
|