-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 To whom it may concern,
On 1/25/13 6:56 PM, Benin Technologies wrote: > I'm new to Tomcat/JSP > > I have a JSP page that instantiates a bean, then it access the > bean through a scriptlet, it works fine. But when I replace the > scriptlet by a <jsp:getProperty.. tag, it doesn't work > > Take my code below : <%= employee.getFirstName() %> IS WORKING, it > displays the employee's firstname <jsp:getProperty name="employee" > property="firstName" /> IS NOT WORKING, displays nothing > > any idea why ? Can you give us the interface for EmployeeBean? Perhaps "firstName" isn't a proper "Java Beans" "property" and so it can't be properly detected, while EmployeeBean.getFirstName works just fine. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEDLRsACgkQ9CaO5/Lv0PC8awCfTPG1cu31z0RwYeolkR+TbHy6 /TQAniNRX2HjsPZhHyZ3EcH+2zjHHeBF =FOIU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org