• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh a jsp page

 
Shanthi Varanasi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am doing some jsp pages. I am unable to refresh the pages dynamically. Could anybody tell me how to refresh jsp pages dynamically say by pressing a button in x.jsp i want to refresh y.jsp page. could anybody tell me how to do that Please.
I am getting lot of trouble with these things.
Thank you
shanthi
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are probably a little confused about how JSP works.
JSP is a technique for writing programs that produce web pages. When your browser requests something.jsp from the server, the server runs the JSP code to produce an HTML page, and sends that page to the browser. Neither the server nor the JSP code has any idea about what browser windows you currently have open, and what URLs they have been filled from.
If you want to have abutton in a page which refreshes another window, the correct tool to use is JavaScript, which will be run by the browser after the page has been sent from the server to the browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic