Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to send request to multiple page in a page

 
nian zhang
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a whole.jsp. and there is a frame inside it. there is a part.jsp that should go in the frame.
i want to send same request to both whole.jsp and part.jsp. both whole and part will process the same request and display different results.
the question is how can i send the same request to both pages, and let part.jps display in whole.jsp at the same time.
thanks in advance, nian
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to make two separate requests - of course they could have the same content.
 
nian zhang
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
You will have to make two separate requests - of course they could have the same content.

but how to make two separate requests in one page please? because if use form or link, that will send page to whole.jsp or part.jsp but not both.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to use a bit of Javascript magic to accomplish this.
Upon clicking the link, or upon form submission, your Javascript can cause the various frames to be loaded with whatever URLs you deem appropriate.
I'll move this along to the HTML/Javascript forum for any further discussion since it's not JSP-specific.
hth,
bear
 
nian zhang
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you bear,
but could you give more detail. i am not familiar with javascript. the key is to send request to 2 pages. but how to do it in onclick?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic