Bookmark Topic Watch Topic
  • New Topic

a difficult problem in JSTL

 
Tuong Nguyen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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[<c ut value="${nr}"/>]" value="<c ut value="${adr}"/>">
<c:set var="nr" value="${nr+1}"/>
</c:forTokens>

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

I think it's in SCWCD, so i put it here.
Thank you for your response.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think it's in SCWCD, so i put it here.

Well, it could be. But please don't post the same question in different forums. You've already asked this in the JSP forums, where it belongs :
http://www.coderanch.com/t/292213/JSP/java/difficult-JSTL

Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic