473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

html in textarea

Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.
Jul 17 '05 #1
4 14667
megha wrote:
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman
--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans
Jul 17 '05 #2
I am not using any of this infact it is a plane textarea of html in
jsp file but is not doing the proper functioning please advice.

Thanks


Herman Timmermans <ti********************@skynet.be> wrote in message news:<40**********************@news.skynet.be>...
megha wrote:
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman

Jul 17 '05 #3
megha wrote:
I am not using any of this infact it is a plane textarea of html in
jsp file but is not doing the proper functioning please advice.

Thanks


Herman Timmermans <ti********************@skynet.be> wrote in message
news:<40**********************@news.skynet.be>...
megha wrote:
> Hi all
>
> I am adding signature in textarea which is stored as text in database
> now if i add html tags to it and later retrieve it in textarea it
> shows all tags of html but not their function. How i can get proper
> signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman


Maybe you should be a little more precise and clear in stating your problem.
Maybe you can post the source code of the JSP and post as well the signature
you want to display ?
Herman
--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans
Jul 17 '05 #4
An html textarea tag will not render html.. it will only show text, so your
html will not be rendered in the text area, it is not designed for that.

What you could do is a preview pane with a div tag and use javascript on the
client side to populate the div tag using the innerHTML property of a div.
This would then render the html. Or display the html in any other way... it
won't be rendered in a textarea, as far as I know.

hope this helps

cheers
Martin

--

---------------
http://www.nonstoploop.co.uk/ - dynamic websites
http://www.rossanobacchin.be/ - fine art
http://www.weycameras.co.uk/ - photographic supplies
---------------

"megha" <me***@4cplus.com> wrote in message
news:ee*************************@posting.google.co m...
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
I have found many examples of how to access an HTML text field from PHP, but cannot find the reverse - how to load an HTML form from a MySQL database. Specifically, I have an HTML form which...
12
by: Phil Powell | last post by:
The customer made a wild request: they want on their admin panel a textarea that will display an existing resume. This textarea, however, must have a dynamic width, one that "fills the screen...
4
by: google | last post by:
I would like to print a table, using a while loop to insert as many blank text fields as players specified by the user. How do I put html inside a php loop. This is what I have.... <body>...
5
by: Richard | last post by:
I am filling a TEXTAREA with text and links from a database. I need to display the <a href....> code in the TEXTAREA as a clickable link with _blank targetting. I realise I could simply use a TD...
4
by: Newbie | last post by:
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea? (cross browser compatable) Any help is...
4
by: Tauqir | last post by:
I am trying to do a simple thing: I have these two text fields in an HTML form. I want to assign the concatenated value to a TEXTAREA. Can someone help me with the syntax? <HTML> <SCRIPT...
6
by: SRafiq | last post by:
Hi I need help with a topic I have an html page and in it i have a textarea which can have a multiple of info, is there any possible way that i can out put a specific area of the textarea using...
5
by: Schraalhans Keukenmeester | last post by:
I want to build a very basic online text editor, to allow customers to modify their own sites' html content using a simple form with textarea element. I read the HTML file like so: <?PHP ...
7
by: Xh | last post by:
Hi All, I have problems with generating valid HTML output there are few HTML elements that i don't what to output as <tagname/> but as <tagname></tagnamebut Xalan keeps generating them as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.