try this:
html:submit property=submit value=%=
Integer.toString(ButtonNames.SEARCH) %
it's expecting a string as the value.
Tony Li wrote:
In my jsp, I have this line:
html:submit property=submit value=search/
Instead of the string search, I would like to use something like:
Am I only allowed to use bean variables that have
get and set methods?
No, You must do:
html:submit property=submit value=%= (String)
ButtonNames.SEARCH %
html:submit property=submit value=%=
ButtonNames.SEARCH
%
Where ButtonNames is an interface and SEARCH is a
public static
In my jsp, I have this line:
html:submit property=submit value=search/
Instead of the string search, I would like to use something like:
html:submit property=submit value=%= ButtonNames.SEARCH
%
Where ButtonNames is an interface and SEARCH is a public static final
int.
When I
3 matches
Mail list logo