Mapped properties returning string array instead of Integer object in struts2 -


I have assigned to the drop down. Each dropdown lounge will be set in Hashpe when I get these values If I try to do so, I am genetically reducing the values ​​as a string array instead of an object. Therefore, I do not agree that I am not able to reproduce the values ​​again. Below I am using the values ​​to populate.

  & lt; S: iterator value = "#actComments.lstEntities" & gt; & Lt; TR & gt; & Lt; Td width = "15%" align = "left" & gt; & Lt; S: Text file name = "property type" readonly = "true" value = "% {# attr.propertyTypeName}" cssStyle = "width: 80px; font size: 11px;" / & gt; & Lt; / TD & gt; & Lt; Td width = "85%" align = "left" & gt; & Lt; S: Select name = "hmMapComment [% {attr.propertyTypeId}]" cssStyle = "font-size: 11px; width: 457px; margin-bottom: 3px" headerKey = "0" headerValue = "- select comment Do - "list =" comment "list =" comment id "listValue =" commentText "/> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / S: iterator & gt;  

In your recipient declaration, do you have to declare the proper type of hashap Has been declared (i.e. hashmap> string, integer>), or do you see it as a 'hashmap'? It is my understanding that if you do not specify the type in the gator's signature, the returned objects will be evaluated as a string.


EDIT: If you are using JDK 1.5, you can do a suitable for class (or possibly, for the act, not sure) for a 'classname '- Conversion. Enter the Properties file in your classpath. It will tell you type conversion code, how it is.

  element-final entity = com.Arecompany.Which object  

I'm not sure how you sublet Do you have to specify Element-Act Commitments.Listenties or something else. I'll try nefing with that.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -