JSP"

From Documentation
Line 7: Line 7:
 
#Use [http://http://www.zkoss.org/product/zkjsp.dsp ZK JSP Tags] in a JSP page directly.
 
#Use [http://http://www.zkoss.org/product/zkjsp.dsp ZK JSP Tags] in a JSP page directly.
  
 +
=Prerequisite=
 
==DOCTYPE==
 
==DOCTYPE==
  
Line 17: Line 18:
 
<html>
 
<html>
 
...
 
...
 +
</source>
 +
 +
==Browser Cache==
 +
 +
Though optional, it is suggested to disable the browser to cache the result page. It can be done as follows.
 +
 +
<source lang="xml">
 +
<html xmlns="http://www.w3.org/1999/xhtml">
 +
<head>
 +
<meta http-equiv="Pragma" content="no-cache" />
 +
<meta http-equiv="Expires" content="-1" />
 
</source>
 
</source>
  

Revision as of 08:29, 15 October 2010

Employment/Purpose

Here describes how to use ZK with a JSP page. Basically there are two approaches.

  1. Use <jsp:include> to include a ZUL page.
  2. Use ZK JSP Tags in a JSP page directly.

Prerequisite

DOCTYPE

To use ZK components correctly, the JSP page must specify DOCTYPE as follows.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
...

Browser Cache

Though optional, it is suggested to disable the browser to cache the result page. It can be done as follows.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />

Version History

Version Date Content
     



Last Update : 2010/10/15

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.