Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes how to send request to multiple page in a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to send request to multiple page in a page" Watch "how to send request to multiple page in a page" New topic
Author

how to send request to multiple page in a page

nian zhang
Greenhorn

Joined: Aug 22, 2003
Posts: 21
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
You will have to make two separate requests - of course they could have the same content.
nian zhang
Greenhorn

Joined: Aug 22, 2003
Posts: 21
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

Joined: Jan 10, 2002
Posts: 61095
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
nian zhang
Greenhorn

Joined: Aug 22, 2003
Posts: 21
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to send request to multiple page in a page