I've just be asked to work on a large portal project and have been looking through the established code. I keep finding this in the jsps:
<input class="portlet-form-button"
name="<%=ModifyUserProfile.FORM_FIRST_TIME_LOGIN_SUBMIT%>" type="submit" ...
The authors are using static strings defined in classes to define the names of input fields and buttons in jsp forms.
I've never seen this done before and was wondering if this is common practice. I'm inclined to think not, but I'm asking because, apart from centralising names which I would have thought are not likely to change, I can't see the reason why.
Any thoughts on this?