struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emmanuel.boudrant" <b...@yahoo.fr>
Subject Re: Using static ints as values in <html:submit>
Date Sat, 20 Oct 2001 10:51:16 GMT
> 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 final
> int.
> 
> When I try to compile this jsp, I get:
> 
> 	method setValue(int) not found in class
> org.apache.struts.taglib.html.SubmitTag at ...
> 
> Am I only allowed to use bean "variables" that have
> get and set methods?
> 
> Thanks,
> 
> Tony
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran├žais !
Yahoo! Courrier : http://courrier.yahoo.fr

Mime
View raw message