org.zkoss.zk.fn
Class JspFns

java.lang.Object
  extended by org.zkoss.zk.fn.JspFns

public class JspFns
extends java.lang.Object

Utilities to generate ZK related information in JSP pages.

For DSP pages, use DspFns instead.
For ZUML pages, use ZkFns instead.

Since:
3.5.2
Author:
tomyeh

Constructor Summary
JspFns()
           
 
Method Summary
static java.lang.String outDeviceStyleSheets(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String deviceType)
          Returns HTML tags to include style sheets of the specified device of the current application (never null).
static java.lang.String outZkHtmlTags(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String deviceType)
          Generates and returns the ZK specific HTML tags such as stylesheet and JavaScript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspFns

public JspFns()
Method Detail

outZkHtmlTags

public static java.lang.String outZkHtmlTags(javax.servlet.ServletContext ctx,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response,
                                             java.lang.String deviceType)
Generates and returns the ZK specific HTML tags such as stylesheet and JavaScript. If you want to generate HTML HEAD and BODY tags by yourself in a non-ZUML page (e.g., JSP or DSP), you can invoke this method at the location you want (such as inside the HTML HEAD tag).

Parameters:
deviceType - the device type. If null, ajax is assumed.
Returns:
the string holding the HTML tags, or null if already generated.

outDeviceStyleSheets

public static final java.lang.String outDeviceStyleSheets(javax.servlet.ServletContext ctx,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response,
                                                          java.lang.String deviceType)
Returns HTML tags to include style sheets of the specified device of the current application (never null).

It is the same as DspFns.outDeviceStyleSheets(java.lang.String) except this method is used for JSP pages.

Parameters:
deviceType - the device type. If null, ajax is assumed.


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo