Solved

interaction between jsps..refresh caller jsp

Posted on 2004-10-17
1
162 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
1 Comment
 
LVL 2

Accepted Solution

by:
siliconeagle earned 50 total points
Comment Utility
you can usually use:-

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

hope his helps.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now