You have to use the DynamicMappingFilter.
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/controller/DynamicMappingFilter.html
/Janne
On Dec 29, 2012, at 12:50 , Noobmeter Admin <ad...@noobmeter.com> wrote:
> I'm trying to display some dynamic information on the
> http://www.mywebsite.com/ screen (so "/" URL) and it doesn't seem to work. In
> this example the root() handler is called, but ${actionBean} in JSP is empty.
>
>
> RootActionBean.java:
>
> @UrlBinding("/")
> public class RootActionBean extends BaseActionBean {
> @DefaultHandler
> public Resolution root() {
> return new ForwardResolution("index.jsp");
> }
> }
>
> index.jsp:
>
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"
> %>
>
> <stripes:layout-render name="/layout/default.jsp">
> <stripes:layout-component name="contents">
> Context: ${actionBean.context}
> </stripes:layout-component>
> </stripes:layout-render>
>
> However, if I change @UrlBinding("/") to @UrlBinding("/asdf") then for
> http://www.mywebsite.com/asdf everything works fine.
>
> I'm using Jetty.
>
> Any help will be appreciated!
>
> Regards,
> John
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912_______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users