edge
May 20th, 2007, 06:27 AM
Hi,
I have to write long sentences of code like:
<input type="text" size="16" maxlength="30" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.displayValue}"/>"/>
instead of:
<input type="text" size="16" maxlength="30" name="${status.expression}" value="${status.displayValue}"/>
because second option doesn't work properly. In the text field it displays text:
${status.displayValue}
What should I do to be able to use shorter version of this code?
I have to write long sentences of code like:
<input type="text" size="16" maxlength="30" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.displayValue}"/>"/>
instead of:
<input type="text" size="16" maxlength="30" name="${status.expression}" value="${status.displayValue}"/>
because second option doesn't work properly. In the text field it displays text:
${status.displayValue}
What should I do to be able to use shorter version of this code?