Doh! Sorry, that's a case of me renaming str to anchorString to try to make things clearer for this discussion. I guess I missed one.
So, str should be anchorString. > -----Original Message----- > From: Peter Claesson (EUS) [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 10:37 AM > To: [EMAIL PROTECTED] > Subject: Re: dynamically generated anchor tags > > > Before you go through the trouble, and since I might be > wrong, could you describe > how you use str. You use it in your if statement but it's not > clear where it is set. > > /Peter > > > -----Original Message----- > From: Jay Wright [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 10:10 AM > To: [EMAIL PROTECTED] > Subject: Re: dynamically generated anchor tags > > > No, I'm not. But I could. What do you propose? I'm not > that familiar with > the HTML side of JSP. > > > -----Original Message----- > > From: Peter Claesson (EUS) [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 15, 2002 9:58 AM > > To: [EMAIL PROTECTED] > > Subject: Re: dynamically generated anchor tags > > > > > > This sounds like it might be a caching issue. Are you taking > > any measure to > > prevent the page from being cached? > > > > /Peter > > > > -----Original Message----- > > From: Jay Wright [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 15, 2002 9:36 AM > > To: [EMAIL PROTECTED] > > Subject: dynamically generated anchor tags > > > > > > I have a web application written with jsp and a controller > > servlet. I have > > implemented a pop up window, that when completes it's task, > > uses clientside > > java script to refresh it's opener and close itself. > > > > <body onload="opener.location.href='/some/page';self.close();"> > > > > This works flawlessly. At least it seems to. > > > > However, when I add jsp code to this page, to refresh the > > opener and append > > a dyanmically generated ANCHOR tag, it works perfectly well > > the first time, > > but then fails to refresh the opener on subsequent tries. > > > > <% > > String anchorString = (String) > request.getAttribute("anchor"); > > StringBuffer buf = new StringBuffer(""); > > if (anchorString!=null) buf.append("#").append(anchorString); > > System.out.println(buf.toString()); > > %> > > <body > > onload="opener.location.href='/some/page<%=buf.toString()%>';s > > elf.close();"> > > > > > > I KNOW that anchorString is not null, because I log it and it logs > > correctly. The first time this page is executed, it > > correctly refreshes the > > opener (/some/page#anchor1), but the other attempts all fail > > to refresh, > > leaving "/some/page#" in the browser address window, but > > never refreshing > > the browser. > > > > Any ideas why this might be? > > > > Thanks, > > Jay > > > > ============================================================== > > ============= > > To unsubscribe: mailto [EMAIL PROTECTED] with body: > > "signoff JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set > > JSP-INTEREST DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > ============================================================== > > ============= > > To unsubscribe: mailto [EMAIL PROTECTED] with body: > > "signoff JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set > > JSP-INTEREST DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
