RE: No getter method for property setCurrentDate of bean CalendarFactory
"Miguel Juteau" <[email protected]> Wed, 18 Dec 2002 09:23:40 +0800
| Newsgroups | gmane.comp.web.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
you're not following the JavaBean model. It should be: property="currentDate" BTW since you're using <bean:write> to output a property, what the tag will be using is a getter method, not a setter! mig -----Original Message----- From: anim-favor <[email protected]> [mailto:[email protected]] Sent: Wednesday, December 18, 2002 5:26 AM To: [email protected] Subject: [mvc-programmers] No getter method for property setCurrentDate of bean CalendarFactory I have a problem with "No getter method for property setCurrentDate of bean CalendarFactory" after I add the "jsp:userBean", how can I set the property from setCurrentDate for the bean CalendarFactory? The Jsp code is below: Thank you. <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <jsp:useBean id="CalendarFactory" class="CalendarFactory" />> <html:html locale="false"> <head> <title>Calendar Window Contents</title> </head> <body bgcolor="#FFFFFF" link="#000000" vlink="#000099"> <html:errors/> <bean:write name="CalendarFactory" property="setCurrentDate" filter="false"/> <table width="100%"> <tr> <td width="48%" align="left" valign="top"> <bean:write name="CalendarFactory" property="printCal" filter="false"/> </td> <td width="52%" align="left" valign="top"> <br> <logic:notPresent name="sfacalendarmodel" property="ltable"> <font face="Arial, Helvetica, sans-serif" size="2"><b>No Entries For Today</b></font> </logic:notPresent> <logic:present name="sfacalendarmodel" property="ltable"> <logic:iterate id="linktable" name="sfacalendarmodel" property="ltable"> <font face="Arial, Helvetica, sans-serif" size="2"> <b><bean:write name="linktable" property="hashs" filter="true"/></b> </font><br> <logic:notPresent name="linktable" property="lvector"> <font face="Arial, Helvetica, sans-serif" size="2"><li>No Entries For Today</li></font> </logic:notPresent> <logic:present name="linktable" property="lvector"> <logic:iterate id="linkvector" name="linktable" property="lvector"> <li><font face="Arial, Helvetica, sans-serif" size="2"> <a href="<bean:write name="linkvector" property="href" filter="true"/>" target="_blank"> <bean:write name="linkvector" property="title" filter="true"/></a> </font></li> </logic:iterate> </logic:present> <br> </logic:iterate> </logic:present> </td> </tr> </table> </body> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/NhFolB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/