I am having a problem with setting a beans parameters in a
JSP page
If I have say a variable
String fname
in a bean and I want to set it using the
<jsp:setProperty
i.e
<jsp:setProperty name="connectorBean" property="fname" value="Tony"/>
does this code call my setFname method
void public setFname(String fname)
{
this.fname = fname;
}
or should it be
void public setfname(String fname)
{
this.fname = fname;
}
or should fname be Fname.
Very confused.
I have gone back to using the setter and getter methods for know but would like to use the
<jsp:setProperty and <jsp:getProperty tags
Thanks for may help
Tony