• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call Stored Procedure and get a Array of parameters

 
Bhasker Reddy
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting parameters from the other web page like this.
I need to call the Stored Procedure. How do i construct the STring array of parameters, if i construct it inside while or
if clause, i can't call it outside the while clause.
how do i go about this.
while (enum.hasMoreElements()) {
String name = (String) enum.nextElement();
String values[] = req.getParameterValues(name);

if (values != null) {
for (int i=0; i<values.length; i++) {
out.println(i + " " + name + " = " + values[i] + "<BR>" );
}
}
 
Shama Khan
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Declare the name and values variables before the while loop.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic