DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   custom control (http://www.daniweb.com/forums/thread124297.html)

luxmi_gee May 15th, 2008 1:41 am
custom control
 
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.


All times are GMT -4. The time now is 10:54 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC