File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Refresh a jsp page" Watch "Refresh a jsp page" New topic
Author

Refresh a jsp page

Shanthi Varanasi
Greenhorn

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

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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refresh a jsp page
 
Similar Threads
how can I pass an Object or String from Applet to JSP?
persist javascript dom on page refresh
Struts - Auto Refresh
use body onload refresh functionality only once
Refresh page programatically