~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to src/share/org/apache/struts/taglib/logic/MessagesNotPresentTag.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/logic/MessagesNotPresentTag.java,v 1.5 2004/03/14 06:23:44 sraeburn Exp $
 
3
 * $Revision: 1.5 $
 
4
 * $Date: 2004/03/14 06:23:44 $
 
5
 *
 
6
 * Copyright 1999-2004 The Apache Software Foundation.
 
7
 * 
 
8
 * Licensed under the Apache License, Version 2.0 (the "License");
 
9
 * you may not use this file except in compliance with the License.
 
10
 * You may obtain a copy of the License at
 
11
 * 
 
12
 *      http://www.apache.org/licenses/LICENSE-2.0
 
13
 * 
 
14
 * Unless required by applicable law or agreed to in writing, software
 
15
 * distributed under the License is distributed on an "AS IS" BASIS,
 
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
17
 * See the License for the specific language governing permissions and
 
18
 * limitations under the License.
 
19
 */
 
20
 
 
21
 
 
22
package org.apache.struts.taglib.logic;
 
23
 
 
24
 
 
25
import javax.servlet.jsp.JspException;
 
26
 
 
27
 
 
28
/**
 
29
 * Evalute the nested body content of this tag if the specified value
 
30
 * is not present for this request.
 
31
 *
 
32
 * @version $Revision: 1.5 $ $Date: 2004/03/14 06:23:44 $
 
33
 * @since Struts 1.1
 
34
 */
 
35
 
 
36
public class MessagesNotPresentTag extends MessagesPresentTag {
 
37
 
 
38
 
 
39
    // ------------------------------------------------------ Protected Methods
 
40
 
 
41
 
 
42
    /**
 
43
     * Evaluate the condition that is being tested by this particular tag,
 
44
     * and return <code>true</code> if the nested body content of this tag
 
45
     * should be evaluated, or <code>false</code> if it should be skipped.
 
46
     * This method must be implemented by concrete subclasses.
 
47
     *
 
48
     * @exception JspException if a JSP exception occurs
 
49
     */
 
50
    protected boolean condition() throws JspException {
 
51
 
 
52
        return (condition(false));
 
53
 
 
54
    }
 
55
 
 
56
 
 
57
}