Hi,
By default, browser's security policy restricts two frames (their embeded
javascript or other code) to access each others content, if they dont
originate from the same "host".
So file://... url is assumed different from http://localhost.....
You should use a sort FileServeServlet or sevlet engine / server capable
to serve files, for the second frame.
Cezar.
On Tue, 4 May 1999, MSANDIP wrote:
> Hi Gilad,
>
> Thanks for the reply.
> But my problem is slightly different. I have 2 frames. One frame is the main
> one where user is allowed to enter the data. Now on this main frame after
> user inputs data for some fields, other fields are required to be populated
> from the database. I don't want to upload the main frame again and again
> from server. So I am using another secondary frame which will call servlet
> to retrieve data from the server. It's ok till now. But then I have to pass
> data retrieved into the secondary frame to the main frame. Here it is not
> working. Problem is before calling servlet I can access fields in the Main
> frame from the secondary frame using parent.frame.dcumnet.element.value .
> But once I get frame with updated data from the server I am not able to
> access the main frame.
>
> Thanx,
> Deepak
>
>
> > -----Original Message-----
> > From: Gilad Tiram [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 04, 1999 1:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Servlet Security Problem?
> >
> > Hello Depak,
> >
> > Two days ago I had exactly the same problem:
> > I use three frames, each relates to different Servlet.
> > I want to receive parameters from one frame (Servlet A) and send the
> > result
> > to other frame (relate to Servlet B).
> >
> > The solution is very easy:
> > In the <HEAD> segment of the HTML put the line < BASE TARGET =
> > "detonation frame name" >
> > Where the destination name is the name of the frame the you want to send
> > the
> > data to.
> >
> > In short: without doing anything special in the Servlet source, this line
> > will redirect the HttpServletResponse to the destination frame.
> >
> > Hope it's answer your question,
> > Gilad.
> >
> >
> >
> >
> > -----Original Message-----
> > From: MSANDIP [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 04, 1999 7:42 AM
> > To: [EMAIL PROTECTED]
> > Subject: Servlet Security Problem?
> >
> > Hi,
> >
> > I've got a web page with two frames.
> >
> > One frame is populated with a html document.
> > (Frame1.document.location = file:///C|TrialStuff/PO.html)
> >
> > The other frame is populated by the output of a servlet.
> > (Frame2.document.location = http://localhost:8080/servlet/zoom)
> >
> > The problem is, these two don't seem to be on talking terms.
> > They can identify each others frame.name, but refuse to
> > access anything within the others frame.document.
> >
> > Do I have a security problem on my hands?
> > Any suggestions?
> >
> > Thanks,
> > Deepak.
> >
> >
> > __________________________________________________________________________
> > _
> > 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
>
Cezar Totth email: [EMAIL PROTECTED]
Fax: (401) 220 33 95
Genesys Software Romania Phone: (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania
___________________________________________________________________________
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