Hi,
I'm working on an application. I have a servlet (writeDataBase.class) that writes some information in a database. This is working fine. My folder structure looks like: webapps/HelloWord/web-inf/classes. In folder 'classes' is where the file writeDataBase.class is placed. web.xml looks like:
<servlet>
<servlet-name>HelloWord</servlet-name>
<servlet-class>writeDataBase.writeDataBase</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWord</servlet-name>
<url-pattern>/write-data</url-pattern>
</servlet-mapping>
If I want to add a new servlet that will read data from the data base, how should I do it? As a class of the same package? How should I modify the file structure and the web.xml file? Thanks