Re: html:textarea with tags

2005-11-05 Thread Christian Bollmeyer

Murray Collingwood schrieb:

If you know of any sites providing formatted text inside a textarea I would be really 
interested (as would most readers) please post the link.  


It's not possible in plain HTML, but in JavaScript (to some
degree). There are a lot of such scripts on the web, many of
them commercial and not too cheap. In those rare instances
where we *have* to allow the user to enter HTML input (which
generally is not the best of ideas, as you have to filter
the entire input later due to possible CSS attacks), we
normally use this one:

http://www.dynarch.com/projects/htmlarea/

which 'enhances' a normal texarea and therefore is also
compatible with Struts. Works with IE, Mozilla and Firefox;
users of other browsers have to cope with the HTML tags.

Another popular choice would be the FCKEditor

http://www.fckeditor.net/

but IIRC that one is *completely* JavaScript-based
now and I never tried it in a web app.

Something I still have to look at is TinyMCE:

http://tinymce.moxiecode.com/

This one is used in the popular Mambo/Joomla! CMS
software and might also be worth looking at.

HTH,
-- Chris



Cheers
mc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:textarea with tags

2005-11-04 Thread Eric Plante
Hi,

I'd like to use a html:textarea tag but my html tags in the text aren't
parsed and there is no filter like bean:write has, Is there a way to make
that tag parse html tags?

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:textarea with tags

2005-11-04 Thread Murray Collingwood
Sounds like you are missing your taglib definition for html?  Can you post 
your JSP 
file?

mc


On 4 Nov 2005 at 19:27, Eric Plante wrote:

 Hi,
 
 I'd like to use a html:textarea tag but my html tags in the text aren't
 parsed and there is no filter like bean:write has, Is there a way to make
 that tag parse html tags?
 
 Thanks
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005
 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:textarea with tags

2005-11-04 Thread Eric Plante
Why? The taglib is fine and it shows the text; the problem is that the text
that is supposed to be printed out also includes some pure html tags which
aren't parsed.

Ex: if I have font color='red'some text/font the textarea print that
litteraly instead of printing the text in red.

With bean:write, the filter=false print the text in red but textarea doesn't
have a filter attribute so I was wondering if there was a way to print the
text in red in a textarea taglib.

 Sounds like you are missing your taglib definition for html?  Can you
post your JSP
 file?

 mc


 On 4 Nov 2005 at 19:27, Eric Plante wrote:

  Hi,
 
  I'd like to use a html:textarea tag but my html tags in the text aren't
  parsed and there is no filter like bean:write has, Is there a way to
make
  that tag parse html tags?
 
  Thanks
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -- 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date:
3/11/2005
 



 FOCUS Computing - web design
 Mob: 0415 24 26 24
 [EMAIL PROTECTED]
 http://www.focus-computing.com.au




 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:textarea with tags

2005-11-04 Thread Murray Collingwood
I believe you will find that a textarea doesn't support any embedded html 
codes.  
Everything is treated as plain text no matter what it contains.  Even !-- -- 
is treated as 
text.  

If you know of any sites providing formatted text inside a textarea I would be 
really 
interested (as would most readers) please post the link.  

Cheers
mc



On 4 Nov 2005 at 21:13, Eric Plante wrote:

 Why? The taglib is fine and it shows the text; the problem is that the text
 that is supposed to be printed out also includes some pure html tags which
 aren't parsed.
 
 Ex: if I have font color='red'some text/font the textarea print that
 litteraly instead of printing the text in red.
 
 With bean:write, the filter=false print the text in red but textarea doesn't
 have a filter attribute so I was wondering if there was a way to print the
 text in red in a textarea taglib.
 
  Sounds like you are missing your taglib definition for html?  Can you
 post your JSP
  file?
 
  mc
 
 
  On 4 Nov 2005 at 19:27, Eric Plante wrote:
 
   Hi,
  
   I'd like to use a html:textarea tag but my html tags in the text aren't
   parsed and there is no filter like bean:write has, Is there a way to
 make
   that tag parse html tags?
  
   Thanks
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -- 
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date:
 3/11/2005
  
 
 
 
  FOCUS Computing - web design
  Mob: 0415 24 26 24
  [EMAIL PROTECTED]
  http://www.focus-computing.com.au
 
 
 
 
  -- 
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005
 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/161 - Release Date: 3/11/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]