Hi,

This is proper behavior according to the spec (I believe).

I fixed this in my tag by overloading the setter method for the
attribute.

For example, you have a name attribute, so it looks like you will
currently have:

public void setName( Object p0 ) {
        name = p0;
}

I would fix by adding:

public void setName( String p0 ) {
        setName( (Object) p0 );
}

David

> "Fisher, Vick" wrote:
> 
> Hi All,
> 
> I am trying to use a JRun tag called <form>.  I have already used JRun
> <foreach> tag from the same jar in the same browser and tomcat server,
> so those parts seem to work fine.
> 
> I keep getting the error:
> 
> org.apache.jasper.compiler.CompileException:
> C:\webdev\JRunFormTags.jsp(12,4) Unable to convert a String to
> java.lang.Object for attribute name
> 
> with the <form> tag, even when typing in the example exactly as shown
> in the JRun taglib.pdf file on page 47.
> 
> I have moved around the attribute names and values and reloaded fifty
> times at least.  It always has an error on the first attribute of the
> <form> tag.
> 
> Example html:
> 
> <!-- Import classes needed to support the JRun Tag Library -->
> <%@ page import="java.lang.Object" %>
> <%@ page import="java.lang.String" %>
> <%@ page import="java.util.*" %>
> <%@ page import="allaire.taglib.*" %>
> <%@ taglib uri="JRunTaglib" prefix="jrun" %>
> 
> <html>
> <body>
> 
> <table>
>   <tr><td>
>     <jrun:form action="processForm1.jsp" name="vick" >
>     <input type="submit" value="validate">
>     </jrun:form>
>   </td></tr>
> </table>
> 
> </body>
> </html>
> 
> Anyone else seen such a problem?
> 
> Thanks much,
> Vick Fisher [EMAIL PROTECTED]
> Software Engineer
> TEOCO, Fairfax, VA

-- 
David Haraburda - [EMAIL PROTECTED]
Outsourcing Center - Providing Insight Into Outsourcing
972-980-0013 x736

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to