Problema para acessar página .jsp

bom dia galera!

no menu do meu jsp tem o link que envia para uma página, mas quando eu clico, aparece o erro:

type Status report

message Invalid path /relatorio was requested

description The request sent by the client was syntactically incorrect (Invalid path /relatorio was requested).

E já chequei tudo, será que algum amigo pode dar uma luz?

RelatorioAction:

public class RelatorioAction extends AdfnBasicAction {
	
	public ActionForward show(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws WebActionException, GpbrPersistException {
		BusinessDelegate bd = this.getBusinessDelegate();
		request.setAttribute(TABLE_DATA_ATTRIBUTE, bd.findAll(new FuncionarioVO()));
		return mapping.findForward("showRelatorio");
	}
	
	public String forwardTo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String commandType) {
		return "show";
	}
}

AfdnBasicAction

public class AdfnBasicAction extends CadAction {

	private static final long serialVersionUID = 2177335754295321059L;
	
	public ActionForward blank(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws WebActionException {
		return mapping.findForward("blank");
	}
 
	protected BusinessDelegate getBusinessDelegate() {
		return (BusinessDelegate) SpringBeanFactoryComponent.getInstance().getBean("businessDelegate");
	}

	public String forwardTo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String commandType) {
		return "blank";
	}	

}

struts-config

    <form-bean name="relatorioForm" type="gpbr.web.form.DynaActionFormBean">
    	<form-property name="valueObject"	type="adfn.integration.vo.relatorio.RelatorioVO"/>
    	<form-property name="dtFaturamento" 	type="java.lang.Date"/>
    </form-bean>	

	<action path="/relatorio" name="relatorioForm" scope="request" type="adfn.action.relatorio.RelatorioAction" parameters="metodo">
	  <forward name="showRelatorio" path="showRelatorio" />
	</action>  

tiles-defs

	<definition name="showRelatorio" extends="mainLayout">
		<put name="titleViewMain" value="Relatórios" />
		<put name="body" value="/views/relatorio/relatorio_show.jsp" />
		<put name="action" value="/relatorio.do" />
	</definition>

RelatorioVO

/**
 * @hibernate.class table="PARCELA" lazy="false"
 */

public class RelatorioVO extends AdfnValueObject {

	private static final long serialVersionUID = 1431761953819613438L;
	
	private Date dtFaturamento;
	
	/**
	 * @hibernate.property column="DT_FATURAM" type="java.util.Date" not-null="true"
	 */
	public Date getDtFaturamento() {
		return dtFaturamento;
	}

	public void setDtFaturamento(Date dtFaturamento) {
		this.dtFaturamento = dtFaturamento;
	}

	public Integer getId() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setId(Integer id) {
		// TODO Auto-generated method stub
		
	}
	
}

Valew

[]'s

o erro está provavelmente no link do seu menu.

Veja se está com o .do, se o nome da action está correta, ou se o caminho a classe Action está certo

Tente tirar a barra “/”

<put name="action" value="/relatorio.do" /> para <put name="action" value="relatorio.do" />

problema resolvido :slight_smile: