You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Geddes, Mark (ANTS)" <ma...@ants.co.uk> on 2001/01/29 13:50:16 UTC

Missing getter in .org.apache.struts.taglib.html.ImgTag

Using last night's build (20010128) I get the following error using Weblogic
6 and the struts-example web-app.
 
Error in using tag library uri='html' prefix='/WEB-INF/struts-html.tld': 
There is no setter method for property 'lowsrc', for Tag class
'org.apache.struts.taglib.html.ImgTag'

There does in fact, seem to be a setter, but not a getter. Is this just
Weblogic being pedantic about bean properties, or am I missing something ?


    /**
     * The low resolution image source URI.
     */
    protected String lowsrc = null;

    public String getlowSrc() {
	return (this.lowsrc);
    }

    public void setLowsrc(String lowsrc) {
	this.lowsrc = lowsrc;
    }


Mark



***************************************************************************
This email message contains confidential information for the above addressee only.  If you are not the intended addressee you must not disclose or use the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not represent those of the Company in any way and reliance should not be placed upon its contents.

Unless otherwise stated this email message is not intended to be contractually binding.  Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by the SFA
***************************************************************************

Re: Missing getter in .org.apache.struts.taglib.html.ImgTag

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Geddes, Mark (ANTS)" wrote:

> Using last night's build (20010128) I get the following error using Weblogic
> 6 and the struts-example web-app.
>
> Error in using tag library uri='html' prefix='/WEB-INF/struts-html.tld':
> There is no setter method for property 'lowsrc', for Tag class
> 'org.apache.struts.taglib.html.ImgTag'
>
> There does in fact, seem to be a setter, but not a getter. Is this just
> Weblogic being pedantic about bean properties, or am I missing something ?
>

Write-only properties (i.e. properties with a setter but no getter) are perfectly legal according to the JavaBeans spec, so it should work without.  However, I went ahead and corrected the spelling of the getLowsrc() method anyway, so this should work correctly with tonight's
nightly build.

Craig