You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jennings, Christofer J." <CJ...@Sempra.com> on 2002/03/21 23:00:16 UTC

Best practice for using constants

Hi,

I want to fill radio button values with values from a constants class. What
is the best practice for this using struts?

For example, this code...
         <html:radio value="C4" property="crtainNum" />Curtain Number Four
... could be...
         <html:radio value=<% com.myCom.Constants.CURTAIN_VALUE %>
property="crtainNum" />Curtain Number Four
... or, at least I figure it could be.

But is there a more strutsy way to do it?

Thanks,
boz