• 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/decorator/DivTag.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
package com.opensymphony.module.sitemesh.taglib.decorator;
6

7
import com.opensymphony.module.sitemesh.HTMLPage;
8
import com.opensymphony.module.sitemesh.taglib.AbstractTag;
9

10
import jakarta.servlet.jsp.JspException;
11

12
import java.io.IOException;
13

14
/**
15
 * Write a HTMLPage div to out.
16
 *
17
 * @see HTMLPage#writeHead(java.io.Writer)
18
 */
19
public class DivTag extends AbstractTag {
×
20

21
    /** The Constant serialVersionUID. */
22
    private static final long serialVersionUID = 1L;
23

24
    /** The div id. */
25
    protected String divId;
26

27
    @Override
28
    public String getId() {
29
        return divId;
×
30
    }
31

32
    @Override
33
    public void setId(String divId) {
34
        this.divId = divId;
×
35
    }
×
36

37
    @Override
38
    public final int doEndTag() throws JspException {
39
        try {
40
            String divBody = getPage().getProperty("div." + divId);
×
41
            if (divBody != null) {
×
42
                getOut().write(divBody.substring(divBody.indexOf('>') + 1, divBody.lastIndexOf('<')));
×
43
            }
44
        } catch (IOException e) {
×
45
            throw new JspException("Error writing head element: " + e.toString(), e);
×
46
        }
×
47
        return EVAL_PAGE;
×
48
    }
49
}
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