[Logo]
Forums Register Login
Struts and SQL Injection.
Hi,

I want to know that does Struts prevents from SQL Injection? If yes then how? Thanks!
 

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
No, SQL injection is not related to Struts or any web frameworks, you can prevent SQL injection by using PreparedStatement.
 

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!
http://google.com/search?q=preparedstatement+tutorial+site:sun.com
There are some pointers on the JavaRanch Security FAQ
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 3031 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 25, 2018 03:03:28.