property datasource required

Ads

 
 

Share on Google+Share on Google+

rajib dihingia
property datasource required
1 Answer(s)      7 years ago
Posted in : Spring
Hi I am using java springs I am using mysql as backend I am getting one error when i compile the application.property datasource required.

This is my dispatcher-servlet.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/"/>
<property name="suffix" value=".jsp"/>
</bean>


<bean name="/Department.htm" class="controller.salescontroller"/>
<bean id="DeptDaoImp" class="manager.DeptDaoImp"/>



<bean id="ds" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/pra"/>
<property name="username" value="root"/>
<property name="password" value="sa"/>
</bean>
<bean id="JdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource"><ref bean="ds" /></property>
</bean>
</beans>

Ads
View Answers

February 22, 2010 at 3:27 PM


Hi Friend,

Please visit the following link:

http://www.roseindia.net/spring/jdbc-template-batch-update.shtml

Hope that it will be helpful for you.
Thanks

Ads









Related Tutorials/Questions & Answers:
property datasource required - Spring
property datasource required  Hi I am using java springs I am using mysql as backend I am getting one error when i compile the application.property datasource required. This is my dispatcher-servlet.xml
DataSource in hibernate.
;property name="dataSource" ref="dataSource" /> <property name...DataSource in hibernate.  What is DataSource in hibernate?  ...; <property name="prefix"> <value>/WEB-INF/views/<
Advertisements
Version of excalibur-datasource>excalibur-datasource dependency
List of Version of excalibur-datasource>excalibur-datasource dependency
Managing Datasource in struts Application
Managing Datasource in struts Application  Hi i need to know how... datasource in struts-config.xml as data-sources> <data-source type...-property property="URL" value="jdbc:oracle:thin:@192.168.11.106:1521:server
Version of excalibur-datasource>excalibur-datasource-cluster dependency
List of Version of excalibur-datasource>excalibur-datasource-cluster dependency
Version of excalibur-datasource>excalibur-datasource-ids dependency
List of Version of excalibur-datasource>excalibur-datasource-ids dependency
datasource in jsp using struts
datasource in jsp using struts  how to get the datasource object in jsp.datasource is configured in struts-config.xml
Datasource - JSP-Servlet
Datasource   in web.xml datasource com.zetcode.DataSourceExample /DataSource datasource in index.jsp when i deploy the application i am getting
Artifacts of excalibur-datasource
List of Artifacts of excalibur-datasource maven depenency
code required.!
Java Script phone number entered by person should be in numeric only. code required!  i am using javascript coding on jsp page. i want that the phone number entered by person should be in numeric only..can i get code
@property nsinteger
@property nsinteger  Hi, How to declare @property nsinteger? Thanks... myvariable; } @property (nonatomic) NSInteger myvariable; @end Thanks   ...; } @property (nonatomic) NSInteger myvariable; @end Thanks
Maven Dependency excalibur-datasource >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource version1.1.1 in your project
Maven Dependency excalibur-datasource >> 1.2.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource version1.2.0 in your project
Maven Dependency excalibur-datasource >> 1.0
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource version1.0 in your project
Maven Dependency excalibur-datasource >> 2.1
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource version2.1 in your project
Property File
Property File  how to store key & values pair in property file? Note: In property file keys should be displayed in ascending order. please reply the answer as soon as possible. Thanking You   import java.io.
configure Datasource in enterprise application - EJB
configure Datasource in enterprise application  I wanted to know that how can configure the DataSource in the Enterprise Application.Thanks Rohit Chauhan  which type of IDE u r using???If NetBeans ..Then i have
E BOOK REQUIRED
E BOOK REQUIRED  Wicket in Action pdf required Urgently. Thnx
PHP Property Management - PHP
PHP Property Management  PHP Property Management.. any idea
Registering DataSource with JNDI
; } Registering The DataSource With JNDI Java Naming Directory Interface (JNDI... for objects for their associating attributes etc. An Example of DataSource...(); ConnectionPoolDataSource dataSource = new MysqlConnectionPoolDataSource
JDBC DataSource Example
; } JDBC DataSource Example You can establish a connection to a database either using DriverManager class or DataSource interface. JDBC DataSource... application program. DataSource object increases the application portability
Maven Dependency excalibur-datasource-cluster >> 1.1.1a
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource-cluster version1.1.1a in your project
Maven Dependency excalibur-datasource-ids >> 1.1.1a
You should include the dependency code given in this page to add Maven Dependency of excalibur-datasource >> excalibur-datasource-ids version1.1.1a in your project
help required in coding
help required in coding  hi..... I want to display output in graphical format . Can u tell me how it can be done? using for project java swings. plzzzzzz helpp
add a property to instance variable
add a property to instance variable  How to add a property to instance variable in iPhone SDK
code required in servlet
code required in servlet  hello... you provided me the answer with javascript.. i want to check which button is clicked in the servlet.. i have only 1 servlet an in that separate codes for different button clicks.. can u plzzz
struts property file query
struts property file query  hi i hav 3 property file in my struts2 application. how can i tell my struts application to read a particular property file based on the language i select from the dropdown list. Please help
php array length property
php array length property  How to get the php array length property
property in javascript get set
property in javascript get set  How to create the get and set property in JavaScript?   Creating Get and Set properties in JavaScript example.. myVar Sample = { nval : "", get get() { return this.nval; }, set
steps required to execute a query in JDBC
steps required to execute a query in JDBC  What are the steps required to execute a query in JDBC