Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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
 
jQuery in Action, 2nd edition
 
subject: Database servlet
 
Similar Threads
to open new window from a servlet
When has the hashtable been populated?
Digester Problem
Chained Streams
digester help