Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 29163 invoked from network); 31 Jul 2003 21:16:59 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 31 Jul 2003 21:16:59 -0000 Received: (qmail 16641 invoked by uid 97); 31 Jul 2003 21:19:39 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 16634 invoked from network); 31 Jul 2003 21:19:39 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 31 Jul 2003 21:19:39 -0000 Received: (qmail 27745 invoked by uid 500); 31 Jul 2003 21:16:43 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 27732 invoked from network); 31 Jul 2003 21:16:42 -0000 Received: from mail.wmotion.com (HELO mail.wsmart.com) (65.39.65.11) by daedalus.apache.org with SMTP; 31 Jul 2003 21:16:42 -0000 Received: from wmotion.com (65.39.65.98) by mail.wsmart.com with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Thu, 31 Jul 2003 14:16:48 -0700 Date: Thu, 31 Jul 2003 14:20:38 +0530 Subject: Suggestions ? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Mufaddal Khumri To: "Tomcat Users List" Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <0E85135F-C334-11D7-AD8A-0003931CBFD0@wmotion.com> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Am using tomcat 4.1.24. Have a XYZ.jsp with a form on it take data from the user. Once the user clicks submit the data is stored in the database and the data that the user entered is shown to him on ABC.jsp. The problem is that the user can enter anything in the text field and text area of the form on XYZ.jsp. For example in the description text area he or she might enter - text, an http url, maybe html tags etc. Now when i grab this data from the form and store it to the databse it works fine, but when i grab the data from the database and render it on ABC.jsp it gets messed up because the html tags in the data interfere with the html of the page. Is there a way in tomcat escape such characters or are there java methods that i could use to pass this string through that would do the escaping for me ? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org