How To Filter Invalid(vulgar) words in JSP?
when data was entered to a textbox it must not contain vulgar or bad words.The event is processed before data is saved and posted.
Do I need to specify each word or there are some shortcuts for it?
Can you give me a concrete example..tnx a lot!!!
javagurlush 0 Newbie Poster
Recommended Answers
Jump to Postusually you have a list of words and check each word against that list.
There are more advanced systems that do full lexical analysis to also take context into account but you're not ready for those.
Jump to PostIf you happy with JavaScript why not...
All 6 Replies
jwenting 1,905 duckman Team Colleague
javagurlush 0 Newbie Poster
javagurlush 0 Newbie Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.