Abhishek Naswale

Greenhorn
+ Follow
since Jan 24, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhishek Naswale

I have below main method which shows SQL injection flaw (as string concatenation is done here) when scanned for coding standards/rules.
   
I want to remove the SQL injection flaw. As my `name` parameter is dynamic, I cannot set it with `preparedStatement`. What can be a optimal solution to this?

NOTE: Using 2 different queries in `if-else` block will not solve the purpose as I have 7 different parameters to be set dynamically which will introduce overhead as there will be many queries.
I am in process to migrate some Struts1 code to Struts2 and confused between how to migrate below JSTL tags.

Struts1:


Can I get help here on how above struts1 code will be migrated. I tried it as below but not understanding <s:iterator> tag

Struts2:


I have requirement to migrate legacy(Struts1.0) code to Struts2. If there are multiple methods in same action class, can we configure them in single action tag?

struts.xml


Here, I have single action i.e. "product" and single action class i.e. "ProductAction". So, can I configure both the methods (show,showErr) in single action tag?
4 months ago