struts needs to map url requests to FilterDispatcher
your WEB-INF/web.xml should have filter configured and mapped as:
    <filter>
        <filter-name>struts</filter-name>
        
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        <init-param>
            <param-name>actionPackages</param-name>
            <param-value>your.action.package</param-value>
        </init-param>
        <init-param>
            <param-name>templateDir</param-name>
            <param-value>template</param-value>
        </init-param>         
        <init-param>
            <param-name>theme</param-name>
            <param-value>simple</param-value>
        </init-param>   
        <init-param>
            <param-name>org.apache.catalina.jsp_file</param-name>
            <param-value>index.jsp</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

hth
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.
> Date: Wed, 15 Jul 2009 22:56:22 -0700
> From: jayadeva...@gmail.com
> To: user@struts.apache.org
> Subject: org.apache.jasper.JasperException: The Struts dispatcher cannot be 
> found.
> 
> 
> hi all 
> 
> i am using struts2 for my pjt
> 
> when i try to excute pjt the following exception occured
> 
> pls help me
> 
> thanks in advance
> 
> 
> 
> org.apache.jasper.JasperException: 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]
> 
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 
> 
> root cause 
> 
> 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]
>       org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
> 
> org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52)
> 
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
>       org.apache.jsp.index_jsp._jspx_meth_s_005fform_005f0(index_jsp.java:99)
>       org.apache.jsp.index_jsp._jspService(index_jsp.java:72)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
>       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/org.apache.jasper.JasperException%3A-The-Struts-dispatcher-cannot-be-found.-tp24510546p24510546.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Reply via email to