servlet not able to access database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • umangbansal
    New Member
    • Jul 2010
    • 8

    servlet not able to access database

    i m devloping a java servlet, and want my servlet to access ms-access database which it is not doing i guess there is problem with my web.xml file . coding of my web.xml file is as follows
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
     "http://java.sun.com/dtd/web-app_2_3.dtd"> -->
    
    <web-app>
     
     <servlet>
      <servlet-name>bill</servlet-name>
      <servlet-class>bill</servlet-class>
     
    </servlet>
     
    
    <servlet-mapping>
     <servlet-name>bill</servlet-name>
     <url-pattern>/bill</url-pattern>
     </servlet-mapping>
    
     
     
    <welcome-file-list>
    	  	<welcome-file>/form/form </welcome-file>
    		<welcome-file>umang.mdb</welcome-file>
    	</welcome-file-list>
    
    </web-app>
Working...