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

2017-04-01 Thread Kiran Kongala
Hi, I am trying to use the Struts2 s:select tag but the drop down value coming from the db is not being set to the drop down as selected value and the screen always shows the default first value in the list. Can some one please help me. *JSP Code* *Action Class Code* *I have Disease

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

2017-04-01 Thread Paul Zepernick
What happens when you use a s:property to evaluate diagnosisDTO.primaryDiagnosis? If you do not get a value, then check to make sure the path is right or that something is not wrong in your action that is populating it. Also verify that the key property in your list is the same type as the

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

2017-04-01 Thread Kiran Kongala
Hi, Before calling the return "success" in the action method I added couple of println statements and I am seeing the data for the dropdown and below are the values diseasetracking: DiseaseTracking: dstId = 2048 DstCodeId = HPC paID = 2 memberID = 100 memberIdentTypeID = 1 memberAddressID =

Re: Can we use the decorator pattern in Actions?

2017-04-01 Thread Lukasz Lenart
Hi Miguel, I still have this on my TODO list ;-) But to be honest, I have no idea (or rather forgot) how it should be implemented and I still don't get it, what's the main reason/functionality? It looks like a proxy but from user/developer perspective (just for records, Struts is using