wood burning stoves*
The moose likes Servlets and the fly likes JSP +HTML 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 "JSP +HTML" Watch "JSP +HTML" New topic
Author

JSP +HTML

sanjib jena
Greenhorn

Joined: Jun 20, 2001
Posts: 2
Hi all,
Suppose I have two hidden fields with the same name.
How can I access them in the request.getParameter()?
That is in the server side.
(in the client side it can be accessed as it makes an array
automatically as document.formName.hiddenFieldName(i).value)
Andri G
Greenhorn

Joined: Oct 15, 2000
Posts: 4
Hi,
Try request.getParameterValues(String paramName)
Julio Lopez
Greenhorn

Joined: Nov 14, 2000
Posts: 28
Try this,
java.lang.String currentValue;
java.lang.String[] parameterValues;
parameterValues = request.getParameterValues(parameterName);
Then to extract the values,
for (int i=0; i < parameterValues.length; i++) {
currentValue = parameterValues[i];
..do whatever
}
Hope this help,
Julio Lopez
M-Group Systems
sanjib jena
Greenhorn

Joined: Jun 20, 2001
Posts: 2
Thanks a lot Julio,
This is what I looked for
 
Don't get me started about those stupid light bulbs.
 
subject: JSP +HTML
 
Similar Threads
About SCM tool
handle the Transaction on the DB side ?
JavaScript variables in JSP
Can i get component attribute values inside the component
Forming a table