And this is exactly what James Tuan told you the answer to  :-)
The <FORM> tag has two parameters you can solve this with, the ACTION
parameter, which tells the URL to the processing servlet and the TARGET
parameter, which tells the name of the frame to display the result in. If
no TARGET is stated, _self is used, replacing the frame containg the form
with the result page.

 - Tormod

Popova, Marina [SMTP:[EMAIL PROTECTED]] skrev Tuesday, April 27, 1999
9:27 PM:
> In fact , this is exactly what I meant:
> If you have a frame with a form which ACTION attribute points to a
servlet,
> then how can you tell this servlet to redirect its output into another
> frame, not the original frame it came from ?
> In other words, the servlet is called when a user submits the form, it is
> supposed to process the information from this form, and display the
results
> in the second frame...
>
> It's possible to pass the second frame's name as a parameter to the
servlet,
> but then again, how would you restrict it's output to the second frame
only,
> without changing the content of the first one?
>
> Thanks,
> Marina
>
> -----Original Message-----
> From: James Tuan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 27, 1999 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlet output to frames?
>
>
> How would you get the HTML into a different Frame ie
>         "frame_form" takes a "submit button from a form". Now the
>         programmer want the output to  "frame_thank_you".
>
> With HTML you can do <a href="servlet/myServlet"
> target="frame_thank_you">
> to load specific frames.
>
>
> "Rogatkin, Dmitry" wrote:
> >
> > Your specified frame should invoke a servlet. For example:
> > <frameset rows="126,*">
> >   <frameset cols="436,*">
> >     <frame name="Client" noresize src="/servlet/myservlet?Frame=Client"
> > scrolling="no">
> >     <frame name="PushAreaTarget" noresize
> > src="/servlet/myservlet?Frame=push" scrolling="no">
> >   </frameset>
> >   <frame name="BrowseTarget" scrolling="auto" noresize
src=help/help.html>
> >   <noframes>
> > Framed page itself, can be generate by a servlet also. This topic
already
> > was discussed in this list. Check archive for more info.
> >
> > Dmitry.
> >
> > ----- Original Message -----
> > From: Popova, Marina <[EMAIL PROTECTED]>
>
>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 27, 1999 10:02 AM
> > Subject: Servlet output to frames?
> >
> > > Hi!
> > >
> > > Could somebody, please, advise me how a servlet can redirect its
output
> > into
> > > a specified frame?
> > >
> > > Thanks,
> > > Marina
> > >
> > >
> >
>
___________________________________________________________________________
> > > 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
>
> --
> James K. Tuan                                   Ph: 203.961.1686
> PetroChemNet Inc.                               Fax:203.357.7011
> 1281 Main Street                                email: [EMAIL PROTECTED]
> Stamford CT 06902                               URL: www.petrochem.net
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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