What's the logic that dictates when the servlet opens a new window and when it doesn't? Or what the window name is or whatever?
Just trying to understand the problem better so I can help better... Michael Nicholson, Carolina Center for Public Service ----- Original Message ----- From: "Christopher Doyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 10:03 AM Subject: Re: open page in new frame > I used a similar idea before, except I used the meta refresh tag of the html > itself to redirect. Since I'm fairly new to Java, I was hoping someone might > have come across this before and solved it in just Java. How much more > convenient would that be?! > > Chris Doyle > [EMAIL PROTECTED] > > > ----- Original Message ----- > From: "Michael Nicholson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 12, 2002 9:55 AM > Subject: Re: open page in new frame > > > > From what I understand, using just a servlet, that will be tough. By the > > time the request gets to the servlet, the browser should have determined > > where that response is going, either to it's default target ('_self' > unless > > you've defined a base href w/ the <BASE ...> tag), or to whatever the > > referring object's target points to. It ought to work (never tried) that > if > > you have some sort of parameter that tells you you need a new window to > > first output to a page w/ a javascript redirect that opens a new window > with > > the servelt as the request (but without your redirecting telltale) and > > renders the page, and the immediately goes back so that the redirect page > > isn't left in your original window. But that sounds really yucky. > > > > If certain links/forms/whatever always need a new window, no prob. Just > use > > the target attribute for those. If there's some other logic that defines > > when you need a new window, then the above is the idea that pops into my > > head. > > > > Probably (hopefully) not the best answer you'll get. > > > > Michael Nicholson, > > Carolina Center for Public Service > > ----- Original Message ----- > > From: "Christopher Doyle" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, September 12, 2002 9:45 AM > > Subject: Re: open page in new frame > > > > > > > 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 > > > > > > > > > > > ___________________________________________________________________________ > > 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