Deepa Krishnan

Greenhorn
+ Follow
since Feb 25, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepa Krishnan

Kudos Craig Walls, Ryan Breidenbach.
18 years ago
used Date.valueOf((String)request.getAttribute("PAYMENTBEGIN_DT"));
works fine.
Thanks,
18 years ago
How to convert from String to Date
Date benefitBeginDt=(String)request.getAttribute("PAYMENTBEGINDATE");

Thanks,
18 years ago
thanks Friedman-Hill
18 years ago
yeah,you are right.
As per the requirement,i might be a space or a character.
can you suggest another way of converting that into a char.
18 years ago
getting java.lang.StringIndexOutOfBoundsException when doing this

I am sending like this from jsp
<input name="SUBPROGRAM_CD" type="hidden" value=''>
Ejb receiving it like this

char subprogCode;

subprogCode=((String)request.get("SUBPROGRAM_CD")).charAt(0);
18 years ago
layne,

still showing error!!

I am sending like this from jsp
<input name="SUBPROGRAM_CD" type="hidden" value=''>
Ejb receiving it like this
char subprogCode

subprogCode=((Character)request.get("SUBPROGRAM_CD")).charValue();
[ August 02, 2005: Message edited by: Deepa Krishnan ]
18 years ago
charValue() is the answer
thanks layne
[ August 02, 2005: Message edited by: Deepa Krishnan ]
18 years ago
I am getting a object which contains a char primitive from the request,
I need to convert that object to char.

thanks in advance
18 years ago
{1,2,3,3,4,5,5,5,6,7,7} must result in {1,2,3,4,5,6,7} only one of each number, removing the duplicates
18 years ago
Hello everyone,

From a collection of numbers i need to select the unique ones. Is map a good option?will it affect the performance?any other suggestions?
Thanks
18 years ago
we have designed in such a way that the cache depends only on the main application.If a supporting system goes down ,it does not bring down this cache and i got the answer for the privileges too.Cache just gives the lookup ,it has nothing to do with privileges.
Thanks Tanase.
The application is going to have a 1500 users on an average.
Does caching affect privileges ?
[ July 15, 2005: Message edited by: Deepa Krishnan ]
Hi,

In the service locator pattern ,we cache the JNDI lookup.What is the best way to cache the lookup?Is hashmap a best option for that?

Thanks
Deepa
I am using the select tag for a multilist box.

Here is the code.

<html:select style="width: 125px;" property="avRoles" multiple="true" size="5" >
<html ptions property="availRoleNames" />
</html:select>

my question is I pass "availRoleNames" (Set) for options. This sets the same value to the option:value and option:label.

I wanted to set different values option:value option:label.
I can pass another Set "availRoleIds" for option:value and use this availRoleNames for option:label.
18 years ago