It does have a @defaulthandler. My guess is that's a problem with DynamicMappingFilter, in the book's first pages the DispatcherServlet seems to be used. But I need to have clean URLs so am using DynamicMappingFilter instead, it is indeed configured with <dispatcher>INCLUDE</dispatcher> but maybe it's not enough/there's some bug?
Fabio Fonseca pisze: > does your actionbean has a @defaulthandler? > > take a look at MenuViewHelper.java from the book's source code. > > Fabio > > 2009/9/24 Grzegorz Krugły <[email protected] <mailto:[email protected]>> > > There is this snippet in the Stripes Book: > > <s:layout-component name="menu"> > <s:url var="url" beanclass="stripesbook.action.MenuViewHelper" > prependContext="false" > > <s:param name="currentSection" value="${currentSection}"/> > </s:url> > <jsp:include page="${url}"/> > </s:layout-component> > > So I guess it's supposed to work, but it doesn't. > > > emmecinque pisze: > > The argument to a jsp:include directive is not interpreted by > anything > > as a URL; it's a pathname interpreted on the server, by the JSP > engine > > and not by Stripes. > > > > > > 2009/9/24 Grzegorz Krugły <[email protected] <mailto:[email protected]>>: > > > >> I have an action mapped at URL > >> http://localhost:8080/elements/AdminMenu.action which I can go > to with > >> my browser and it works. > >> But if I try and do <jsp:include > page="/elements/AdminMenu.action"/> I > >> get FileNotFoundException. > >> > >> Does anyone have idea what I could be doing wrong? Is it a > matter of > >> configuring web.xml filters properly? Here's mine: > >> > >> <?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"> > >> <filter> > >> <display-name>Stripes Filter</display-name> > >> <filter-name>StripesFilter</filter-name> > >> > >> > > <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class> > >> <init-param> > >> <param-name>ActionResolver.Packages</param-name> > >> <param-value>pl.krop.nawigacja.web.action</param-value> > >> </init-param> > >> <init-param> > >> <param-name>Interceptor.Classes</param-name> > >> > <param-value>com.samaxes.stripejb3.EJBInterceptor</param-value> > >> </init-param> > >> </filter> > >> > >> <filter> > >> <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> > >> > >> <session-config> > >> <session-timeout> > >> 30 > >> </session-timeout> > >> </session-config> > >> > >> <welcome-file-list> > >> <welcome-file>index.jsp</welcome-file> > >> </welcome-file-list> > >> > >> <jsp-config> > >> <jsp-property-group> > >> <url-pattern>*.jsp</url-pattern> > >> <page-encoding>utf-8</page-encoding> > >> </jsp-property-group> > >> </jsp-config> > >> </web-app> > >> > >> > >> > > ------------------------------------------------------------------------------ > >> Come build with us! The BlackBerry® Developer Conference in > SF, CA > >> is the only developer event you need to attend this year. > Jumpstart your > >> developing skills, take BlackBerry mobile applications to > market and stay > >> ahead of the curve. Join us from November 9-12, 2009. > Register now! > >> http://p.sf.net/sfu/devconf > >> _______________________________________________ > >> Stripes-users mailing list > >> [email protected] > <mailto:[email protected]> > >> https://lists.sourceforge.net/lists/listinfo/stripes-users > >> > >> > > > > > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to market > and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Stripes-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
