• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to send request to multiple page in a page

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic