File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes refresh/reload table data in jsp file  (data return from ajax call) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "refresh/reload table data in jsp file  (data return from ajax call)" Watch "refresh/reload table data in jsp file  (data return from ajax call)" New topic
Author

refresh/reload table data in jsp file (data return from ajax call)

david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 129
Hi,

I have a jsp page (using struts 1) which has a table (on page left side) contain a list of messages, click on one message in the table will show its detail info on the right side.

I tried to reload the table when ajax call back return new data (from database) by using the following javascript which does not work.



I ever thought about using

the problem is that before listing the messages, I have to parse the message content to decide which image and font to use. I need use about six struts-logic tag
like <logic:present> <logic:equal> ... to display the message based on the message content. The following code is just a sample, I have not included all logic tags in yet.



Any good solution/advice to solve the table reload requirement in such case?

Thanks.
david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 129
Any idea? Or I should ask such question on other forums like struts forum?

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Where did you find the documentation for the refresh() method for DOM elements?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 129
oh, got it. Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Have you solved your issue?
Brijesh Jain
Greenhorn

Joined: Sep 28, 2011
Posts: 1
Can you please share your solution?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refresh/reload table data in jsp file (data return from ajax call)
 
Similar Threads
Ajax problem while refreshing data
Need Help:Code running file with IDE but Gives Exception while running from build
Iterate ArrayList and call javascript menthod according to it's value on JSP
JSP Page when submitted, List becomes empty
How to Introduce a Button That Controls All Other Links in a Web Page