• Post Reply Bookmark Topic Watch Topic
  • New Topic

a difficult problem in JSTL  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I save many lines (using "\n") in 1 field in Access.

Now i want get them and output in textfields through line:

// Output all in a time
<c:set var="nr" value="0"/>
<c:forTokens var="adr" items="${OrderForm['address']}" delims="\n">
<input type="text" name="address[<cut value="${nr}"/>]" value="<cut value="${adr}"/>">
<c:set var="nr" value="${nr+1}"/>

// Output every 1 line
<td><input type="text" style="width:400" name="customerName" value="<cut value="${adr[0]}"/>"></td>
<td><input type="text" style="width:400" name="customerName" value="<cut value="${adr[1]}"/>"></td>

Errors: they don't understand \n & adr[0].

Thank you for your response.

I think it's in SCWCD, so i put it here.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!