Supongo que el problema es el struts-config.xml porque la verdad no soy muy diestro en esto. Qué me recomiendan revisar o hacer?
Este es el código del struts-config.xml
Código:
Y este es el código de Inicio.jsp<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> <form-bean name="LoginForm" type="Modelo.LoginForm"/> <form-bean name="SubirForm" type="Modelo.SubirForm"/> </form-beans> <global-exceptions> </global-exceptions> <action-mappings> <action path="/Welcome" forward="/Inicio.jsp"/> <action path="/upload" forward="/Proyecto.jsp" /> <!-- Upload Action --> <action path="/upload-submit" type="Controlador.SubirAction" name="SubirForm" scope="request" input="input"> <forward name="/input" path="/Proyecto.jsp" /> <forward name="success" path="/display.jsp" /> </action> <action name="LoginForm" path="/Login" scope="request" type="Controlador.LoginAction" input="/Inicio.jsp"> <forward name="success" path="/Proyecto.jsp"/> <forward name="failure" path="/Inicio.jsp"/> </action> </action-mappings> <plug-in className="Controlador.HibernateUtil"> <set-property property="path" value="/config.hibernate.cfg.xml"/> </plug-in> <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> <message-resources parameter="com/myapp/struts/ApplicationResource"/> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" /> <set-property property="moduleAware" value="true" /> </plug-in> <!-- ========================= Validator plugin ================================= --> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> </plug-in> </struts-config>
Código:
Les agradecería una pequeña guí o un consejo. Gracias y saludos!! <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <html:html lang="true"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><bean:message key="welcome.title"/></title> <html:base/> </head> <body style="background-color: white"> <jsp:include page="cabecera.jsp"/> <html:form action="/Login"> <table align="center" width="300" style="border:black 1px solid"> <tr> <td> Usuario: </td> <td> <html:text property="user" value=""/> </td> </tr> <tr> <td> Password: </td> <td><html:password property="password" value="" /> </td> </tr> <tr> <td> <html:submit value="Aceptar" /> </td> </tr> </table> </html:form> <h1> Inicio </h1> <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application"> <div style="color: red"> ERROR: Application resources not loaded -- check servlet container logs for error messages. </div> </logic:notPresent> </body> </html:html>