  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: JSP handling of single quote | Subject: JSP handling of single quote 2004-12-06 - By Kokkilah Suntharraju
Back Hi,
Thanks all for your suggestion and recommendation. PreparedStatements would like a charm.
Regards, Kokkilah
-- -- Original Message -- -- From: "Yagiz Erkan" <yagizerkan@(protected)> To: <J2EEPATTERNS-INTEREST@(protected)> Sent: Monday, December 06, 2004 5:33 PM Subject: Re: JSP handling of single quote
> It is a security risk to use the fields types by the user as is, in > the SQL statements. That makes your application vulnerable to SQL > injection attacks. I think using PreparedStatements is a good > solution. Another solution would be to use Stored Procedures but I > presume you don't have a requirements for that. > > - Yagiz Erkan - > http://yagiz.blogspot.com > http://www.erkans.com > > ==================================================================== > Companion Site: http://www.corej2eepatterns.com > J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns > List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html > Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |