What I would do is declare your field on you previous
page.
Page 1
String xxx = null;
String xxx = yourValue;
Page 2
String yyy = request.getParameter("xxx");
This should work. Another thing if the variable is
whte wrong name and cannot be found it will give you
that error.
--- Amar_singh <[EMAIL PROTECTED]> wrote:
> i am passing a list of checkboxes (having the same)
> in a JSP to a servlet...
> but when i take it into a String[] by
> request.getParameterValues("somename") an exception
> occurs
> as it is null initially..
> How can i make sure that i initialize it to some
> value so that i can avoid
> the exception
> because once the exception i cannot retrieve the
> remaining values
>
> Regards
> Amar Deep Singh
>
>
===========================================================================
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.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