Hi
the solution provides works fine, but it is a double call,
first to valueOf and next to intValue
you could still use the parseInt method of Integer class
ITH
Amit
> -----Original Message-----
> From: AndySoft [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 14, 1999 2:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: String- Integer
>
> > > Position=(int) request.getParameterValues("Position") + 1;
> >
> > you can try Position =
> > Integer.valueOf(request.getParameterValues("Position")).intValue();
> >
> > in theory Integer("string") should give ya Integer, which you can
> > later use
> > Integer.intValue(), however for me Integer("13").intValue()
> > didn't work, so
> > i use with the valueOf
>
> heh, when i don't think, that's the result, of course you are better to
> use
> parseInt, damn search in VA found the above one first from my code :)
>
> AndySoft
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html