Nao reconhece a action?

boa tarde pessoal duvida de novato

meu JSP

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
      <script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<table>
	<tr>
		<th>Id</th>
		<th>Descrição</th>
		<th>Finalizado?</th>
		<th>Data de finalização</th>
	</tr>
	<c:forEach items="${tarefas}" var="tarefa">
		<tr>
			<td>${tarefa.id}</td>
			<td>${tarefa.descricao}</td>

			<c:if test="${not tarefa.finalizado}">
			    <td><a href="finalizaTarefa?id=${tarefa.id}">EM ABERTO</a>
				</td>
			</c:if>
			<c:if test="${tarefa.finalizado}">
				<td>Finalizado</td>
			</c:if>
			<td><fmt:formatDate value="${tarefa.dataFinalizacao.time}"
				pattern="dd/MM/yyyy" />
			</td>
			<td><a href="removeTarefa?tarefa.id=${tarefa.id}">Remover</a></td>
			<td><a href="mostraTarefa?id=${tarefa.id}">Alterar</a></td>
		</tr>
	</c:forEach>
</table>
</body>
</html>

minha action


package br.com.caelum.tarefas.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.com.caelum.tarefas.dao.TarefaDAO;


public class FinalizaTarefaAction {
	
	private long id;	

	@Action(value="finalizaTarefa", results = { 
			@Result(name="ok", type="redirectAction", params={"actionName", "listaTarefas"})
	})
	
	public String execute(){

		new TarefaDAO().finaliza(id);
		
		return "ok";
		
	}

	public void setId(long id) {
		this.id = id;
	}

}

There is no Action mapped for namespace / and action name finalizaTarefa.

quem souber e puder dar uma ajuda eu agradeco.

abs

Marcos

olá maaupe,

outras actions funciona normalmente?

	<filter>
		<filter-name>struts2</filter-name>
		<filter-class>
			org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

seu web.xml contém algo semelhante ao trecho acima?
struts.xml esta correto e no lugar certo?

att,

Obrigado pedruhenrik, pela ajuda sim meu web.xml esta exatamente como o que vc enviou

outras actions executam normalmente, e meu struts.xml esta

<struts>
</struts>

obrigado

estou ficando louco ja vi varias maneiras de implementar o struts. estou me guindo nessa que te mostrei.

onde sera que esta esse erro ?

opa é nois,

sua FinalizaTarefaAction esta no mesmo package das outras action ??

meu struts.xml ta assim:

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
	<package name="default" extends="struts-default">
	</package>
</struts>

eu lembro q tive o mesmo problema outra vez! hahah

muito obrigado pela sua ajuda, resolvi dando um celan no projeto devia ter algum lixo compilei novamente e restartei o sevidor funcionou agor avou partir pro ajax…

mas uma vez muito obrigado

[resolvido]

opa,

SHOW! hahaha

só não esquece o [Resolvido] no tópico blz?

Abs e boa sorte!