Priyanka
Priyanka

Reputation: 341

ajax to controller

I want json array or ajax code for parse data jsp to controller

Upvotes: 1

Views: 1327

Answers (3)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340903

You need to add commons-dbcp-1.4.jar (or other version) into WAR classpath. This can be done by either putting this JAR file inside your WAR file in /WEB-INF/lib directory or simply by copying it to Tomcat /lib directory. Restart and it should work.

Upvotes: 1

oiavorskyi
oiavorskyi

Reputation: 2941

You need to make sure that you have included commons-dbcp as a dependency in your pom file.

Upvotes: 1

Tarlog
Tarlog

Reputation: 10154

Looks like you are missing dbcp in your classpath:

  <dependency>
    <groupId>commons-dbcp</groupId>
    <artifactId>commons-dbcp</artifactId>
    <version>1.3</version>
  </dependency>

see http://commons.apache.org/dbcp/ for the correct version

Upvotes: 3

Related Questions