• Post Reply Bookmark Topic Watch Topic
  • New Topic

Refresh of one jsp on click of a link in another jsp in the same page  RSS feed

 
Haneesa Abdulhakkim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp which has 2 jsp included in it. These 2 jsp are inside 2 seperate div and are visible when page renders.
One click of a link in first jsp, i need to get the content in the second jsp refreshed, with a new set of contents.

This is something like a page with topics and sub topics each on seperate jsp files. On click of topics, its sub topics need to be loaded dynamically from a list of values.
Is this possible? If possible, could anyone help me?

Thanks in advance...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are we talking about HTML divs that are filled by separate requests which happen to be to JSP resources or are we talking about some kind of JSP include that the server executes to produce one single HTML response?

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For that you will need to use JavaScript and Ajax, unless you want to refresh the entire page.
 
Haneesa Abdulhakkim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William Brogden wrote:Are we talking about HTML divs that are filled by separate requests which happen to be to JSP resources or are we talking about some kind of JSP include that the server executes to produce one single HTML response?

Bill

Haneesa Abdulhakkim wrote:Its JSP include that the server executes to produce one single HTML response

 
Haneesa Abdulhakkim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bill and Bear Bibeault. I will try with Ajax and JS
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!