472,791 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 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 14635
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?

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.