On Sun, Aug 3, 2008 at 3:31 PM, AlexPresley <[EMAIL PROTECTED]> wrote:
> > Why??nobody is going to answer here? Hopefully they will not. Your question is about *using* Struts for your application, and therefore belongs on the *user* list. The dev list is for discussions of the development of Struts itself. -- Martin Cooper > > Antonio Petrelli-3 wrote: > > > > Please ask this question to the Struts users mailing list: > > http://struts.apache.org/mail.html > > > > Antonio > > > > 2008/8/3 AlexPresley <[EMAIL PROTECTED]>: > >> > >> 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. > >> -- > >> View this message in context: > >> > http://www.nabble.com/Struts-1.3.8-problem-html%3Aform-tp18798477p18798477.html > >> Sent from the Struts - Dev mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Struts-1.3.8-problem-html%3Aform-tp18798477p18803172.html > Sent from the Struts - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >