Solved

interaction between jsps..refresh caller jsp

Posted on 2004-10-17
1
166 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
ID: 12348475
you can usually use:-

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

hope his helps.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven project in eclipse 11 60
J2SE 5.0 metadata 1 61
build fail in maven project 11 192
Can anyone please tell me why i can not find ID  investorCoolGrid inside the jsp page? 1 22
Read about why it is more lucrative for an IT company to participate in government projects.
Riverbed Technology's webinar discusses networking for the cloud era with simplified SD-WAN cloud connectivity.

828 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