• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

servlet and multiple jsp windows

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
today's feeble attempt to support the empire
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic