File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP +HTML