Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • 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="" 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!!!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!