Solved

How to convert String to Long in JSTL

Posted on 2007-11-29
3
6,131 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 124
mapBully challenge 6 136
iterator/ListIterator approach 17 28
jsp login check 12 32
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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…
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.

832 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