• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea? Or I should ask such question on other forums like struts forum?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you find the documentation for the refresh() method for DOM elements?
 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, got it. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you solved your issue?
 
Brijesh Jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please share your solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic