I was not able to make it work either, and recommended solution was to put
"index.jsp" in "WebContent" folder, and inside index.jsp include the
actionbean,

for example in index.jsp I have:
<%@page contentType="text/html;charset=UTF-8" language="java"
trimDirectiveWhitespaces="true"%>
<jsp:include page="/HomeAction"/>


On Sat, Dec 29, 2012 at 5:50 AM, 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

Reply via email to