Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error ! pls help

 
kishani liyanage
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me why do get this error when i tried to compile a jsp which displays values : Please advice me what i should do to overcome the situation.
Generated servlet error:
C:\jakarta-tomcat-3.2.4\work\Standalone\localhost\examples\testkish\showDetails$jsp.java:68: Method getparameter(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest.
String[] selectedItems = request.getparameter("ItemID");
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String[] selectedItems = request.getparameterValues("ItemID");
instead of request.getparameter
Originally posted by kishani liyanage:
please tell me why do get this error when i tried to compile a jsp
which displays values : Please advice me what i should do to overcome the situation.
Generated servlet error:
C:\jakarta-tomcat-3.2.4\work\Standalone\localhost\examples\testkish\showDetails$jsp.java:68: Method getparameter(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest.
String[] selectedItems = request.getparameter("ItemID");
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the methods are getParameter and getParameterValues. This is Java: case counts!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic