• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What do I have to use....

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Im getting a description of a book from a user by a text area in to a variable in a jsp page.I want to preview that description in a html page in a specific area.But when I preview it,its displaying that description as a single line in the preview page.

what is displaying=qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

what I want is= qqqqqqqqqqqqqq
qqqqqqqqqqqqqq
qqqqqqqqqqqqqq
and so on.

Ive used a disabled text area but it didnt show me all of the description but a part of it.

Pls help me on this .
Thanks in advance for any comments.
Best regs,
Jayanath.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Code?
 
Jayanath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<td height="28" valign="top">Description</td>
<td rowspan="2" valign="top"><textarea name="Description" rows="5" readonly id="Description"><%=Description %></textarea></td>

this code gave me the answer.
But is there anything else which I can use instead of a text area for view the description.Suppose if I want to print the description on a letter in a nicer manner.

by the way, is there any method to print a letter as same as displayed on the browser.

Regs,
Jayanath.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you might try playing with this
https://coderanch.com/t/114515/HTML-JavaScript/prob-pre-tags

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic