even though i put it in directory it is not working in tomcat 5.0
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>ChartCreatorWebApp</display-name>
<security-constraint>
<web-resources-collection>
<web-resources-name>protected</web-resources-name>
<url-pattern>/protected/*.jsp</url-pattern>
</web-resources-collection>
</security-constraint>
<welcome-file-list>
<welcome-file>first.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
here i am able to access
http://localhost:8080/protected/second.jsp
--
View this message in context:
http://www.nabble.com/how-i-protect-my-jsf-pages-from-direct-access-t1836501.html#a5035684
Sent from the MyFaces - Users forum at Nabble.com.