Display HTML in a TextArea

  • TheProphet
  • Born
  • Born
  • TheProphet
  • Posts: 2

Post 3+ Months Ago

Hey all,

This is my first post here (just thought I would let you know)..
Anyway,
Here is my problem. I am working on a project using XSLT and JavaServlets. I need to take XML from the database which is stored as a CLOB and display this in the standard way you would expect to see XML displayed on a page. It also needs to be editable becuase the XML represents an order from a customer.

So I am trying to figure out a way to display I guess HTML in between the TextArea tags.
i.e <textarea rows ="10" cols="50" >HTML</textarea>
But no matter what i do the < and > dispaly in the textarea. Even when I use the &amplt; and the &ampgt; it still doesn't work. I could really use some help on this.

I have looked every where for an answer to this. (at least if feels that way.)

Thanks ...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • serverpimp
  • Born
  • Born
  • serverpimp
  • Posts: 1
  • Loc: Ethereal plane

Post 3+ Months Ago

try: value="blah blah your text" within the textarea container
  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1892
  • Loc: Las Vegas

Post 3+ Months Ago

Take a look at: http://www.interactivetools.com/products/htmlarea/
  • TheProphet
  • Born
  • Born
  • TheProphet
  • Posts: 2

Post 3+ Months Ago

I just downloded the htmlArea the other day from Interactive tools. What's weird is the htmlArea seesm to be cutting of the beginning of the xml that's being placed in there. If i just use the textarea the entire xml is displayed albeit not in a good format. If I use the htmlArea is seems to chop it of at the beginnig removing the <? xml blah blah part of the file.

I think the htmlArea may work now i need to come up with a good regualar expression that will parse a string of xml and format it properly in the htmlArea.

Thanks

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: spork and 67 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.