aspose 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
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: 133
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: 133
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: 61766
    
  67

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: 133
oh, got it. Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

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)