Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving directives to web.xml #4

Open
d3ep4k opened this issue Apr 29, 2020 · 0 comments
Open

Moving directives to web.xml #4

d3ep4k opened this issue Apr 29, 2020 · 0 comments

Comments

@d3ep4k
Copy link
Contributor

d3ep4k commented Apr 29, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant