>>> Andreas Schlegel <[EMAIL PROTECTED]> 09-May-00 8:48:38
PM >>>

>Thanks for your answer. But what is to do to send data to
>more than one frame? Do I need 1 servlet for 1 frame?

No. Each frame will have a URL (they could be the same URL but ignore
that for a miniute).

ie:

<frame src="url1">
<frame src="url2">

Now consider what url1 and url2 are:

- url1 and url2 could point to different servers, eg:
    url1=http://www.wierdstuff.com
    url2=http://www.strangestuff.com

- url1 and url2 could point to different paths on the same server
     url1=http://www.wierdstuff.com/strange/ghosts
     url2=http://www.wierdstuff.com/strange/microsoftcustomers

A servlet engine can represent both these scenarios.

eg: a servlet engine doing multiple hosting could recieve requests
for www.wierdstuff.com and www.strangestuff.com - in this case though
the spec states that servlets must be in different contexts.

But in the second case a single servlet could be mapped to:
    www.wierdstuff.com/strange/*

and it would recieve the requests for both frames. In this case the
servlet could use:
  HttpServletRequest.,getPathInfo()

to establish whether it was being called from:
  ghosts
or:
  microsoftcustomers


That is the state of things.

What you *can't* do (which I suspect is what you're asking) is
populate 2 frames from a single request.

However, as an adjunct to that consider that most servlet engines
implement HTTP/1.1 and therefore are capable of persistent connections
thus giving you the performance enhancement of a single request
without the hassle.


Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to