aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database servlet