• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request.getParameterValues related question

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thanks in anticipation
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any question?? The setString method doesn't take a String[]. That's why you are getting an error...
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your prompt reply
Ankit Garg wrote:Do you have any question?? The setString method doesn't take a String[]. That's why you are getting an error...


This is my Questions as to how can I find the way to pass array in setString method. I tried with loop but not works. Can you guide me please

Thanks again
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any help please
 
Jack Anderson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Farakh,

The way i understand you problem is that you want to execute this query for each of the array objects.

If that is the case, you may write a very simple code like this:


 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My table structure & Query:


When am running Oracle SQL statement then its giving accurate results as I copy pasted above but when am running in servlet then it displays:

cv_id=1
cv_id=1
cv_id=21
cv_id=1
cv_id=21
cv_id=1
cv_id=21

Please note: cv_id is emp_id and this should be unique according to my SQL query but not getting the required results. Here is my code


I need output:

cv_id=1
cv_id=21

Where I am making mistake? Please help me to fix this problem

Thanks & best regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic