Is there a way to now write to this new window from the servlet? In other words, can I open the window _and_ generate the page that appears in it from the same servlet?
Chris Doyle [EMAIL PROTECTED] ----- Original Message ----- From: "Andreas Schlegel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 9:25 AM Subject: Re: open page in new frame > I find a JavaScript solution: > > out.append( "<script>\n" ); > out.append( " window.open(location.href='" + myURL + "', 'newFrame', > '');\n" ); > out.append( "</script>\n" ); > > > Raghupathy, Gurumoorthy wrote: > > >just use <a href="the url" target="windowname"> > > > >or <form action="the url" target="windowname"> > > > But both ways require a user action, isn't it? A click on the link or on > a button ... > > > > > > >guru > > > >-----Original Message----- > >From: Andreas Schlegel [mailto:[EMAIL PROTECTED]] > >Sent: 12 September 2002 12:07 > >To: [EMAIL PROTECTED] > >Subject: OT: open page in new frame > > > > > >Hi, > > > >I am looking for a way to open a page in another frame automatically. > >This should happen by calling a servlet not a static page. > > > >Im my servlet application I already tried the following solutions but > >without success: > > > >out.append( "<META HTTP-EQUIV='Window-Target' CONTENT='newFrame'>\n" ); > >out.append( "<meta http-equiv='refresh' content='1; URL=" + myURL + > >"'>\n" ); > > > >or: > > > >out.append( "<script>\n" ); > >out.append( " window.open('" + myURL + "', 'newFrame', '');\n" ); > >out.append( "</script>\n" ); > > > >I suppose the JavaScript doesn't run because I don't know to get a valid > >URL calling the servlet in this code. > > > >Any ideas? > > > >Greetings, > >Andreas > > > >___________________________________________________________________________ > >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