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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to use jQuery with Struts?" Watch "How to use jQuery with Struts?" New topic
Author

How to use jQuery with Struts?

Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Can any bosy tell me that how can I use jQuery with Struts ??


God Gave Me Nothing I Wanted, He Gave Me Everything I Needed.
OCPJP6
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Very Carefully...??

JQuery works with the HTML on the page. It does not care if it is PHP, Java, .NET, ASP, Ruby, Perl, Python, Cold Fusion, plain old html, etc.

What issues are you having? When dealing with problems look at your generated source code in the browser, do not stare at serverside code.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

As Eric pointed out, the exact same way jQuery is used with any other server-side mechanism. It's moot.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Eric Pascarello wrote:Very Carefully...??

JQuery works with the HTML on the page. It does not care if it is PHP, Java, .NET, ASP, Ruby, Perl, Python, Cold Fusion, plain old html, etc.

Eric


Thanks for reply !
Eric

I am new to struts but I am confuse about the ajax frameworks .Which one should I use since each has its own limitations .So please tell me that what would be the right one for a struts 1.2 developer??

Help Me !!


Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Almost any JavaScript library will work, JQuery is one of the best.

JavaScript does not care how content gets added to the page or where it comes from.

Eric
Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Eric Pascarello wrote:Almost any JavaScript library will work, JQuery is one of the best.

Eric


Thanks Eric ! For Your Precious suggestions !

Still some ajax framework revolving in my mind (DWR is one of them )as I am not stick with jQuery only.I want to learn a better or somewhat best framework of ajax .In which i no need to move a way behind and start with another different framework , which will bother me . As i heard that each framework has its own limitations (Which is Universal truth in all the framework )
but still I am looking for the best among them .For which i can start ....


Thanks in advance !!!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
DWR is not (easily) scalable while jQuery is and already has lots of (free) plugins.

That would be the ground where I base my choice on.
Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Thanks Bauke for suggestions !!

As now I will start to use jQuey !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use jQuery with Struts?
 
Similar Threads
can jquery integrate to struts?
How can I include a JavaFX 2.0 application into a HTML page?
jQuery select option
jquery in Eclipse
REST with HTML5 and jQuery