tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mats Palats" <>
Subject Problems with setProperty
Date Mon, 01 Jul 2002 09:21:26 GMT
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" />

and it generates this error:
Can't find a method to write property 'connstr' in a bean of type 

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 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message