File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes MVC in AJAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "MVC in AJAX" Watch "MVC in AJAX" New topic
Author

MVC in AJAX

Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Kris,

I heard from some one that we can achieve MVC in client side using AJAX. are these is covered in your book? can you explain us some thing about this?

Thanks in Advance.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Prabhu Venkatachalam:
Kris,

I heard from some one that we can achieve MVC in client side using AJAX. are these is covered in your book? can you explain us some thing about this?

Thanks in Advance.


I think, Ajax is not just client side technique. It requires server and client both to do magic...

Typical MVC is possible in Ajax also, sending all the Ajax request to single servlet (controller) and that controller will then decide which model to invoke... but view will be the same as we need to update the page which invoked the action...

Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

If you are not sure, Please let other people answer it.

Have a LOOK at this.

My question is how to achive MVC using AJAX and JavaScript? whatever you told is typical MVC we follow in JSP/Servlet.

I'm working on AJAX for past one year and I know how AJAX works.

Thanks for your reply.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
I have a Web application that was originally developed without AJAX, but has been improved to use some AJAX for updating pages without reloading. The application uses MVC (via the Maverick MVC) framework for AJAX and non-AJAX. A request comes in to the controller, which puts together the model and forwards it to the view. The view renders HTML for non-AJAX requests, and XML for AJAX requests. Actually, one or two AJAX views are just plain text, because they return only tiny data for which the overhead of XML is not worth it.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC in AJAX
 
Similar Threads
can we use google ajax api to get states from database table
AJAX Controller
Spring and DOJO
Save button with Ajax
How to handle Ajax response in Spring MVC