You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mats Palats <ma...@hotmail.com> on 2002/07/01 11:21:26 UTC
Problems with setProperty
I'm having problems setting properties with setProperty
in the top of my .jsp page I have:
<jsp:useBean id="conn" class="wiBeans.ConnectionBean" scope="page">
<jsp:setProperty name="conn" property="connstr"
value="jdbc:oracle:thin:@localhost:1521:orcl" />
<jsp:setProperty name="conn" property="username" value="scott" />
<jsp:setProperty name="conn" property="password" value="tiger" />
</jsp:useBean>
and it generates this error:
Can't find a method to write property 'connstr' in a bean of type
'wiBeans.ConnectionBean'
but if I remove those setProperty lines and instead use
<% conn.setConnstr("bla bla bla") %>
it works.
does anyone know why this is happening? I think it's really weird.
Thnx in advance //Mats
_________________________________________________________________
Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa
kopior: http://photos.msn.se
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>