Hello,
I have this JSP where I'm putting some values from a property to an JavaScript array... it looks just like this:
<s:iterator value="parts" status="status">
parts[<s:property value="category.categoryId" />][<s:property value="piezaId" />] = ['<s:property value="descripcion" />', '<s:property value="disponible" />'];
</s:iterator>
But sometimes when no category is setted for that part it looks like
parts[1][460] = ['Vidrio Delantero RH', '1'];
parts[1][463] = ['Vidrio trasero LH', '1'];
parts[1][465] = ['Vidrio Trasero principal', '1'];
parts[1][462] = ['Vidrio trasero RH', '1'];
parts[][512] = ['Volanta', '1'];
parts[10][599] = ['Z de guía', '1'];
parts[1][692] = ['Farol de bumper delantero LH', '1'];
and that broke the JavaScript, in the part that looks like parts[][512]
In Struts1, I have the function logic:present
, im looking for something equivalent/similar in struts2... Tried <s:if test="#category.categoryId.length() > 0">
but it never comes to true...
Any help will be appreciated...