I'm trying to create my own example of the struts framework, I created a
database servlet and I try to get data from the database.xml when I click on
a link but when I check my servlet.log I see that the database (hashtable)
is empty.
SERVLET LOG:
2001-06-06 01:57:25 - path="/struts-floodcert" :jsp: init
2001-06-06 01:57:25 - path="/struts-floodcert" :database: init
2001-06-06 01:57:25 - path="/struts-floodcert" :database: Initializing
database servlet
2001-06-06 01:57:25 - path="/struts-floodcert" :database: Loading database
from '/WEB-INF/database.xml'
2001-06-06 01:57:25 - path="/struts-floodcert" :action: init
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Loading application
resources from resource floodcert.struts.ApplicationResources
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Initializing
configuration from resource path /WEB-INF/struts-config.xml
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Process
servletName=action, urlPattern=*.do
2001-06-06 01:57:26 - path="/struts-floodcert" :action: Mapping for servlet
'action' = '*.do'
2001-06-06 01:57:29 - path="" :jsp: init
2001-06-06 01:57:37 - path="/struts-floodcert" :jsp: init
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Processing a GET for
/getPending
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Looking for
ActionForm bean under attribute 'pendingForm'
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Creating new
ActionForm instance of class 'floodcert.struts.PendingOrdersForm'
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Storing instance
under attribute 'pendingForm' in scope 'request'
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Populating bean
properties from this request
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Validating input
form properties
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Looking for Action
instance for class floodcert.struts.GetPendingAction
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Double checking
for Action instance already there
2001-06-06 01:57:42 - path="/struts-floodcert" :action: Creating new
Action instance
<!-- EMPTY EMPTY HASHTABLE -->
2001-06-06 01:57:42 - path="/struts-floodcert" :action: {}
2001-06-06 01:57:42 - path="/struts-floodcert" :action: GetPendingAction:
Processing Get action
2001-06-06 01:57:42 - path="/struts-floodcert" :action: PendingOrders is
not in database
Can someone tell me what I'm doing wrong?
Your help is much appreciated.
Gus