This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Im using a text area in a html(in a jsp) form to get a discription and address from users. <textarea name="Address" cols="21" rows="4" ></textarea></td> Im writing this on a text file with other details in the form using java. Then Im previewing those values by reading from that text file. after the conformation of the user Im storing those values in the db (sql2k). when I want to display the discription from the db it displays as a single line and its realy odd to see.
how can I preview a description as same as user entered .
I want to print the previewing page as well.Im reading the description to a String variable and Im just doing
<textarea name="textarea3" rows="5" readonly><%=varAddress%></textarea> This is OK for the previewing part but I cant print this without the textarea border.
Pls help me on this. Thanx in advance for any help. Jil
In reference to this issue: "when I want to display the discription from the db it displays as a single line and its realy odd to see."
I had to use the wrap attribute of "hard" to force line breaks at my column length. I believe this will include the line break in the String <textarea name="additionalInfo" cols="65" rows="20" wrap="hard"> </textarea>