The servlet will only generate one response to your client (I'm not absolutely 
sure...).  You will have to generate two requests for two responses.  You can add a 
parameter to the url and the same servlet can then service both requests.  If the 
response to the one frame is identically to the other frame then you can write 
javascript to copy the response to the second frame with the onLoad function.


---------------------------------------------------------------------------------
Henk de Weerdt
Department of Information Systems
University of Mississippi Medical Center
2500 North State Street, Jackson, MS 39216-4505
Telephone: (601) 984-1798
Fax: (601) 815-3670
E-mail: [EMAIL PROTECTED]
-----------------------------------------------------------------------------------

>>> Andreas Schlegel <[EMAIL PROTECTED]> 05/09/2000 1: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?

-- Andreas


Henk deWeerdt wrote:
>
> use target="name of frame" in the url calling the servlet e.g.
>
> <A HREF="myservlet" target="frame2"> ......
>
>
> >>> Andreas Schlegel <[EMAIL PROTECTED]> 05/09/2000 10:34:28 AM >>>
> Hi,
>
> does anyone know how to use a servlet to send data to two or more
> frames?
> (i.e. if frame 1 invokes a servlet the frames 1 and 2 should get new
> data)

___________________________________________________________________________
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