<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_14) on Mon Apr 26 10:16:14 PDT 2010 --> | |
<TITLE> | |
IncludeTool (VelocityTools 2.0 Documentation) | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.velocity.tools.view.IncludeTool class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="IncludeTool (VelocityTools 2.0 Documentation)"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../org/apache/velocity/tools/view/ImportTool.html" title="class in org.apache.velocity.tools.view"><B>PREV CLASS</B></A> | |
<A HREF="../../../../../org/apache/velocity/tools/view/JeeConfig.html" title="interface in org.apache.velocity.tools.view"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../index.html?org/apache/velocity/tools/view/IncludeTool.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="IncludeTool.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.velocity.tools.view</FONT> | |
<BR> | |
Class IncludeTool</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.velocity.tools.view.IncludeTool</B> | |
</PRE> | |
<DL> | |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/velocity/tools/view/i18n/MultiViewsTool.html" title="class in org.apache.velocity.tools.view.i18n">MultiViewsTool</A></DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE><FONT SIZE="-1"><A HREF="../../../../../org/apache/velocity/tools/config/DefaultKey.html" title="annotation in org.apache.velocity.tools.config">@DefaultKey</A>(<A HREF="../../../../../org/apache/velocity/tools/config/DefaultKey.html#value()">value</A>="include") | |
<A HREF="../../../../../org/apache/velocity/tools/config/InvalidScope.html" title="annotation in org.apache.velocity.tools.config">@InvalidScope</A>(<A HREF="../../../../../org/apache/velocity/tools/config/InvalidScope.html#value()">value</A>="application") | |
</FONT>public class <B>IncludeTool</B><DT>extends java.lang.Object</DL> | |
</PRE> | |
<P> | |
Allows for transparent content negotiation in a manner mimicking | |
Apache httpd's <a | |
href="http://httpd.apache.org/docs-2.0/content-negotiation.html">MultiViews</a>. | |
<p>Reads the default language out of the ViewToolContext as | |
<code>org.apache.velocity.tools.view.i18n.defaultLanguage</code>. | |
See <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A>, <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.util.Locale)"><CODE>find(String, Locale)</CODE></A> and <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#exists(java.lang.String)"><CODE>exists(String)</CODE></A> for usage.</p> | |
<p>This is the successor to the MultiViewsTool in VelocityTools 1.x. | |
Please note that it does NOT do the actual #include or #parse for | |
you, but is merely to aid in include content negotiation.</p> | |
<P> | |
<P> | |
<DL> | |
<DT><B>Since:</B></DT> | |
<DD>VelocityTools 2.0</DD> | |
<DT><B>Version:</B></DT> | |
<DD>$Id: IncludeTool.java 730292 2008-12-31 01:31:09Z nbubna $</DD> | |
<DT><B>Author:</B></DT> | |
<DD><a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>, Nathan Bubna</DD> | |
</DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#DEFAULT_LANGUAGE_KEY">DEFAULT_LANGUAGE_KEY</A></B></CODE> | |
<BR> | |
The key used to search initialization, context, and JVM | |
parameters for the default language to use.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#defaultLanguage">defaultLanguage</A></B></CODE> | |
<BR> | |
The two character abbreviation for the request's default | |
language.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected org.apache.velocity.app.VelocityEngine</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#engine">engine</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#IncludeTool()">IncludeTool</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#configure(java.util.Map)">configure</A></B>(java.util.Map params)</CODE> | |
<BR> | |
Extracts the default language from the specified | |
<code>ViewContext</code>, looking first at the Velocity | |
context, then the servlet context, then lastly at the JVM | |
default.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#configure(org.apache.velocity.tools.view.ViewToolContext)">configure</A></B>(<A HREF="../../../../../org/apache/velocity/tools/view/ViewToolContext.html" title="class in org.apache.velocity.tools.view">ViewToolContext</A> ctx)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#exists(java.lang.String)">exists</A></B>(java.lang.String name)</CODE> | |
<BR> | |
Checks to see whether a #parse-able template or | |
#include-able resource exists under the specified name/path.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#exists(java.lang.String, java.lang.String)">exists</A></B>(java.lang.String name, | |
java.lang.String language)</CODE> | |
<BR> | |
Checks to see whether a localized version of the | |
named template exists for the specified language.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String)">find</A></B>(java.lang.String name)</CODE> | |
<BR> | |
Calls <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A> using the | |
default language.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.util.Locale)">find</A></B>(java.lang.String name, | |
java.util.Locale locale)</CODE> | |
<BR> | |
Calls <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A> using the | |
language extracted from <code>locale</code>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)">find</A></B>(java.lang.String name, | |
java.lang.String language)</CODE> | |
<BR> | |
Finds the a localized version of the requested Velocity | |
resource (such as a file or template) which is most appropriate | |
for the locale of the current request.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="DEFAULT_LANGUAGE_KEY"><!-- --></A><H3> | |
DEFAULT_LANGUAGE_KEY</H3> | |
<PRE> | |
protected static final java.lang.String <B>DEFAULT_LANGUAGE_KEY</B></PRE> | |
<DL> | |
<DD>The key used to search initialization, context, and JVM | |
parameters for the default language to use. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.velocity.tools.view.IncludeTool.DEFAULT_LANGUAGE_KEY">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="defaultLanguage"><!-- --></A><H3> | |
defaultLanguage</H3> | |
<PRE> | |
protected java.lang.String <B>defaultLanguage</B></PRE> | |
<DL> | |
<DD>The two character abbreviation for the request's default | |
language. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="engine"><!-- --></A><H3> | |
engine</H3> | |
<PRE> | |
protected org.apache.velocity.app.VelocityEngine <B>engine</B></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="IncludeTool()"><!-- --></A><H3> | |
IncludeTool</H3> | |
<PRE> | |
public <B>IncludeTool</B>()</PRE> | |
<DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="configure(java.util.Map)"><!-- --></A><H3> | |
configure</H3> | |
<PRE> | |
public void <B>configure</B>(java.util.Map params)</PRE> | |
<DL> | |
<DD>Extracts the default language from the specified | |
<code>ViewContext</code>, looking first at the Velocity | |
context, then the servlet context, then lastly at the JVM | |
default. This "narrow scope to wide scope" pattern makes it | |
easy to setup language overrides at different levels within | |
your application. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>params</CODE> - the <CODE>Map</CODE> of configuration parameters | |
<DT><B>Throws:</B> | |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the param is not a ViewContext</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="configure(org.apache.velocity.tools.view.ViewToolContext)"><!-- --></A><H3> | |
configure</H3> | |
<PRE> | |
protected void <B>configure</B>(<A HREF="../../../../../org/apache/velocity/tools/view/ViewToolContext.html" title="class in org.apache.velocity.tools.view">ViewToolContext</A> ctx)</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="find(java.lang.String, java.util.Locale)"><!-- --></A><H3> | |
find</H3> | |
<PRE> | |
public java.lang.String <B>find</B>(java.lang.String name, | |
java.util.Locale locale)</PRE> | |
<DL> | |
<DD>Calls <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A> using the | |
language extracted from <code>locale</code>. | |
<P> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="find(java.lang.String)"><!-- --></A><H3> | |
find</H3> | |
<PRE> | |
public java.lang.String <B>find</B>(java.lang.String name)</PRE> | |
<DL> | |
<DD>Calls <A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A> using the | |
default language. | |
<P> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#find(java.lang.String, java.lang.String)"><CODE>find(String, String)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="find(java.lang.String, java.lang.String)"><!-- --></A><H3> | |
find</H3> | |
<PRE> | |
public java.lang.String <B>find</B>(java.lang.String name, | |
java.lang.String language)</PRE> | |
<DL> | |
<DD><p>Finds the a localized version of the requested Velocity | |
resource (such as a file or template) which is most appropriate | |
for the locale of the current request. Use in conjuction with | |
Apache httpd's <code>MultiViews</code>, or by itself.</p> | |
<p>Usage from a template would be something like the following: | |
<blockquote><code><pre> | |
#parse( $include.find('header.vm', 'en') ) | |
#include( $include.find('my_page.html', 'en') ) | |
#parse( $include.find('footer.vm', 'en') ) | |
</pre></code></blockquote> | |
You might also wrap this method using another pull/view tool | |
which does internationalization/localization/content negation | |
for a single point of access.</p> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The unlocalized name of the file to find.<DD><CODE>language</CODE> - The language to find localized context for. | |
<DT><B>Returns:</B><DD>The localized file name, or <code>name</code> if it is | |
not localizable.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="exists(java.lang.String)"><!-- --></A><H3> | |
exists</H3> | |
<PRE> | |
public boolean <B>exists</B>(java.lang.String name)</PRE> | |
<DL> | |
<DD><p>Checks to see whether a #parse-able template or | |
#include-able resource exists under the specified name/path.</p> | |
<p>Usage from a template would be something like the following: | |
<blockquote><code><pre> | |
#if( $include.exists('header.vm') ) | |
#parse( 'header.vm' ) | |
#end | |
</pre></code></blockquote> | |
<P> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><CODE>VelocityEngine.resourceExists(java.lang.String)</CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="exists(java.lang.String, java.lang.String)"><!-- --></A><H3> | |
exists</H3> | |
<PRE> | |
public boolean <B>exists</B>(java.lang.String name, | |
java.lang.String language)</PRE> | |
<DL> | |
<DD>Checks to see whether a localized version of the | |
named template exists for the specified language. | |
<P> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/velocity/tools/view/IncludeTool.html#exists(java.lang.String)"><CODE>exists(String)</CODE></A></DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../org/apache/velocity/tools/view/ImportTool.html" title="class in org.apache.velocity.tools.view"><B>PREV CLASS</B></A> | |
<A HREF="../../../../../org/apache/velocity/tools/view/JeeConfig.html" title="interface in org.apache.velocity.tools.view"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../index.html?org/apache/velocity/tools/view/IncludeTool.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="IncludeTool.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
Copyright (c) 2003-2007 Apache Software Foundation | |
</BODY> | |
</HTML> |