<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJSTL%2FIf</id>
		<title>Java Tutorial/JSTL/If - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJSTL%2FIf"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/If&amp;action=history"/>
		<updated>2026-04-22T08:13:21Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/If&amp;diff=3397&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/If&amp;diff=3397&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:44, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/If&amp;diff=3398&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/If&amp;diff=3398&amp;oldid=prev"/>
				<updated>2010-05-31T15:23:27Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  JSTL If Else Statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Using Choose,Otherwise and When&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${pageContext.request.method==&amp;quot;POST&amp;quot;}&amp;quot;&amp;gt;Ok, we&amp;quot;ll&lt;br /&gt;
    send &lt;br /&gt;
    &amp;lt;c:out value=&amp;quot;${param.enter}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;c:choose&amp;gt;&lt;br /&gt;
      &amp;lt;c:when test=&amp;quot;${param.enter==&amp;quot;1&amp;quot;}&amp;quot;&amp;gt;pizza.&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;/c:when&amp;gt;&lt;br /&gt;
      &amp;lt;c:otherwise&amp;gt;pizzas.&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;/c:otherwise&amp;gt;&lt;br /&gt;
    &amp;lt;/c:choose&amp;gt;&lt;br /&gt;
    &amp;lt;/c:if&amp;gt;&lt;br /&gt;
    &amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;Enter a number between 1 and 5:&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;enter&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Accept&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JSTL If Statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;If with Body&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${pageContext.request.method==&amp;quot;POST&amp;quot;}&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;c:if test=&amp;quot;${param.guess==&amp;quot;5&amp;quot;}&amp;quot;&amp;gt;You guessed my number!&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;/c:if&amp;gt;&lt;br /&gt;
      &amp;lt;c:if test=&amp;quot;${param.guess!=&amp;quot;5&amp;quot;}&amp;quot;&amp;gt;You did not guess my number!&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;br /&amp;gt;&lt;br /&gt;
      &amp;lt;/c:if&amp;gt;&lt;br /&gt;
    &amp;lt;/c:if&amp;gt;&lt;br /&gt;
    &amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;Guess what number I am thinking of?&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;guess&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Try!&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JSTL If Statement without Body ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;If with NO Body&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${pageContext.request.method==&amp;quot;POST&amp;quot;}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${param.guess==&amp;quot;5&amp;quot;}&amp;quot; var=&amp;quot;result&amp;quot; /&amp;gt;&lt;br /&gt;
    I tested to see if you picked my number, the result was &lt;br /&gt;
    &amp;lt;c:out value=&amp;quot;${result}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/c:if&amp;gt;&lt;br /&gt;
    &amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;Guess what number I am thinking of?&lt;br /&gt;
    &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;guess&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Try!&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JSTL If Statement with True Value ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
  &amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;JSTL &amp;quot;if&amp;quot; tag&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
  &amp;lt;BODY&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;true&amp;quot;&amp;gt;Hello world!&amp;lt;/c:if&amp;gt;&lt;br /&gt;
  &amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  JSTL If With Logical Operator And/Or ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib prefix=&amp;quot;fmt&amp;quot; uri=&amp;quot;http://java.sun.ru/jstl/fmt&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;EL Expression Examples&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;EL Expression Examples&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Logical Operators&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;c:set var=&amp;quot;guess&amp;quot; value=&amp;quot;12&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Your guess is &amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;c:out value=&amp;quot;${guess}&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;c:if test=&amp;quot;${(guess &amp;gt;= 10)  &amp;amp;&amp;amp; (guess &amp;lt;= 20)}&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;b&amp;gt;You&amp;quot;re in range!&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/c:if&amp;gt;&lt;br /&gt;
&amp;lt;c:if test=&amp;quot;${(guess &amp;lt; 10)  || (guess &amp;gt; 20)}&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;b&amp;gt;Try again!&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/c:if&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  NULL value And Boolean ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib prefix=&amp;quot;fmt&amp;quot; uri=&amp;quot;http://java.sun.ru/jstl/fmt&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;EL Expression Examples&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;EL Expression Examples&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Boolean and Null Values&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;c:set var=&amp;quot;StrVar&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;c:if test=&amp;quot;${StrVar}&amp;quot;&amp;gt;&lt;br /&gt;
  equal!&lt;br /&gt;
&amp;lt;/c:if&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
null == null&lt;br /&gt;
&amp;lt;c:out value=&amp;quot;${null == null}&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Set Test Result to Variable ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
 Licensed to the Apache Software Foundation (ASF) under one or more&lt;br /&gt;
  contributor license agreements.  See the NOTICE file distributed with&lt;br /&gt;
  this work for additional information regarding copyright ownership.&lt;br /&gt;
  The ASF licenses this file to You under the Apache License, Version 2.0&lt;br /&gt;
  (the &amp;quot;License&amp;quot;); you may not use this file except in compliance with&lt;br /&gt;
  the License.  You may obtain a copy of the License at&lt;br /&gt;
      http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
  Unless required by applicable law or agreed to in writing, software&lt;br /&gt;
  distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,&lt;br /&gt;
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;br /&gt;
  See the License for the specific language governing permissions and&lt;br /&gt;
  limitations under the License.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Tag Plugin Examples: if&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Tag Plugin Examples - &amp;amp;lt;c:if&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;hr&amp;gt;&lt;br /&gt;
    &amp;lt;font color=&amp;quot;#000000&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/br&amp;gt;&lt;br /&gt;
    &amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
    &amp;lt;h3&amp;gt;Set the test result to a variable&amp;lt;/h3&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${1==1}&amp;quot; var=&amp;quot;theTruth&amp;quot; scope=&amp;quot;session&amp;quot;/&amp;gt;&lt;br /&gt;
    The result of testing for (1==1) is: ${theTruth}&lt;br /&gt;
    &amp;lt;h3&amp;gt;Conditionally execute the body&amp;lt;/h3&amp;gt;&lt;br /&gt;
    &amp;lt;c:if test=&amp;quot;${2&amp;gt;0}&amp;quot;&amp;gt;&lt;br /&gt;
  It&amp;quot;s true that (2&amp;gt;0)!&lt;br /&gt;
    &amp;lt;/c:if&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>