I have my action, which has a variable HashMap<String, MyObject>
My Object:
public class MyObject {
private Boolean confermata;
private String idObj;
private String versione;
/* (getters and setters) */
}
When JSP snippet:
<s:hidden name="form.datiVersioneQuoteAssegnazione['%{#tmpIdObj}'].confermata"/>
<s:hidden name="form.datiVersioneQuoteAssegnazione['%{#tmpIdObj}'].idObj"/>
<s:hidden name="form.datiVersioneQuoteAssegnazione['%{#tmpIdObj}'].versione"/>
tmpIdObj
is another variable...it's fine.
Problem:
When I populate MyObject from the DB and I load the JSP the output is correct, but when I send the data to the server (clicking on a button in my <s:form>
) the hashmap is built correctly. By debugging it, it is a <String,MyObject>
but the values from the form are not taken, so the MyObjects objects are all empty... Furhtermore, I've seen that the setters of MyObjects are not called. Could somebody tell me why?