jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes Design Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Design Query" Watch "Design Query" New topic
Author

Design Query

Amit Sharma
Greenhorn

Joined: Jul 26, 2005
Posts: 9
Hi All,

I have Query related Struts and Ajax.
Details:-
I have a Strut application, and I am planning to integrate ajax with it to give user a good experience. But I thought before I start working on the design changes to have some input from everyone in the forum.

>I would like know what are thing that I should keep in mind before starting on this effort?

>What is the best design for this? i.e. is there are pattern that is followed in such cases.

>Is there a readymade ajax library to help me to achieve this with minimal of efforts?

And as this kind of thing must have been done by some of you, so i would request you all to provide me with your experience also.

Your Suggestion would be appreciated

cheers !!!
Amit
[ April 05, 2008: Message edited by: Bear Bibeault ]

Amit Sharma
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Originally posted by Amit Sharma:
I would like know what are thing that I should keep in mind before starting on this effort?
You haven't given us much to go on, but in general, be sure not to let the fact that you are introducing Ajax lead you to believe that you can relax the best practices of MVC application structure. Too many people believe that employing Ajax means that all the good practices we've learned to employ go out the window. They don't.

What is the best design for this? i.e. is there are pattern that is followed in such cases.
That greatly depends on what you want to do with Ajax. If you're just using Ajax because you heard it was cool, forget about it. What problems and enhancements do you want to make that employ Ajax?

Is there a readymade ajax library to help me to achieve this with minimal of efforts?
At this stage of the game it is madness to try and use Ajax without a solid library. There are just too many nuances and cross-browser issues to waste your time coding Ajax "by hand". For lower-lever libraries, Prototype and jQuery (my favorite) are good choices. For higher-level stuff, there are libraries like Dojo and YUI.

And as this kind of thing must have been done by some of you, so i would request you all to provide me with your experience also.
My best advice would be to not use Ajax just because you want to, but because it's the right tool for what you actually wish to accomplish.
[ April 05, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amit Sharma
Greenhorn

Joined: Jul 26, 2005
Posts: 9
Thanks for you feedback/suggestion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Query