The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

kalyanb (2) [Avatar] Offline
Problem Using <c:out> to dynamically assign value to <html:text>
I use struts and JSTL in my application.
I wanted to assign value to the text field during runtime from a scoped variable in JSTL.

<html:text style="width: 150px; height: 24px" property="screenwidth" size="10" maxlength="15" value="<c:out value='${strWidth}' />" />

Instead of getting the value stored in scoped variable, the whole string is loaded into the text field.

Where i am going wrong. What i have worked out is the right way or not.

Thanks in Advance for the JSTL gurus