Two Laptop Bag*
The moose likes Servlets and the fly likes [Help Requested]  Spawning multiple requests from filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "[Help Requested]  Spawning multiple requests from filter" Watch "[Help Requested]  Spawning multiple requests from filter" New topic
Author

[Help Requested] Spawning multiple requests from filter

Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi there,
Is there a way of dynamically spawning multiple independent HTTP requests from within a Filter class? I need to spawn content for two different frame as part of the pre-processing of a single request action.
In short, given a request directed to frame A, I need to populate frame B with some dynamic data at the same time.
I would prefer to do this without loading an HTML or JSP file containing frameset attributes as this would complicate maintenance for the end users.
Thanks,
Darryl
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi there,
I withdraw my question. After thinking about it a bit, I've come to think that I have to return a frameset to the client browser that contains the information needed to refresh the two frames. If I try to spawn two responses for a single request on the server, I don't see how the client would know to catch the two responses. Frame requests have to originate from the client I now see.
Cheers and thanks,
Darryl
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Help Requested] Spawning multiple requests from filter
 
Similar Threads
What is "asynchronous" in AJAX?
Count of hits to a site.
problem while giving a url pattern in filter mapping
Odd problem with RichFaces and Servlet Filter
Filter not working with jsp:include