Peço ajuda, não consigo identicar o meu erro.
Classe Action, onde quero chamar a pagína welcome.jsp.
@Action(value = "welcome", results = { @Result(name = "SUCCESS", location = "/welcome.jsp") })
public String execute() throws Exception {
return SUCCESS;
}
Struts.xml
Web.xml
<?xml version="1.0" encoding="UTF-8"?><display-name>Web</display-name>
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
Estrutura das pastas
webapp
| WEB-INF
| | content
| | |
| | ±welcome.jsp
| +index.jsp
+web.xml
Quando executo o projeto a página index.jsp executa, porém ao clicar botão que chama welcome.jsp aparece o erro.