Hi, I am not that very experienced in Ajax, but what I feel that It is up to you how you produce the HTML code that you are or are not violating the MVC.
If your action class produces html, it voilates, but if it can forward to a JSP that generates the bare HTML all that is required for that particuar AJAX request, it will not be voilating MVC. Hope others will also agree with me.? Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India www.kottsoftware.com -------------------------------------------------------------------------------- This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorized and unlawful. If you are not the intended recipient of the mail, kindly intimate the author of the mail and delete the same. -------------------------------------------------------------------------------- ----- Original Message ----- From: Patil, Sheetal To: Struts Users Mailing List Sent: Monday, July 31, 2006 3:50 PM Subject: Ajax query hello friends, i have one query with Ajax. in struts we separate model-view-controller, even that's struts purpose. but now a days i am using Ajax, and i seen most of the examples are producing html code or data to display and sending it to client. but i think this is violating M-V-C pattern as it is directly producing data and sending to client. so please tell me if my thinking is right or worst. thanks in advance Shital Patil Sp