Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Refresh jsp inside another jsp using ajax  RSS feed

 
Richard Le
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning!

As the subject says, I'm having problems refreshing a jsp that I included inside another jsp. I'd really appreciate your help

This is my jquery function (I took it from another website)



Then, this is the element that I'm trying to update



And this is the content of my struts.xml



The problem that i'm having is that when i call the selectOffer(value) function the jsp is not updated. Thank you in advance for your help
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You seem to be missing a "$" at the start of line 8. There should be a JavaScript error occurring to that effect.
 
Richard Le
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Welcome to the Ranch.

You seem to be missing a "$" at the start of line 8. There should be a JavaScript error occurring to that effect.



Thank you very much for the prompt reply. That solved my problem. Have a nice day :-)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When debugging, keep the JavaScript console open in the browser. That would have shown you the JavaScript error.
 
Richard Le
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:When debugging, keep the JavaScript console open in the browser. That would have shown you the JavaScript error.


I'll do it :-) . Thank you very much
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!