How do you manage your Constants?
I'm sure most of you Java Developers have a methodology for handling your "constant" values. I've seen a couple of different techniques, and I'd like to see what everyone else is doing. Currently, I use a Constants.java
file that has a bunch of public final static String
lines in it. I got this technique from the struts-example app when I first started working with Struts. I recently came across (can't remember where) a technique where the Constants.java
file was an Interface and it was simply implemented. How are you handling this in your apps?
Secondly - do you ever use these Constants in your JSPs, or do you just use the actual values? I use the actual values - less typing.
Posted by dsuspense on February 27, 2003 at 06:22 PM MST #
Posted by dsuspense on February 27, 2003 at 06:23 PM MST #
Posted by dsuspense on February 27, 2003 at 06:25 PM MST #
Posted by Ryan Scharer on February 27, 2003 at 06:30 PM MST #
Posted by James Childers on February 27, 2003 at 08:11 PM MST #