Not an answer Jeff, just another related issue which I've been postponing.
When user types data into a <html:textarea> they can use new line chars.
If I display it in a web page as free text the new lines are ignored. So I want to be 
able to
optionally convert new lines to <br /> & probably multiple spaces to &nbsp; other 
stuff too.
ie. I need a component for handling incoming & outgoing text, I'm sure the spec for 
the perfect
product is very fiddly.
Hopefully some-one has it already.....

--- [EMAIL PROTECTED] wrote:
> 
> 
> Greetings:
>      I apologize as this is not direct Struts question.
> Background:
> I am using Struts in our current Application.  The time is not right for me to
> introduce the controller at this time but with any new changes I use as many of
> the logic tags and bean tags as I can.    Just by using these tags I have
> cleaned up much of my pages because our app started small, got big and is all
> scriplets.
> 
> Usage:
>      We have many screens that our users will input notes about the clients that
> they manage.  When we view these notes in read-only format, (ie: direct to page,
> not a control) I use the bean write tag with filter turned on (default)  to weed
> out damaging characters.
> 
> Problem:
>      Some users will take notes from MS word and cut and paste into the text
> area control.   This will result in certain characters being encoded on form
> submit such as " encoded to �   and so on. These code end up in the
> database.   If use struts filter, I will get � on the page because itself
> is encoded.
> 
> If I turn filtering off, the page will render with the supported character.
> The Struts filter is only doing it's job.   How do I prevent the characters from
> being sent to the data base that way?
> 
> Do I have to Decode before I send them to the database?
> Should I be looking into the the form attributes such as char set and enc-type?
> 
> Thanks
> 
> "too busy to think.."
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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

Reply via email to