Re: Request Parameter keys as java constants

2002-10-12 Thread Hans Bergsten
Scott Goldstein wrote: > The EL contains a way to access request parameters: > > ${param.key} > > Can you define the key as a constant in an interface or does it have to > be hard code? Not as a Java constant (static final) but you can define the names as context init parameters in the web.xml

Re: Request Parameter keys as java constants

2002-10-12 Thread David M. Karr
> "Scott" == Scott Goldstein <[EMAIL PROTECTED]> writes: Scott> The EL contains a way to access request parameters: Scott> ${param.key} Scott> Can you define the key as a constant in an interface or does it have to Scott> be hard code? I'm not sure what you really mean by "a

Re: Request Parameter keys as java constants

2002-10-12 Thread Kris Schneider
Assuming: package com.dotech.web; public interface Constants { public static final String FOO_KEY = "foo"; } You can get at FOO_KEY by: and then get at the foo parameter value(s) with "${param[fooKey]}" or "${paramValues[fooKey]}". Quoting Hans Bergsten <[EMAIL PROTECTED]>: > Scott Golds