Or,
Do you REALLY need to use frames? Using frames is something we try to avoid.
What I would do:

The call to the servlet invokes a redirect to a jsp page. The jsp page has a
table with 2 columns (to replace your 2 frames). Each td tag has a jsp
include for the content of the "frame." An MVC sort of thing... I bet Struts
even has a template for this scenario.

Dave

-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 1:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Using Frames with servlets


Fuz,
Why do they have to be generated from the same servlet?

-Richard

At 12:17 PM 9/18/2002 -0500, you wrote:
>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

Reply via email to