This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP +HTML

 
sanjib jena
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try request.getParameterValues(String paramName)
 
Julio Lopez
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Julio,
This is what I looked for
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic