This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes can jquery integrate to struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can jquery integrate to struts?" Watch "can jquery integrate to struts?" New topic
Author

can jquery integrate to struts?

Yichao Zhu
Greenhorn

Joined: Oct 15, 2009
Posts: 5
if i use scriplets i can use jquery with struts, but can i use jquery if i use only tags ??
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Why would it matter? Both generate HTML. And jQuery is JavaScript designed to work with HTML.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

The trick is that because the actual HTML is frequently obfuscated by the proprietary tags, you need to look at the generated HTML to know what to instrument.

I believe Struts itself also has some jQuery integration, but I wouldn't know anything about that.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Bear Bibeault wrote:The trick is that because the actual HTML is frequently obfuscated by the proprietary tags, you need to look at the generated HTML to know what to instrument.

Well yes. But in Struts 1 (at least), the generated code is fairly transparent. I've always been able to infer what would be generated to write manual JavaScript validations and the like.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The same is true for Struts 2.

Struts 2 *does* have a sandboxed jQuery plugin, although to be honest I'm almost always happier doing it manually--it lets me create much, much better JavaScript, and less of it.
 
GeeCON Prague 2014
 
subject: can jquery integrate to struts?