• Post Reply Bookmark Topic Watch Topic
  • New Topic

The Struts dispatcher cannot be found  RSS feed

Gerenne Vives
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

<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!!!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!