Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Query

 
Amit Sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Amit Sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you feedback/suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic