Taglib do struts

Fiz uma pagina jsp com o struts, descompactei o arquivo struts-blank.war em um diretório após criar minhas subclasses de ActionForm e Action criei o seguinte jsp

[code]<%@taglib uri="/tags/struts-html" prefix="html" %>
<%@taglib uri="/tags/struts-bean " prifix="bean" %>

<html>
<head>
<title>User Registration</title>
</head>
<body>
<h1>User Registration</h1>
<html:errors/>

&lt;table&gt;
    &lt;html&#58;form action=&quot;userRegistration&quot;&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.firstName&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;firstName&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.lastName&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;lastName&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.userName&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;userName&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.email&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;email&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.phone&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;phone&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.fax&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;fax&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.password&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;password&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;bean&#58;message key=&quot;userRegistration.password&quot;/&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;html&#58;text property=&quot;passwordCheck&quot;/&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;html&#58;submit /&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;html&#58;cancel /&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/html&#58;form&gt;
&lt;/table&gt;

</body>
</html>[/code]

Mas estou recebendo o seguinte erro:
org.apache.jasper.JasperException: /userRegistration.jsp(2,0) Taglib directive: Mandatory attribute prefix missing

O erro só ocorre quando utilizo os taglibs do struts, pois a minha classe Action está funcionando direito.

fala viniciusprd, blz…

cara, acho q talves seja isso e vc tbém provavelmente já tenha achado o erro mas qualquer coisa vamos lá…

cara, o erro é simples, vc estreveu >> prifix=“bean” << vc cometeu um erro de digitação, é >> prefix=“bean”, ok.

espero ter ajudado…

inté…

a action tb está errada… <html:form action=“userRegistration”>

vc tem colocar uma barra antes… assim

<html:form action="/userRegistration">

e

no cabeçalho…

<%@taglib uri="/tags/struts-html.tld" prefix=“html” %>
<%@taglib uri="/tags/struts-bean.tld" prefix=“bean” %>

Abraço,

fvilella