The following is part of my jsp code:
${cForm.cId} <!-- I can see this value displayed correctly --%>
    <%! String i = ${cForm.cId}; %> 
    <td class="value">
        <img src="/supportcenter/cServlet?sampleImg=<%=i %>" width="300px" />
    </td>
cForm is my java object file, I can see the value displayed correctly in browser for the ${cForm.cId}.
However, when I want to assign the value into String i variable, I keep hit failed to compile : jsp error.
Kindly advise.
 
     
     
     
    