[GlassFish 3.1.2 / JSF 2.0] Interdire l'accès au code JSF en supprimant faces sur l'URL
Salut,
Y aurait-il un moyen d'interdire, à part déplacer les XHTML dans le web-inf, en configurant le web.xml ?
Je suis sur GlassFish 3.1.2, JSF 2.0 .
Code:
1 2 3 4
| TEST a reproduire :
voici un lien de mon application : https://localhost:38981/Gestion_RH/faces/rappmenu.xhtml
il me suffit de retirer faces, ctrl+u sur mon navigateur et jai le code jsf en clair |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="./WEB-INF/ccgTemplate.xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<ui:define name="content">
<h:form>
<div style="width: 150px; text-align: center; float: left;">
<h:outputText value="Cadres en congés" />
<h:commandLink action="rapports.xhtml" value="" styleClass="nodeco" onclick="gowait()" title="Cadres en congés" >
<h:graphicImage url="resources/images/report-distributor-icon.png" style="vertical-align:inherit" />
</h:commandLink>
</div>
<div style="width: 150px; text-align: center; float: left;">
<h:outputText value="Etat frais de mission" />
<h:commandLink action="rappfraismissions.xhtml" value="" styleClass="nodeco" onclick="gowait()" title="Frais de mission du mois" >
<h:graphicImage url="resources/images/report-icon.png" />
</h:commandLink>
... |
Merci pour votre aide