This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Struts, jQuery, Struts2-jquery and the DOM

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I set up some jQuery dom manipulation on a single page web app, which combines jQuery direct manipulation on some instances, and using the lightbox plugin FancyBox to some alternate or iframe views. It works nice. Then I've added Struts 2 actions for the dynamic services, which is almost there.

My doubt is this: when I submit a form in Struts2-jquery there is a targets property where I can put a div and the form result gets in the div. Ok so far. What if I needed to choose wether to stuck the result in a view or call fancybox() for it, how can I setup struts2-jquery forms to specify calling a js function instead of going directly to the target?

Or is it the case to ditch it altogether and going directly to the ajax code? I'm doing it already, but I want to know if somebody has a better way for it, as single page DOM apps are getting pretty much in taste.


He baked a muffin that stole my car! And this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!