Andreas, can you let me know exactly what you want ? like you want to open a blank window... and then write to the blank window ... from the servlet which has the opened that window ? without loading a new URL ???
gURU -----Original Message----- From: Andreas Schlegel [mailto:[EMAIL PROTECTED]] Sent: 12 September 2002 14:26 To: [EMAIL PROTECTED] 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