<%= Constants.MY_CONSTANT %>
-- Jeff
CRANFORD, CHRIS wrote:
I have defined a test class with constants as follows:
public class Constants
{
public final static String MY_CONSTANT = "OK";
}
What I want to do is in my html:option tag, I want to set the value
associated with that tag to the constan
> So you're not able to reference static public final
> properties in the same fashion as scriplets?
> <%=Constants.MY_CONSTANT%>
Tags are fundamentally different from scriptlets. Scriptlets are simply Java
code, and you can address a member variable of a class from a scriptlet just
as you could
27;
Subject: RE: JSTL & HTML Options
> I have defined a test class with constants as follows:
> public class Constants
> {
> public final static String MY_CONSTANT = "OK";
> }
> What I want to do is in my html:option tag, I want to set the
> value assoc
> I have defined a test class with constants as follows:
> public class Constants
> {
> public final static String MY_CONSTANT = "OK";
> }
> What I want to do is in my html:option tag, I want to set the
> value associated with that tag to the constant MY_CONSTANT.
> How would one do this?
I have defined a test class with constants as follows:
public class Constants
{
public final static String MY_CONSTANT = "OK";
}
What I want to do is in my html:option tag, I want to set the value
associated with that tag to the constant MY_CONSTANT. How would one do
this?
-=cc=-
---
5 matches
Mail list logo