Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Formatting help..

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i'm writing the datas in a textarea.. suppose, i m writing in paragrarhs as i m writing here and having double spaces between lines.. finally saving the data into a database table..
The thing is whenever i retrieve the data from the table and display the thing in a HTML table, the output is not displayed as i typed.. i mean the single para there and no double spaces between lines.. It comes together and looks odd..
So the objective is.. i want the datas displayed in the HTML table as i typed.. How can i..
Thanks in advance..
Pranit..

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try this
Before sending data to another page use java.net.EncodeUrl.encode().
While retrieving java.net.EncodeUrl.deccode()
Binu
 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for ur reply..
can u pls give me the exact code.. still it's not clear to me..
I m doing String Text=request.getParameter("Textarea") in another page and inserting the data in the table..
Pranit..

Originally posted by binu kavumkal:
Hi,
Try this
Before sending data to another page use java.net.EncodeUrl.encode().
While retrieving java.net.EncodeUrl.deccode()
Binu


 
Pranit Saha
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anybody pls..
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic