Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08D1FFFA4 for ; Thu, 9 May 2013 21:17:07 +0000 (UTC) Received: (qmail 87134 invoked by uid 500); 9 May 2013 21:17:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 87064 invoked by uid 500); 9 May 2013 21:17:05 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 87056 invoked by uid 99); 9 May 2013 21:17:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 21:17:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ken.mcwilliams@gmail.com designates 209.85.219.54 as permitted sender) Received: from [209.85.219.54] (HELO mail-oa0-f54.google.com) (209.85.219.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 21:17:00 +0000 Received: by mail-oa0-f54.google.com with SMTP id j1so4124414oag.13 for ; Thu, 09 May 2013 14:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=X3UXeZMBILwOZkHMDXvmKZu3UWp/vCvV2WtGKEF4y0c=; b=ixOm52QBU3cSJ5TtZb9yzev/J0DYLMa/uqqbmCAP99kgCDrx4wtBOhpuOTDkDDXnZo 9t3IZS+wAOWGVL2haKbA8EbGzxOIowcR9gT6GqNWiSq+kit3gtZnZ74bb7Q301pAxYIK W6ILkvVxarC/vVEIny6M7ib9IWuLMFHP6iFnRaaygxumWKu/JPiqrmv8SxZiyVfhu1r5 f8g4x4ej5nK1sah46HPftLpuTBmECvE+9bifgDq4CToA/mzlmo36ksNGLv1grAp59zv0 88dcDU7wSwXGjf42wJ3pdnZ60TgmE5bJlG+kRWzw1Za6pF8N0WAq9OCnL8D8WRPAMV+K rhuw== MIME-Version: 1.0 X-Received: by 10.60.94.244 with SMTP id df20mr5507225oeb.122.1368134199913; Thu, 09 May 2013 14:16:39 -0700 (PDT) Received: by 10.76.79.138 with HTTP; Thu, 9 May 2013 14:16:39 -0700 (PDT) In-Reply-To: <1368124402.85954.YahooMailNeo@web140701.mail.bf1.yahoo.com> References: <1368029700.84847.YahooMailNeo@web140706.mail.bf1.yahoo.com> <1368124402.85954.YahooMailNeo@web140701.mail.bf1.yahoo.com> Date: Thu, 9 May 2013 15:16:39 -0600 Message-ID: Subject: Re: struts 2 / sitemesh/ To: Struts Users Mailing List , john lee Content-Type: multipart/alternative; boundary=089e011845f8fdb3cb04dc4f90d2 X-Virus-Checked: Checked by ClamAV on apache.org --089e011845f8fdb3cb04dc4f90d2 Content-Type: text/plain; charset=ISO-8859-1 I know very little about sitemesh integration and am away from my development machine but I think the integration guides mention you need to use the StrutsPrepareFilter followed by the SiteMeshFilter filter followed by the StrutsExecute filter. Guessing but the SiteMeshFilter might be a custom one designed for struts2 integration (if there is a struts2-sitemesh-plugin) I'd verify if this is the case. On Thu, May 9, 2013 at 12:33 PM, john lee wrote: > > > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce # cat partsearchinput.jsp > > <%@ taglib prefix="s" uri="/struts-tags"%> > > > > > > > > the above code works, and verified by > http://localhost/ecommerce/partsearchinput.jsp > > but, after i start to use sitemesh, it has the problem as the following > > The Struts dispatcher cannot be found. This is usually caused by using > Struts tags without the associated filter. Struts tags are only usable when > the request has passed through its servlet filter, which initializes the > Struts dispatcher needed for this tag. - [unknown location] > > SEVERE: Unhandled exception occurred whilst decorating page > java.lang.RuntimeException: org.apache.jasper.JasperException: An > exception occurred processing JSP page /partsearchinput.jsp at line 6 > 3: > 4: <%@ taglib prefix="s" uri="/struts-tags"%> > 5: > 6: > 7: > 8: > 9: > > > > **************************************************************************** > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF # cat web.xml > > > struts2 > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter > > > sitemesh > com.opensymphony.sitemesh.webapp.SiteMeshFilter > > > > sitemesh > /* > FORWARD > REQUEST > > ********************************************************************** > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce/decorators # cat > basic-theme.jsp > > <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" > prefix="decorator" %> > > <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" > prefix="decorator"%> > <%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%> > > <%@ taglib prefix="s" uri="/struts-tags"%> > > > > > > >
> <%@ include file="/partsearchinput.jsp"%> >
>
>

Copyright > XXXXX

> > > ******************************************************************************* > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF # cat > decorators.xml > > > > /menu.jsp > > > > ********************************************************************************** > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce # cat partsearchinput.jsp > > <%@ taglib prefix="s" uri="/struts-tags"%> > > > > > > > *********************************************************************************** > alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce # cat menu.jsp > > >

test

> --089e011845f8fdb3cb04dc4f90d2--