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



Home Answers Viewqa Spring property datasource required
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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

 

 

DMCA.com