Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Spring property datasource required

Have Programming Question? Ask it here!
 
 
 


rajib dihingia
property datasource required
1 Answer(s)      4 years and 5 months 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>


Advertisement
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


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
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
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
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
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
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.
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
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
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
Configuring Struts DataSource Manager on Tomcat 5
Configuring Struts DataSource Manager on Tomcat 5... can configure Struts DataSource Manager on the Tomcat 5.5.9 server. We will use... DataSource Manager to use MySQL Database and use the connection provided by Struts
How to create datasource and connectionpool in websphere 6.0 - Java Beginners
How to create datasource and connectionpool in websphere 6.0  how to create datasource and connection pool in websphere version 6.0? and give complete example on connectionpool datasource
add a property to instance variable
add a property to instance variable  How to add a property to instance variable in iPhone SDK
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
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
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath  HI, What is the solution of UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath error? Thanks
How to create datasource and connectionpool in weblogic 9.1 - Java Beginners
How to create datasource and connectionpool in weblogic 9.1  How to create datasource and connectionpool in weblogic 9.1? give compleate example on connectionpool datasourceusin weblogic 9.1
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
iphone property list related
iphone property list related  question related to iphone application...... how to retrieve data from plist and again check the condition if data is found in plist then go to next view and print those value in table
Urgently required SEO
Freelance SEO       Position Vacant: Urgently required SEO Job Description ...; Website: http://www.roseindia.net  Reference ID: Urgently required
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
Multibox property - Struts
Multibox property  I am trying to implement a multibox property. I get the values for them through a populated VO object from the Server. In the form I have defined two array variables They are Daysoftheweek : contains all
Spring @Required Annotation
that org.springframework.beans.factory.BeanInitializationException: Property 'student' is required for bean 'college...: org.springframework.beans.factory.BeanInitializationException: Property 'student' is required for bean...Spring @required Annotation In this tutorial you will see about spring
Date Format required to change in java
Date Format required to change in java  can we change the format of date like sql as per our requirements???If yes then please give the detail solution
Hibernate required jar files - Hibernate
Hibernate required jar files  Hi, What are the jar files are required for hibernate and Springs application. I want to run complete application springs and hibernate. Where it will be available? How can i use it i.e.
Read Property file From Jmeter
Read Property file From Jmeter  Hi, I am running web driver script from Jmeter, but while reading property file I am getting "File Not Find Exception". Please tell me how to read ".properties" file from Jmeter
Problem With Combo Box Editable Property
Problem With Combo Box Editable Property  Hi I am new To Flex i had set Combo Box Editable Property as true. But I didn't get the property filtering in the combo box like when you enter text "S" in the combo box then the names
Struts2.2.1 property Tag Example
Struts2.2.1 property Tag Example The property tag is a generic tag that is used to get the property of a value, which will default to the top of the stack... the property tag.  The following Example will shows how to implement
SPEL-System Property
Accessing System Property Using SpEL Spring 3 provides powerful Expression...: The MyClass class contains property named "prop" which is of String...;spel.systemproperty.MyClass"> <property name="prop" value="
JDBC Transaction ACID property
.style1 { text-align: center; } JDBC Transaction ACID Property... property refers to the Atomicity, Consistency, Isolation, Durability respectively. Atomicity- This property says that all the changes to the data
Passing a java property to a javascript variable
Passing a java property to a javascript variable  i want to assign a java property to a js variable: action class: collegename have a property in action class which having its getter/setter method. JSP code: <%@ taglib
Tools required to build Simple Cart
Tools required to build Simple Cart       Shopping cart application is written in Java and so... tools are required--- Java Development Kit (JDK), 1.4 or later. Apache Ant
JSP bean set property
JSP bean set property   ... you a code that help in describing an example from JSP bean set property... the bean property value using property getter method in bean package
how to show required fields indicate as * in struts2
how to show required fields indicate as * in struts2  how to show required fields indicate as * in struts2
Spring Map Property
Spring Map Property The Spring Framework has bean support for the Collections. It provide list, set, map and props elements. Here in this tutorial you will see about the map elements which is used to set values inside the map
Spring Set Property
Spring Set Property The Spring Framework has bean support for the Collections. It provide list, set, map and props elements. Here in this tutorial you will see about the set elements which is used to set values inside the set
jQuery required validation
jQuery required Validation: jQuery "required" is the method...;/option>. Getting Started with jQuery required : In this example there are the following steps which are used to make jQuery required. This example  Makes
Why binding attribute is required in jsf frame work
Why binding attribute is required in jsf frame work  Why binding attribute is required in jsf frame work. And what use of binding attribute
What are the different types of property and class mappings?
What are the different types of property and class mappings?  Hi, What are the different types of property and class mappings? thanks
Redefine property in the children Target
Redefine property in the children Target... to define the property file whether it is local or global. When you create... the message Global file.  The <property name="build.property"
Property Tag (Data Tag) Example
Property Tag (Data Tag) Example       In this section, we are going to describe the property tag. The property tag is a generic tag that is used to get the property of a value, which
Get Property by Name
.style1 { margin-right: 75px; } Get Property by Name      ... to get Property by Name. For this we have a class name "Get Property
 

 

 

DMCA.com