Link to home
Start Free TrialLog in
Avatar of aimueller
aimueller

asked on

interaction between jsps..refresh caller jsp

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!!!








ASKER CERTIFIED SOLUTION
Avatar of siliconeagle
siliconeagle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial