Thursday February 27, 2003
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 in Java
at Feb 27 2003, 09:40:01 AM MST
5 Comments
Search This Site
Recent Entries
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
- PhoneGap for Hybrid App Development
Posted by dsuspense on February 27, 2003 at 12:22 PM MST #
Posted by dsuspense on February 27, 2003 at 12:23 PM MST #
Posted by dsuspense on February 27, 2003 at 12:25 PM MST #
Posted by Ryan Scharer on February 27, 2003 at 12:30 PM MST #
Posted by James Childers on February 27, 2003 at 02:11 PM MST #