This actually an HTML/Javascript question.

Your first page(servlet generated) may of kind
This example create four frames you.

<!-- frames -->
<frameset  rows="8%,14%,*">
    <frame name="Top" src="heading.htm" marginwidth="10" marginheight="10"
scrolling="no" frameborder="0">
    <frameset  cols="75%,*">
        <frame name="Suppliers" src="/servlet/SupPOrdServlet" marginwidth="10"
marginheight="10" scrolling="no" frameborder="0">
        <frame name="POrders" src="porders.htm" marginwidth="10"
marginheight="10" scrolling="no" frameborder="0">
    </frameset>
    <frame name="PODetail" src="pordersdetail.htm" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="0">
</frameset>

Let's say on the change event of combo box of frame named Suppliers you want to
populate data in frame POrders.


Code for frame Suppliers

<form method="post" name="Transfer" method="post" action="/servlet/ServletNAme"
target="POrders" >
                                     <select size="1" name="FromLocation"
onchange="this.form.submit();">
               <option value= 1738>abc
               <option value= 1739>def
           </select>
</form>


When form will be submitted result will be loaded in fram POrders.

Hope this will help
Imran Baig







Shrikant Amale <[EMAIL PROTECTED]> on 07/11/2000 01:36:29 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Imran Baig/CresSoft)

Subject:  Generation of frames through servlet and Inter frame communication



Hello EveryBody

I have recently joined Servlet-Interest.  I have a
Query.

Please tell me how can I generate a Html page using
servlet which
has two frames in it and each frame is having a page
generated using
Servlet.  one frame has a combo box displayed on to
it, once user has
changed value of the combobox, I want to populate
other frame's one
list box.
please give me the sample code for writing on to
frame's page in response
of any event of any of the frames.

with reguards

Shrikant Amale

[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
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

___________________________________________________________________________
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