struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject Re: Ready-made function somewhere to escape HTML?
Date Fri, 18 Aug 2006 01:27:43 GMT
Hi Scott... have a look at the ResponseHelpers class in Java Web Parts:

http://javawebparts.sourceforge.net

More precisely:

http://javawebparts.sourceforge.net/javadocs/index.html

The encodeEntities() method should do the trick.

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Thu, August 17, 2006 5:14 pm, Scott Van Wart wrote:
> Hello,
>
> I have user-entered input managed by a few custom tags (Java classes,
> not tag files), and I need to encode this stuff to escape any special
> HTML characters the user might type.  Is there a special one in Struts I
> can/should use, or should I write my own? (Struts 1.2.9, Tomcat 5.5.17)
>
> - Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message