You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adwait Bhave <Ad...@tavant.com> on 2003/06/16 09:20:37 UTC

problem:checkbox

I'm using following lines in jsp..

				<td>
                        		<html:checkbox
property="appraiserType"/> National Company
				</td>
                        <td>
							<html:checkbox
property="appraiserType"/> Staff Appraiser
				</td>
                        <td>
							<html:radio
property="appraiserWatch" value="Yes"/>Yes
							<html:radio
property="appraiserWatch" value="No"/>No
				</td>
                        <td>

I'm not able to see any of the elements.The elements like textboxes and
dropdowns are displayed.(before these lines).
I'm getting error
	Cannot find bean org.apache...in any scope.
What could be the problem?
-Adwait B



-----Original Message-----
From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com]
Sent: Monday, June 16, 2003 12:25 PM
To: Struts Users Mailing List
Subject: Re: GenericDataSource looping


You've left off the "type" attribute in the <data-source> tag. Try

<data-source type="org.apache.commons.dbcp.BasicDataSource">

don't you get any errors?

Richard Raquepo wrote:
> Im use to use DBCP in Struts 1.1RC1
> but then mo back to GenericDataSource in Struts 1.1RC2
> 
> but it seem's im having a problem with it. According to my console it
seem's generic source is lopping endlessly...
> 429796 [tcp-accept-6802] INFO util.GenericDataSource  -
createConnection()
> 429812 [tcp-accept-6802] INFO util.GenericDataSource  -    Return new
connection, activeCount=5, useCount=123
> 429812 [tcp-accept-6802] INFO util.GenericDataSource  -   getConnection()
> 429812 [tcp-accept-6802] INFO util.GenericDataSource  -    Check for
timeout, activeCount=4, useCount=123
> ....
> 
> my data-source configuration in my struts-config.xml looks like this:
>   <data-source key="DATASOURCE">  
>    <set-property property="driverClass" value="com.mysql.jdbc.Driver" />
>    <set-property property="url" value="jdbc:mysql://localhost/crmdev" />
>    <set-property property="maxCount" value="10" />
>    <set-property property="minCount" value="5" />
>    <set-property property="user" value="root" />
>    <set-property property="password" value="password" />
>   </data-source>
> 
> ....
> has anybody experienced this before? what do i have to do to make it work?
> or should i really change my datasource? i was thinking og using
DBConnectionBroker? any ideas?
> 
> thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org