File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes The Struts dispatcher cannot be found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "The Struts dispatcher cannot be found" Watch "The Struts dispatcher cannot be found" New topic

The Struts dispatcher cannot be found

Gerenne Vives
Ranch Hand

Joined: Feb 05, 2005
Posts: 60
Hi all,

I'm working with a new app in struts2 and hibernate. But when I do running the app to appear the error: "The Struts dispatcher cannot be found".


<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="" xmlns:xsi="" xsi:schemaLocation="">

<display-name>Struts 2</display-name>




"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"


<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<constant name="struts.custom.i18n.resources" value="ApplicationResource"/>

<package name="login" extends="struts-default" namespace="/">
<action name="validateUser" class="test.actions.LoginAction" method="validateUser">
<result name="success">index.jsp</result>
<result name="error">/jsp/error.jsp</result>


For the moment I have only the index.jsp, with the following code:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/estilos.css" type="text/css" media="screen" />
<s:text name="general.title"/>

Note, That if I remove this line "<s:text name="general.title"/>" , the error disappear.

Thanks in advance!!!
I agree. Here's the link:
subject: The Struts dispatcher cannot be found
It's not a secret anymore!