Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can jquery integrate to struts?

 
Yichao Zhu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would it matter? Both generate HTML. And jQuery is JavaScript designed to work with HTML.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64837
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic