permaculture playing cards*
The moose likes Struts and the fly likes Need help for AJAX with struts2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need help for AJAX with struts2.0" Watch "Need help for AJAX with struts2.0" New topic
Author

Need help for AJAX with struts2.0

Gobi v
Greenhorn

Joined: Oct 13, 2006
Posts: 7
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,,

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
Can you explain your problem in more detail? Can you able to make ajax call? or where exactly you have issues?
Gobi v
Greenhorn

Joined: Oct 13, 2006
Posts: 7
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

Joined: Nov 22, 2003
Posts: 185
can't you use javascript DOM to populate the table with the values entered in modal popup.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

*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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help for AJAX with struts2.0
 
Similar Threads
Struts2.0 in Netbeans5.5
Struts2.0+Ejb3.0 Vs Spring+Hibernate
validating an Ajax based page using Struts2.0
Cant Redirect struts2.0
Struts2.0 not working in IE