I also expected this to work... But as it was not I become to think that it 
shouldn't.

I guess something wrong with web.xml I tried several variants of web.xml here 
is my current file (note that Dynamic Mapping Filter)

File location is /WEB-INF/templates/frontend/index.ftl

this one works (but should not work directly, only through ActionBean): 
http://localhost:8080/SiteDemo/frontend/index.ftl

this one doesn't work: 
http://localhost:8080/SiteDemo/home.xhtml 

This is cation bean:
@UrlBinding("/home.xhtml")
public class HomeActionBean extends BrideActionBean {
    
    @DefaultHandler
    @DontValidate
    public Resolution display() {
        return new ForwardResolution("/WEB-INF/templates/frontend/index.ftl");  
    }
}

If something is wrong with web.xml, please, point me

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"; 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
        http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
               
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
    <!--              Configuration of the Stripes Filter.   -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <filter>
        <description>
            Provides essential configuration and request processing services
            for the Stripes framework.
        </description>
        <display-name>Stripes Filter</display-name>
        <filter-name>StripesFilter</filter-name>
        <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-
class>

        <!-- REQUIRED init parameter for the Stripes Filter. -->
        <init-param>
            <param-name>ActionResolver.Packages</param-name>
            <param-value>web.action</param-value>
        </init-param>   
          </filter>
      

    <filter-mapping>
        <filter-name>StripesFilter</filter-name>
        <servlet-name>Freemarker</servlet-name>
        <dispatcher>REQUEST</dispatcher>
    </filter-mapping>        
    
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
    <!--                        Dynamic Mapping Filter.            -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
    <filter>
          <description>Dynamically maps URLs to ActionBeans.</description>
          <display-name>Stripes Dynamic Mapping Filter</display-name>
          <filter-name>DynamicMappingFilter</filter-name>
          <filter-class>
              net.sourceforge.stripes.controller.DynamicMappingFilter
          </filter-class>
      </filter>
  
      <filter-mapping>
          <filter-name>DynamicMappingFilter</filter-name>
          <url-pattern>/*</url-pattern>
          <dispatcher>REQUEST</dispatcher>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
    
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
    <!--                Freemaker dispatcher Servlet.      -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
    <servlet>
        <servlet-name>Freemarker</servlet-name>
        <servlet-class>freemarker.ext.servlet.FreemarkerServlet</servlet-class>
        <init-param>
            <param-name>TemplatePath</param-name>
            <param-value>/WEB-INF/templates/</param-value>
        </init-param>
        <init-param>
            <param-name>template_update_delay</param-name>
            <param-value>0</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>
        

</web-app>






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to