Thanks PG, I totally forgot about the target command!
Fuz

On Thu, 19 Sep 2002, G. Pradeep wrote:

> Another way would be to have two different servlets one for each frame like:
>  <Frame src="/myServlet1" name="frame1">
>  <Frame src="/myServlet2" name="frame2">
> and when you click on a button or a link in frame1 you can set the target to
> frame 2.  This way
> you are splitting the responsibility between two servlets and keeping things
> clear.  Hence frame1 is not reloaded always a button is clicked.
>
> hope this helps
> pg
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Fawaz
> Ahmad
> Sent: Thursday, September 19, 2002 8:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Using Frames with servlets
>
>
> Thanks Chris and all those that replied.  I like this approach.  Is it
> possible to reload only one frame though?  If the user is in frame 1 and
> clikcs a button to display other data in frame 2, is it possible to
> just update frame 2 w/o having to reload frame 1 again?
> fuz
>
> On Wed, 18 Sep 2002, Chris Pratt wrote:
>
> > One option would be to just add a query parameter to each of the frame
> > source addresses, something like this:
> >
> > <Frame src="/myServlet?frame=1" name="frame1">
> > <Frame src="/myServlet?frame=2" name="frame2">
> >
> > Then in your servlet you can use request.getAttribute("frame") to find out
> > which frame to draw.
> >   (*Chris*)
> >
> > ----- Original Message -----
> > From: "Fawaz Ahmad" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 18, 2002 10:17 AM
> > Subject: Re: [SERVLET-INTEREST] Using Frames with servlets
> >
> >
> > > Hello,
> > >
> > > I am stuck with a problem using frames and can not think of a good
> > > solution.  Does anyone have advice for the following problem:
> > >
> > > I have a log-in screen and once the user is logged in from the servlet
> it
> > > displays a html page (myPage) which has 2 frames.  I need to create
> these
> > > two frames dynamically, but can not figure how how to do that.  The
> > > problem is that everything needs to be created from the same servlet.
> So
> > > my code for the frame is something like:
> > >   <Frame src="/myServlet" name="frame1">
> > >   <Frame src="/myServlet" name="frame2">
> > > When myServlet is called, how can i determine whether it is requesting
> > > frame1 or frame2?  is there someway to get the value of name?
> > > Thanks!
> > > Fuz
> > >
> > >
> >
> ___________________________________________________________________________
> > > 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
>
> ___________________________________________________________________________
> 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