struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
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:

More precisely:

The encodeEntities() method should do the trick.


Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
AIM/Yahoo: fzammetti
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts -
 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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message