This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to call Stored Procedure and get a Array of parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to call Stored Procedure and get a Array of parameters" Watch "how to call Stored Procedure and get a Array of parameters" New topic
Author

how to call Stored Procedure and get a Array of parameters

Bhasker Reddy
Ranch Hand

Joined: Jun 13, 2000
Posts: 176
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>" );
}
}

Bhasker Reddy
Shama Khan
Ranch Hand

Joined: Aug 14, 2000
Posts: 185
Declare the name and values variables before the while loop.

Shama
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to call Stored Procedure and get a Array of parameters
 
Similar Threads
how to get a string of parameters from a http servlet and pass it to stored procedure
Need a disconnected resultset
how to call Stored Procedures, and get parameters from a web page
how to call stored procedure and also get parameters from the web page
how to call stored procedure and also get parameters from the web page