luxmi_gee 0 Newbie Poster

hi

i received one error when i run jsp page with custom control.the error is

cannot find setter method for the attribute <attribute name> of the tag handler <tag handler name>

my pgm is.

private String dfontSize="12";

public void setDfontSize(String dfontSize) {
this.dfontSize = dfontSize;
}

out.print("<SPAN STYLE=\"" +
"font-size: " + dfontSize + "px; " +
"font-family: " + fontList + "; ");
if (color != null) {
out.println("color: " + color + ";");
}
out.print("\">" ); // End of <SPAN ...>

and

i also added that attribute in tld file also. even though i got this error.
i don't know where did i do mistake.

can any one help me solve this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.