• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet and multiple jsp windows  RSS feed

 
Peter Straw
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a situation where 2 browser windows are open at the same time showing different jsps - display.jsp is for display only; update.jsp submits any changes to a servlet which does a database update.
The problem is that display.jsp doesn't show the change until it is refreshed.
Is it possible to get the servlet to refresh the display window (and ideally close the update window)? I am calling RequestDispatcher on the display.jsp but it seems to be refreshing update.jsp??
Thanks
 
Madhu Bala
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
once the page displayed on ur browser the http connection is removed why because it is connection less protocal.
u need to refresh to get updated values.

bye bye
madhu.
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a parent/child relationship between the windows, the update window can execute a JavaScript function to refresh the display window when you submit the data.
[ July 30, 2002: Message edited by: Sam Smoot ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!