Asrita Saran

Greenhorn
+ Follow
since Jul 11, 2007
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 Asrita Saran

I am not using any other code to display reults on UI.
As soon as the object is added to sanctionOrDeclineWaiverList (like sanctionOrDeclineWaiverList.add(i,sanctionOrDeclineWaiver) )the result will be displayed on UI.
[ September 19, 2008: Message edited by: Asrita Saran ]
15 years ago
This is the actual code I am using



When I am printing the list size it is displaying the list size correctly depending upon the no.of items I selected.
Values added to the list are also printed correctly in the console.

But on the UI I am getting the only the details of the object I have added first repeatedly depending upon sanctionOrDeclineWaiverList size.
If the size of list is 2,then same object is printed twice like

a 200 Hat
a 200 Hat


Here I have to add to list of type List<SanctionedOrDeclinedWaivers> to get the result visible on UI.
[ September 19, 2008: Message edited by: Asrita Saran ]
15 years ago
Oops..sorry..I have commented that line..
SanctionOrDeclineWaiverList has some values. and the code in loop will be executed.

The problem i am facing is ,lets suppose we are adding values 'a' and 'b' to the list sanctionedOrDeclinesWaiversList,only 'a' is dispaying twice on the UI.But when I try to print immediately after adding to the list both a and b are printing correctly.

I am printing on the console with this statement immedaitely after adding in the loop:

System.out.println("GET values from the list======="+ "+sanctionedOrDeclinedWaiversList.get(i).getSanctionOrDeclineWaiver());
[ September 19, 2008: Message edited by: Asrita Saran ]
15 years ago
Hi..
I am trying to add objects to a list

Please have a look at this code..







I added sanctionOrDeclineWaiver object to sanctionedOrDeclinedWaiverList and printed it immediately.
It printed both the objects correctly after adding to the list but on the UI i'm getting the object which was added first twice..
I dont understand why this is happening

This is the result im getting on UI

PartyId CaseId WaiverId OrganizationName Evidence Type Waiver Status Reason
11761091 12 748 test13 Request Open sdf
11761091 12 748 test13 Request Open sdf


Can anyone please help me out .
15 years ago
Hi..
I am trying to add objects to a list

Please have a look at this code..



I added sanctionOrDeclineWaiver object to sanctionedOrDeclinedWaiverList and printed it immediately.
It printed both the objects correctly after adding to the list but on the UI i'm getting the object which was added first twice..
I dont understand why this is happening




This is the result im getting on UI

PartyId CaseId WaiverId OrganizationName Evidence Type Waiver Status Reason
11761091 12 748 test13 Request Open sdf
11761091 12 748 test13 Request Open sdf


Can anyone please help me out .
[ September 18, 2008: Message edited by: Asrita Saran ]
15 years ago
Hi..
Test Connection of data source is failed with the following exception:


java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2XADataSource.

Can anybody help me out
15 years ago
Hi..
I am facing some problem while formatting the date.


sdf.setTimeZone(TimeZone.getTimeZone("EST"))
java.util.Date d=sdf.parse(Edate.substring(0,10));
Date nd=new Date(d);

I cant use format coz i have to this date in a method with date asargument

Now Im getting the date in the format mm/dd/yy.But i want date in the format yyyy/mm/dd so that i could differentiate between 2001 and 1901.


Thanks in advance.
15 years ago
Sorry..i am using '-' as seperator in simpledateformat..Im getting one day less as result in the format dd/mm/yy
[ September 02, 2008: Message edited by: Asrita Saran ]
15 years ago
Hi..
I am facing some problem while formatting the date.


SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/DD");
java.util.Date d=sdf.parse(Edate.substring(0,9));
Date nd=new Date(sdf.format(d));


Im getting EDate value from a service in the format yyyy-mm-dd.
I have to set this date value to another method ,so im trying to convert the string to date.
When i try to print d and nd values ,it is not printimg the value i retrieved and it is printimg in the format dd/mm/yy.
What can i do to get the correct date and in the same format as yyyy/mm/dd?

Thanks in advance.
15 years ago
Hi,
I want to know how data entered in a form can be stored in an excel sheet.

Can anyone help me?
[ August 05, 2008: Message edited by: Asrita Saran ]
15 years ago
JSF
hai..

I just want to know how to redirect url based on the date we access in html
Can any one help me?
Thanks in advance.
[ July 23, 2007: Message edited by: Asrita Saran ]
16 years ago
Im really sorry..

Your answer just cleared some of my doubts.what aboutt write() and close()?I think both those methods will behave similarly on any OS.
Is that right or they behave differently based on OS?
16 years ago
Hai ranchers...
i have one doubt..
Will the way java predefined methods behave differ with the operating system?
Will FileOutputStream behave one way in Windows and other way in LINUX..


Thanks in advance..
[ July 17, 2007: Message edited by: Asrita Saran ]
16 years ago