Skip to content

Moving directives to web.xml #4

@d3ep4k

Description

@d3ep4k

Can the directives not be specified in web.xml ?

https://stackoverflow.com/questions/7066192/how-to-specify-the-default-error-page-in-web-xml
https://stackoverflow.com/questions/208736/strip-whitespace-from-jsp-output

And the libs can be imported as required by developers in their jsp as needed.

<jsp:directive.page pageEncoding="UTF-8" trimDirectiveWhitespaces="true"
    errorPage="/WEB-INF/resources/error/errorpage.jsp"/>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@taglib uri="http://xml.metamug.net/jsp/jstl/mason" prefix="m" %>

https://github.com/metamug/mason-sample/blob/master/WEB-INF/resources/fragments/mason-init.jspf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions