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","heig ht=30,widt h=200,loca tion=100") ;
</script>
status.jsp:
=======
<jsp:useBean id="task" scope="session" class="AppBean"/>
<% if ( task.isDone() ) {%>
<script>window.close();</s cript>
<% else {%>
please wait.
<% }%>
I have tryied :
<script>parent.window.open er.locatio n.reload() ;window.cl ose();</sc ript>
but the "task" was null??
any ideas please!!!
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","heig
</script>
status.jsp:
=======
<jsp:useBean id="task" scope="session" class="AppBean"/>
<% if ( task.isDone() ) {%>
<script>window.close();</s
<% else {%>
please wait.
<% }%>
I have tryied :
<script>parent.window.open
but the "task" was null??
any ideas please!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.