Solved

interaction between jsps..refresh caller jsp

Posted on 2004-10-17
1
167 Views
Last Modified: 2010-04-01
Hi,

I have the following problem:

1) main.jsp starts a thread in the AppBean and calls status.jsp:
2) status.jsp displays "please wait.."
3) the status.jsp closes after finishing the task but without refreshing the main.jsp ..:-((

How can I make the status.jsp refreshing the main.jsp???

main.jsp:
======
<jsp:useBean id="task" scope="session"   class="AppBean"/>
<script>
window.open("http://localhost:8080/servlet/status.jsp","sub","height=30,width=200,location=100");
</script>

status.jsp:
=======
<jsp:useBean id="task" scope="session"   class="AppBean"/>
<% if ( task.isDone() ) {%>
  <script>window.close();</script>
<% else {%>
please wait.
<% }%>

I have tryied :
<script>parent.window.opener.location.reload();window.close();</script>
but the "task" was null??

any ideas please!!!








0
Comment
Question by:aimueller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
siliconeagle earned 50 total points
ID: 12348475
you can usually use:-

opener.document.location="<your_url>";

hope his helps.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Determining the an SCCM package name from the Package ID
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question