"Loganathan, Kamalesh" wrote:
>
> I'm having trouble with accessing checkbox values in the jsp. When I get the
> value from the checkbox attribute, it just returns the first value, not the
> comma(,) separated values. All the checkboxes have the same name in the
> table(list). Per HTML standards, it should return comma (,) separated
> values. Have anyone come across this before ? (I'm using ServletExec 2.1
> with JSP 1.0 implementation). Any help is very much appreciated.
You need to use HttpServletRequest.getParameterValues(), as opposed to
getParamter(), to get all values (as a String[]).
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets