Skip to main content
summaryrefslogblamecommitdiffstats
blob: 2a2ff062d9c59dd3f141b486c649dfbcdf40566a (plain) (tree)
1
2
3
4
5
6




                                                                        
                                                                                      





































                                                                                                                                                                                                                                                                                                                   














                                                                                                                                                         




















                                                                                                                                              



                                                                                              
 



                                                                                                                     






                               
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
<TITLE>&lt;f:replaceAll&gt; - Standard JET2 Format Tags</TITLE>
</HEAD>
<BODY>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
	<TBODY>
		<TR>
			<TH align="left">
			<P>&lt;f:replaceAll&gt;</P></TH>
			<TH align="right"><A href="overview.html">Standard JET2 Format Tags</A></TH>
		</TR>
	</TBODY>
</TABLE>
<HR>
<P><B>replaceAll</B></P>
<P><P>               Replace all instances of a value in the tag's content with a new value.<P><P>If the 'regex' attribute is supplied, and equals 'true', then 'value' is treated as a Regular Expression as defined in java.util.reg.Pattern, otherwise 'value' is treated as a literal value.<P>            </P>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Tag Summary</TH></TR>
		<TR>
			<TD width="10%">required</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;f:replaceAll value=&quot;<I>value</I>&quot; replacement=&quot;<I>value</I>&quot;&gt;<br>
			&nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
			&lt;/f:replaceAll&gt;
			</SPAN></TD>
		</TR>
		<TR>
			<TD width="10%">full tag</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;f:replaceAll value=&quot;<I>value</I>&quot; replacement=&quot;<I>value</I>&quot; regex=&quot;<I>value</I>&quot;&gt;<br>
			&nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
			&lt;/f:replaceAll&gt;
			</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Required Attributes</TH></TR>
		<TR>
			<TD width="10%">value</TD>
			<TD><BR>                  The value to be replace, or a regular expression defining the value to replace.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">replacement</TD>
			<TD><BR>                  The replacement text.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Optional Attributes</TH></TR>
		<TR>
		<TR>
			<TD width="10%">regex</TD>
			<TD><BR>                  A boolean value ('true' or 'false'). If omitted, 'false' is assumed.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Example</TH></TR>
		<TR>
			<TD width="10%"></TD>
			<TD><SPAN style="font-family: monospace">
<!-- Begin replaceAll example -->
			&lt;%-- This will result in a/b/c--%&gt;<BR>
			&lt;f:replaceAll value=&quot;.&quot; replacement=&quot;/&quot;&gt;<br>
			&nbsp;&nbsp;&nbsp;&nbsp;a.b.c</I><BR>
			&lt;/f:replaceAll&gt;<BR><BR>

			&lt;%-- This will result in ///// --%&gt;<BR>
			&lt;f:replaceAll value=&quot;.&quot; replacement=&quot;/&quot; regex=&quot;true&quot;&gt;<br>
			&nbsp;&nbsp;&nbsp;&nbsp;a.b.c</I><BR>
			&lt;/f:replaceAll&gt;<BR><BR>
<!-- End replaceAll example -->
</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<P></P></BODY>
</HTML>

Back to the top