struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Issue with Struts2 s:select tag with Object inside a Model Object
Date Mon, 03 Apr 2017 10:44:25 GMT
2017-04-02 22:58 GMT+02:00 Kiran Kongala <kirankongala06@gmail.com>:

> Hi Lulasz,
>
>
> *I am not comparing the same objects.I am trying to compare the String to
> a constant String.Still do I need to override the equals and hashCode
> methods.*
>
> *I added a <s:debug/> tag in the jsp and I see the values.But the value
> doesnt set the value back to the s:select drop down list.*
>

If you are comparing Strings why do use listKey and listValue? These
attributes are used to fetch an object's property and compare it with value
pointed by the "name" attribute.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message