Solved

interaction between jsps..refresh caller jsp

Posted on 2004-10-17
1
168 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Here's how to start interacting with our community through Post.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

724 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