Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Lukasz Lenart
Did you implement hashCode and equals? You are comparing objects not Strings Regards -- Ɓukasz + 48 606 323 122 http://www.lenart.org.pl/ 2017-04-02 5:55 GMT+02:00 Kiran Kongala : > Hi, > > Before calling the return "success" in the action method I added couple of >

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Paul Zepernick
I notice that you are using the # notation to access the property. Does it work without it? It seems like something is not available on the action. You could add value="#diagnosisDTO.primaryDiagnosis" to your select and it will pull from the value stack just like the property did instead of

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Kiran Kongala
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 tag in the jsp and I see the values.But the value doesnt set the value back to the s:select drop down list.* *The

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Kiran Kongala
Hi Paul, I added as you said in the jsp with value. And below is the view source code for the drop down. But I don't see the 536 option as selected. I can see that value in the value stack as shown in the previous email. Please Select Chronic Hepatitis C Chronic Hepatitis