Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2005, 07:47 PM
Authorized User
 
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default refresh question

How to realize local refresh in JSP? Is there any source code for reference?

Thanks

 
Old August 4th, 2005, 12:25 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to olupas
Default


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


 
Old October 3rd, 2005, 01:14 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh Question Greg Griffiths Javascript 0 May 8th, 2007 07:45 AM
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
refresh crmpicco Javascript 4 January 28th, 2005 05:17 AM
Refresh surendran Javascript 7 August 3rd, 2004 05:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.