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.