RE: convert String to Long

2004-01-22 Thread Hookom, Jacob
4 PM To: 'Struts Users Mailing List' Subject: RE: convert String to Long What i am asking is in your example, var someStringValue is a String.But I have to convert it into a long to use in another custom tag method call which uses a long parameter instead of String.That is why i want to

RE: convert String to Long

2004-01-22 Thread Smith, Darrin
OK, you want the primitive long, not the wrapper Long. Hmmm...Couldn't he just use a JSP scriplet and do this: mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:01 PM To: Struts Users Mailing List Subject: RE: convert String to Long With jstl, unless you are using JSP 2.0 spec

RE: convert String to Long

2004-01-22 Thread Balakrishnan, Vijay
Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 2:01 PM To: Struts Users Mailing List Subject: RE: convert String to Long With jstl, unless you are using JSP 2.0 spec with functions, there really aren't any types... it automatically coaxes the variabl

RE: convert String to Long

2004-01-22 Thread Hookom, Jacob
00 PM To: 'Struts Users Mailing List' Subject: RE: convert String to Long What i want to do is convert the String to a long actually.How can i do that in jstl ?In your example, how do i do Long.valueof("7654321") in jstl ? -Original Message- From: Smith, Darrin [mail

RE: convert String to Long

2004-01-22 Thread Balakrishnan, Vijay
rs Mailing List' Subject: RE: convert String to Long I must be missing something, but if you have the string, and you know it is a long (a valid integer number), why don't you just use the static valueOf method? For example, Long myLong = Long.valueOf("7654321"); Of course,

RE: convert String to Long

2004-01-22 Thread Smith, Darrin
I must be missing something, but if you have the string, and you know it is a long (a valid integer number), why don't you just use the static valueOf method? For example, Long myLong = Long.valueOf("7654321"); Of course, 7654321 will be replaced with your string variable. -Original Message-