Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

want to check whether the request contains ANY param values, not one specifically

 
Bill Brasskey
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of a way that I can simply determine if a request contains parameters or not without checking each param individually?
What I would like to do is check the length of an array that would contain all request parameter values. I have searched around for this info, without much luck. Is there any argument I can supply the request.getParameterValues method with that will return an array containing ALL the param values on the request so I can check its length?
Any advice will be much appreciated.
[ October 11, 2004: Message edited by: Bill Brasskey ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65658
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you were looking you must have missed request.getParameterNames() and getParameterMap().
[ October 11, 2004: Message edited by: Bear Bibeault ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!