This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Database servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Database servlet" Watch "Database servlet" New topic
Author

Database servlet

Kaiser Lautern
Greenhorn

Joined: May 11, 2005
Posts: 18
Hi all,

I'm trying to understand the DatabaseServlet from the MailReader example, but couldn't figure out exactly at what time has the hashtable been populated:



I don't know the Digester API, but it seems that all it does is to populate the User and Subscription DTO's. Next, in the init() method (where load() was called) it assumes already that the hashtable is populated:

try {
load();
getServletContext().setAttribute(Constants.DATABASE_KEY,
database);
}

Thanks,


Kaiser
 
Consider Paul's rocket mass heater.
 
subject: Database servlet
 
Similar Threads
When has the hashtable been populated?
Digester Problem
Chained Streams
digester help
to open new window from a servlet