Hi Guru, at this point my application creates a page with something like a message "Operation was succesful". This is displayed as an HTML link. If the user like work with the resultset he has to click on the link and a new browser window opens and shows the resultset. Up to here it works. But I try start the 2nd window automatically. As I believe there are 2 ways to get it.
1. Use a mata tag: <meta http-equiv='refresh' content='1; URL=" + myURL + "'> 2. Use JavaScript: <script> window.open(location.href='" + myURL + "', 'newFrame', ''); </script> In the meantime the second is running. But I would prefer the first solution. Indeed it is very easy to implement but only if you don't want to redirect the refresh to another window or frame. Greetings, Andreas Raghupathy, Gurumoorthy wrote: >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 > > ___________________________________________________________________________ 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