This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Refresh a jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Refresh a jsp page" Watch "Refresh a jsp page" New topic

Refresh a jsp page

Shanthi Varanasi

Joined: Jan 09, 2004
Posts: 6
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
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Refresh a jsp page
It's not a secret anymore!