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.


Go to topic 35175

Return to index page 461
Return to index page 460
Return to index page 459
Return to index page 458
Return to index page 457
Return to index page 456
Return to index page 455
Return to index page 454
Return to index page 453
Return to index page 452