|
Subject:
|
refresh question
|
|
Posted By:
|
Edward King
|
Post Date:
|
5/24/2005 7:47:20 PM
|
How to realize local refresh in JSP? Is there any source code for reference?
Thanks
|
|
Reply By:
|
olupas
|
Reply Date:
|
8/4/2005 12:25:21 AM
|
Hi....
I know that in JSP technology there are a few steps:
When a client makes a request to a JSP page this page is sent to the JSP Servlet Engine who makes the following steps: -if the JSP file has been called for the first time: - the JSP file is parsed -the next step is to generate a special Servlet source code from the JSP file. All the HTML required is converted to println statements. -the Servlet source code is compiled into a class. -the Servlet is instantiated, calling the init method -the service method is called. -HTML from the Servlet output is sent via the Internet. -HTML results are displayed on the user’s web browser.
The generated servlet is recompiled and reloaded only if you modify the source code for the JSP.
So the Container manages your modifications in your JSP page
|
|
Reply By:
|
angrycat
|
Reply Date:
|
10/3/2005 1:14:18 PM
|
I just use the html refresh tag:
<meta http-equiv="refresh" content="60">
This works ok with the get method of passing parameters, might fail with post data though.
|