facebook

dynamic value in

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226288 Reply

    sienaluke
    Member

    i have a <html:select> in my jsp and i want to make the option tags dynamic

    i have a for loop in a scriptlet that gets me the values

    <html:select property=”m”>
    <%
    for(int i=1;i<13;i++)
    {
    %>
    <html:option value='<%=i%>’><%=i%></html:option>
    <%
    }

    %>
    </html:select>

    when i view the source of this the value is equal to “<%=i%>”
    but the description is the 1,2,3…. what ever i is equal to

    do i have the right syntax in the value part?

    #226304 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev.

    Also:
    1) Try double quotes although I don’t think this will matter
    2) Make sure the value field takes a real-time expression.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: dynamic value in

You must be logged in to post in the forum log in