The Artima Developer Community
Sponsored Link

Java Answers Forum
Help In request.getParameterValues();

1 reply on 1 page. Most recent reply: Jun 5, 2004 6:00 AM by ASP2JSPMig

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
ASP2JSPMig

Posts: 7
Nickname: nhamdan
Registered: May, 2004

Help In request.getParameterValues(); Posted: Jun 5, 2004 12:38 AM
Reply to this message Reply
Advertisement
Hi .. i have a JSP page that have the 3 check boxes with the same name , i want to request them and put them in array in the second page, but the problem is that when i request them & print them if one of them are not checked it will give me an error .. if all is checked then no error is given ,.. here is my code in the second page ..

String[] chArrChk = new String[5];

chArrChk = request.getParameterValues("chArrChk ");


out.print("Values: "+ chArrChk [0]+"<br>");
out.print("Values: "+ chArrChk [1] +"<br>");
out.print("Values: "+ chArrChk [2] +"<br>");


The error is given when print unchecked check box !!

any help please


ASP2JSPMig

Posts: 7
Nickname: nhamdan
Registered: May, 2004

Re: Help In request.getParameterValues(); Posted: Jun 5, 2004 6:00 AM
Reply to this message Reply
Solved no need for help thanx :(

Flat View: This topic has 1 reply on 1 page
Topic: Handling exception Previous Topic   Next Topic Topic: outofmemoryerror

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use