String[] strarr = request.getParameterValues("param_name");

Then use Integer.parseInt on each of these array elements.

-- padhu



C. Orlando Monzon wrote:

When I pass an integer I use:

int n = Integer.parseInt(request.parameter("field_name"));

but I do not know how to pass an array such   int[] n.

Also in my JavaScript and can create an array. But how can I assign the array to one of the values of the form that are going to pass to a JSP page?

So far I have

in the javascript section

var display = new Array(50);


and in the final function for submit the form and have the statement

document.form_name.field_name.value = display

I do not know if this is correct because I can not have success passing this to my JSP page. Your help is very appreciated.

Orlando

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com



===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com

Reply via email to