• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / sitemesh2 / 59

22 Mar 2026 02:30AM UTC coverage: 40.347%. Remained the same
59

push

github

hazendaz
[mvn] Update maven wrapper

698 of 1891 branches covered (36.91%)

Branch coverage included in aggregate %.

1555 of 3693 relevant lines covered (42.11%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/opensymphony/module/sitemesh/taglib/page/ParamTag.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
/*
6
 * Title:        ParamTag
7
 * Description:
8
 *
9
 * This software is published under the terms of the OpenSymphony Software
10
 * License version 1.1, of which a copy has been included with this
11
 * distribution in the LICENSE.txt file.
12
 */
13

14
package com.opensymphony.module.sitemesh.taglib.page;
15

16
import jakarta.servlet.jsp.tagext.BodyTagSupport;
17
import jakarta.servlet.jsp.tagext.Tag;
18

19
/**
20
 * Add a parameter to the inline Decorator, as if specified in the Page.
21
 *
22
 * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
23
 */
24
public class ParamTag extends BodyTagSupport {
×
25

26
    /** The Constant serialVersionUID. */
27
    private static final long serialVersionUID = 1L;
28

29
    /** The name. */
30
    private String name;
31

32
    /**
33
     * Sets the name.
34
     *
35
     * @param name
36
     *            the new name
37
     */
38
    public void setName(String name) {
39
        this.name = name;
×
40
    }
×
41

42
    @Override
43
    public int doAfterBody() {
44
        Tag parent = findAncestorWithClass(this, ApplyDecoratorTag.class);
×
45
        if (parent instanceof ApplyDecoratorTag) {
×
46
            ApplyDecoratorTag t = (ApplyDecoratorTag) parent;
×
47
            t.addParam(name, getBodyContent().getString());
×
48
        }
49
        return SKIP_BODY;
×
50
    }
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc