Skip to Content
0
Oct 18, 2011 at 02:32 PM

Order.JSP Help

68 Views

I am not very familair with JSP development but do have some java coding under my belt. We have commented out the logic used for the unit of measure, and I am trying to put in some custom logic. Can someone please tell me what is wrong with the current JSP code I am trying to use.

<% for (int j = 0; j < ui.units.length; j++) {

String getUOM = ui.getItemUnitSelected(ui.units[j]); %>

<% if (getUOM.equals("selected")){ %>

<%= JspUtil.encodeHtml(ui.units[j]) %><input type="hidden" name="units[<%= ui.line %>]" value="<%= JspUtil.encodeHtml(getUOM)%>"/>

<% } %>

<% } %>