Hi! I am using Struts 1.3.8 and when i want to try some of the examples or when i want to develop something
i always have the same error in the line with "html:form." This is a very simple example: Inside Web-inf,i have a lib folder with the following libs: Antlr-2.7.2.jar,commons-beanutils,commons-chain-common-digester,-commons-fileupload,commons-io commons-loggining,commons-validator,jstl-1.0.6,oro-2.0.8,standar-1.06,struts-core,struts-el,struts-extras, struts-taglib,struts-tiles. Struts-config.xml with this Information: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_0.dtd"> <struts-config> <!-- === Form Bean Definitions --> <form-beans> <form-bean name="RegistroForm" type="app.RegistroForm"/> </form-beans> <!-- ===Action Mapping Definitions --> <action-mappings> <action path="/registro"type="app.RegistroAction"name="RegistroForm" input="/registro.jsp"/> <forward name="exito" path="/pages/succes.html"/> <forward name="fracaso" path="/pages/error.html"/> <action> </action-mappings> </struts-config> Inside Web-inf-src i have a package "app" with 2 classes. ---------------------------RegistroAction------------------------------ package app; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.*; 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 org.apache.struts.action.*; import java.util.Properties; import java.lang.Object; public class RegistroAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { RegistroForm registroForm = (RegistroForm) form; String user = registroForm.getUsername(); String pass1 = registroForm.getPassword1(); String pass2 = registroForm.getPassword2(); if (pass1.equals(pass2)) { return mapping.findForward("sucess"); } else { return mapping.findForward("error"); } } --------------------------------------- RegistroForm------------------------------------ package app; import org.apache.struts.action.ActionForm; public class RegistroForm extends ActionForm{ protected String username; protected String password1; protected String password2; public String getPassword1() { return password1; } public void setPassword1(String password1) { this.password1 = password1; } public String getPassword2() { return password2; } public void setPassword2(String password2) { this.password2 = password2; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } } In a folder call "Pages" i have a 2 .html "error.html" and "succes.html" And of course i have the index.jsp page,i use this page to start the application and there is where i have the error. ------------------------------------------index.jsp------------------------------------ <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Identificación</title> </head> <body> <html:form action="/registro"> Nombre Usuario<html:text property="username" /> Contraseña<html:text property="password1" /> Repetir Contraseña<html:text property="password2" /> <html:submit property="Registro"/> </html:form> </body> </html> The error is in <html:form action="/registro"> El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento. excepción That exeption in english it is: The server found an error,and cant fill this requirement. org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16 I am using Tomcat 5.5.26 Thanks in advance. ____________________________________________________________________________________ ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch