1 Reply Latest reply on Feb 5, 2009 5:20 AM by Allen Parslow

    Is there no javax.faces.DEFAULT_PREFIX?

    Allen Parslow Newbie

      Is there no javax.faces.DEFAULTPREFIX?


      I.e. is there an equivolent of prefix property for Spring MVC's InternalResourceViewResolver:


           <bean id="viewResolver"
                class="org.springframework.web.servlet.view.InternalResourceViewResolver">
                <property name="viewClass"
                     value="org.springframework.web.servlet.view.JstlView">
                </property>
                <property name="prefix" value="/WEB-INF/views/"></property>
           </bean>
      



      to put xhtml view files in WEB-INF.

        • 1. Re: Is there no javax.faces.DEFAULT_PREFIX?
          Allen Parslow Newbie

          Is the only other alternative to protect files with


            <security-constraint>
                  <web-resource-collection>
                          <web-resource-name>prevent external xhtml access</web-resource-name>
                          <url-pattern>*.xhtml</url-pattern>                  
                  </web-resource-collection>
                  <auth-constraint/>
            </security-constraint>