Protecting Assets

Assets are well protected in Tapestry 5.4. The strategies needed in 5.3 and earlier, such as request filters and "whitelists", are not needed in 5.4.

References: Assets.

Home


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- We need a doctype to allow us to use special characters like &nbsp; 
     We use a "strict" DTD to make IE follow the alignment rules. -->
     
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
<head>
    <link rel="stylesheet" type="text/css" href="${asset:css/examples/examples.css}"/>
</head>
<body class="container">
    <h3>Protecting Assets</h3>
    
    Assets are well protected in Tapestry 5.4. The strategies needed in 5.3 and earlier, such as request filters and "whitelists", are not needed in 5.4.<br/><br/>

    References: 
    <a href="http://tapestry.apache.org/assets.html">Assets</a>.<br/><br/>
    
    <t:pagelink page="Index">Home</t:pagelink><br/><br/>
    
    <t:tabgroup>
        <t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/infrastructure/ProtectingAssets.tml"/>
        <t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/infrastructure/ProtectingAssets.java"/>
        <t:sourcecodetab src="/web/src/main/resources/META-INF/assets/css/examples/examples.css"/>
    </t:tabgroup>
</body>
</html>


package jumpstart.web.pages.examples.infrastructure;

public class ProtectingAssets {
}


.eg {
                margin: 20px 0;
                padding: 14px;
                border: 1px solid #ddd;
                border-radius: 6px;
                -webkit-border-radius: 6px;
                -mox-border-radius: 6px;
}