Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Need help for AJAX with struts2.0

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello folks..

I need suggestions for a requirement in my project! . I have a table in struts2.0. I have modal window opening on clicking of a button in the page. I want to update the table dynamicaly without loading the entire page using AJAX. i know its possible in strust2.0 but i am tired of finding the solutions. Kindly help me to do this

Thanks in advace,,

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you explain your problem in more detail? Can you able to make ajax call? or where exactly you have issues?
 
Gobi v
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi..

we are using conventional ajax call for generating the response. I have an table. I have to refresh the table content without loading the page.
a button which invokes the dhtml modal window to enter the details. After closing the modal window the data entered in the modal window should be populated in the table without reloading the entire page.

I constructed the table using s:iterator tag provided with div tag. I constructed a response such a way that replacing the table contents.

facing problem with reloading the content.
 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can't you use javascript DOM to populate the table with the values entered in modal popup.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*What* problem are you facing reloading the content? If you have a reference to the parent window, you have a reference to the parent window's DOM. If you have the parent window's DOM you can manipulate it arbitrarily, including adding/modifying its content.
reply
    Bookmark Topic Watch Topic
  • New Topic