struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AlexPresley <>
Subject Struts 1.3.8 problem html:form
Date Sun, 03 Aug 2008 13:08:11 GMT

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:

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"

                                  <!-- === Form Bean Definitions -->

                                         <form-bean name="RegistroForm"

                            <!-- ===Action Mapping Definitions -->

                             <action path="/registro" 
                                    <forward name="exito"
                                   <forward name="fracaso"


Inside Web-inf-src i have a package "app" with 2 classes.


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");



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.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

<%@ taglib uri="" prefix="html" %>
<%@ taglib uri="" prefix="bean" %>
<%@ taglib uri="" prefix="logic" %>


<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">


<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"/>



The error is in <html:form action="/registro">

El servidor encontró un error interno () que hizo que no pudiera rellenar
este requerimiento.
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:
Sent from the Struts - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message