tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Go" <ch...@msmedia.com>
Subject Re: Issue with the jsp:useBean
Date Thu, 27 Jul 2000 15:47:44 GMT
Rui,

If your bean call looks like:
<jsp:useBean id="mybean" class="myBean" />

then your getProperty call is
<jsp:getProperty name="mybean" property="username" />

then the method that is invoked inside the bean is

getUsername().

It is always been case sensitive in my experience.  I think this is an
extension of the fact that Java is case sensitive.

- Chris


----- Original Message -----
From: "Rui Oliveira" <oliveira@milu.ipn.pt>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, July 27, 2000 8:31 AM
Subject: Issue with the jsp:useBean


> Hello,
>
> when we are writting a JSP and the JSP uses a Bean, if we do something
> like:
> <jsp:getProperty name="mybean" property="username" />
>
> the JSP and the Bean itself already know that the method to be invoked
> inside the bean is the "setUsername" method?
>
> Is it allways case sensitive? I mean, if we have for instance the
> property "password" we would have a correspondent method called
> "setPassword"?
>
>
> Best Regards
>
> Rui Oliveira
>
>
> P.S.: we can I find extended info on the JSP tag?
>


Mime
View raw message