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]>