• 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/HeadTag.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
/*
6
 * Title:        HeadTag
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.decorator;
15

16
import com.opensymphony.module.sitemesh.HTMLPage;
17
import com.opensymphony.module.sitemesh.taglib.AbstractTag;
18

19
import jakarta.servlet.jsp.JspException;
20

21
import java.io.IOException;
22

23
/**
24
 * Write original HTMLPage head to out.
25
 *
26
 * @author <a href="joe@truemesh.com">Joe Walnes</a>
27
 *
28
 * @see com.opensymphony.module.sitemesh.HTMLPage#writeHead(java.io.Writer)
29
 */
30
public class HeadTag extends AbstractTag {
×
31

32
    /** The Constant serialVersionUID. */
33
    private static final long serialVersionUID = 1L;
34

35
    @Override
36
    public final int doEndTag() throws JspException {
37
        HTMLPage htmlPage = (HTMLPage) getPage();
×
38
        try {
39
            htmlPage.writeHead(getOut());
×
40
        } catch (IOException e) {
×
41
            throw new JspException("Error writing head element: " + e.toString(), e);
×
42
        }
×
43
        return EVAL_PAGE;
×
44
    }
45
}
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