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