Author
Struts and SQL Injection.
pawan chopra
Ranch Hand
Joined: Jan 23, 2008
Posts: 366
Hi,
I want to know that does Struts prevents from SQL Injection? If yes then how? Thanks!
Pawan Chopra
SCJP - DuMmIeS mInD
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17243
posted Mar 14, 2009 09:30:48
0
pawan chopra wrote: Hi,
I want to know that does Struts prevents from SQL Injection? If yes then how? Thanks!
No, it isn't Struts responsibility to prevent SQL injection.
Mark
Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted Mar 14, 2009 10:41:34
0
No, SQL injection is not related to Struts or any web frameworks, you can prevent SQL injection by using PreparedStatement .
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
pawan chopra
Ranch Hand
Joined: Jan 23, 2008
Posts: 366
Kengkaj Sathianpantarit wrote: No, SQL injection is not related to Struts or any web frameworks, you can prevent SQL injection by using
PreparedStatement .
Can you suggest me any link? Thanks!
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted Mar 15, 2009 14:43:41
0
http://google.com/search?q=preparedstatement+tutorial+site:sun.com
Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2350
There are some pointers on the JavaRanch Security FAQ
OCUP UML fundamental
ITIL foundation
subject: Struts and SQL Injection.