Yes, I'm using it. But it doesn't seem to help.
Any other ideas?
Regards,
John
From: Janne Jalkanen
<Janne.Jalkanen@...<http://gmane.org/get-address.php?address=Janne.Jalkanen%2d4lrhCRj%2fbmMAvxtiuMwx3w%40public.gmane.org>
>
Subject: Re: how to properly assign ActionBean to root
url?<http://news.gmane.org/find-root.php?message_id=%3c28C67C15%2dDA22%2d41EE%2d974C%2d2F92756860FA%40ecyrd.com%3e>
Newsgroups:
gmane.comp.java.stripes.user<http://news.gmane.org/gmane.comp.java.stripes.user>
Date: 2012-12-29 15:03:41 GMT (4 hours and 16 minutes ago)
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 <
admin-ahxvawymexf54taoqty...@public.gmane.org> 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:
<at> UrlBinding("/")
public class RootActionBean extends BaseActionBean {
<at> DefaultHandler
public Resolution root() {
return new ForwardResolution("index.jsp");
}
}
index.jsp:
<% <at> page contentType="text/html; charset=UTF-8" %>
<% <at> 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 <at> UrlBinding("/") to <at> 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