Aí galera beleaza?
bom o erro é esse:
type Status report
message No action instance for path /Processadores could be created
description The server encountered an internal error (No action instance for path /Processadores could be created) that prevented it from fulfilling this request.
meu mapeamento está assim:
<action path="/Processadores" type="br.com.lojahardware.action.menuesquerdo.ProcessadoresAction">
<forward name="success"
path="menu.esquerdo.hardware.processadores"
redirect="false"
contextRelative="false" />
</action>
minha action “mãe” está asim
/**
* Criado em 29/06/2006
*/
package br.com.lojahardware.action;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import br.com.lojahardware.config.Constantes;
/**
* @author Leandro Costa Silva(<a href="mailto:[email removido]">[email removido]</a>)
*
*/
public abstract class SuperAction extends Action {
private HashMap <String,String>configs = null;
abstract public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception ;
public SuperAction(){
String appConfig = servlet.getServletContext().getRealPath(servlet.getInitParameter(Constantes.CONFIG));
String boConfig = servlet.getServletContext().getRealPath(servlet.getInitParameter(Constantes.BOPROPERTIES));
String daoConfig = servlet.getServletContext().getRealPath(servlet.getInitParameter(Constantes.DAOPROPERTIES));
configs = new HashMap<String, String>();
configs.put(Constantes.CONFIG,appConfig);
configs.put(Constantes.BOPROPERTIES, boConfig);
configs.put(Constantes.DAOPROPERTIES, daoConfig);
}
public HashMap getAppConfigs(){
return configs;
}
}
A filha é essa:
/**
* Criado em 26/06/2006
*/
package br.com.lojahardware.action.menuesquerdo;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import br.com.lojahardware.action.SuperAction;
import br.com.lojahardware.delegate.Delegate;
/**
* @autor Leandro Costa Silva(<a
* href="mailto:[email removido]">[email removido]</a>)
*
*/
public class ProcessadoresAction extends SuperAction {
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception {
Delegate delegate = new Delegate(getAppConfigs());
List processadores = null;
processadores = delegate.getListaProcessadores();
request.setAttribute("processadores", processadores);
return mapping.findForward("success");
}
}
A meu ver isso está certo mas, vai saber, sa vezes a terra está girando ao contrário, brincaderia. :lol:
Mas obrigado pela força galera!