Solved

How to convert String to Long in JSTL

Posted on 2007-11-29
3
6,072 Views
Last Modified: 2013-11-24
HI guys

I am setting a property in a useBean
and I need to convert String to Long

I tried this but it doesn't work

<c:set target="${orderShippingModeList}" property="orderId" value="${Long.parseLong("orderObject")}"/>

Any help will be appreciated
0
Comment
Question by:huzefaq
3 Comments
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 200 total points
ID: 20376624
> ${Long.parseLong("orderObject")}"
 
I belive this should be
 
${Long.parseLong(orderObject)}"
0
 

Author Comment

by:huzefaq
ID: 20377090
thanks for pointing that out but now I get this error
Failed to find resource /tools/common/TimeOut

Any idea on this error
0
 
LVL 11

Assisted Solution

by:Manish
Manish earned 50 total points
ID: 20379948
Are you using any resource file? setting bundle for fmt tag..?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now