This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes need for singleton Config ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "need for singleton Config ?" Watch "need for singleton Config ?" New topic
Author

need for singleton Config ?

Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 86
Hi,

I was going through one of struts 1.2 reference , where its mentioend that configuration information should be stored in singleton config object rather than deployment descriptors or properties.
Reason for not using deployment descriptor is that
the values in the deployment descriptor are not visible from other business objects?


I did not get this . As ServletContext is accessibe from struts action object as well as other JSPs.
Can anyone tel me if there is really a need for using a singleton config object to store the configuration information.?

SCJP 5.0 94%
OCE-EJBD 90%
 
Have you checked out Aspose?
 
subject: need for singleton Config ?
 
It's not a secret anymore!