Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

mohan kumar

Greenhorn
+ Follow
since Apr 16, 2007
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 mohan kumar

Hi All,
I have a EJB which is BMP. The bean deals with End Of Day (EOD) Activities. When i invoke the bean for a particular EOD, i m getting an

Catchfull Exception

.As i m new to EJB's i m not getting the clear picture of whats going wrong and how to rectify that also.

Kindly give me some solution to over come this.

Thanks,
Mohan
Hi All,
As per my requirement i want to export the data which is in DO to the MS Money and Quicken format.How to do the export for these file types?.
As per my konwledge, using iText we can do export to .pdf and .rtf .So is there any way like adding a jar and using the methods as like iText.

Kindly suggest me to solve this issue.

Thanks
mohan
14 years ago
Hi,
Have selected SPRING frame work and Net Beans.
So which version of Net beans will support all the features of the springs frame work with the ease of developing the application.
please suggest.

Thanks,
mohan
Hi friends,
Check the following code :

String[] monthName = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", Aug","Sep", "Oct", "Nov", "Dec"};
int forMon = 0;
Calendar fromCal = Calendar.getInstance();
Calendar toCal = Calendar.getInstance();
String forMonth = monthName[3]; // selMonth is the month value which i selected from DropDown

for (int i = 0; i < 12; i++) {
if (forMonth.equals(monthName[i])) {
fromCal.set(2007, i, 1);
Calendar cal = new GregorianCalendar(2007, forMon, 1);
int days = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
toCal.set(2007, i, days);
forMon = i;
break;
}
}
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
String startDate = dateFormat.format(fromCal.getTime());
String endDate = dateFormat.format(toCal.getTime());
System.out.println(startDate);
System.out.println(endDate);

When i run the above code for the month of

Jan the output :01/01/2007 31/01/2007
Feb the output :01/02/2007 03/03/2007
Mar the output :01/03/2007 31/03/2007
Apr the output :01/04/2007 01/05/2007
May the output :01/05/2007 31/05/2007
Jun the output :01/06/2007 01/07/2007

i am not able to under whts happening there in the code....

Can somebody help me out in this regards...

Thanks
Mohan
14 years ago
thanks guys...and Mr.Dirk Schreckmann link helped me a lot...
14 years ago
Hi friends,
In my workspace i am facing a problem.
In my java code i have a collection which contains the data like

Account No, Account Type, Currency, Transaction Date, Transaction Id, Channel Description, Description, Debit Amount, Credit Amount

.
I want this data to be exported to CSV format.So i created a out stream.I changed the collection to array.Now i want to iterate the array and create a CSV file in the above mentioned format.I don't know how to do that.

Kindly help me in this issue.

Thanks
Mohan
14 years ago
Hi all,
there is a collection in which the data are there.i want to export the content as a MS Word document.Also i want to do the export in Excel , rtf and CVS.
is there any API to do, or guide me to do the same.

Can some body help me in providing the solution.


Thanks in advance.
14 years ago
Hi all,
From my servlet i want to export the content as a MS Word document.
Also i want to do the export in Excel , rtf and CVS.
Can some body help me in providing the solution.


Thanks in advance.
[ June 11, 2007: Message edited by: mohankumar natarajan ]
14 years ago
Why are you using a TreeMap and not just a List?

in map i will get the key of what the user selected and i can proceed with the key.i am taking key for the further manipulation.
14 years ago
Hi Friends,
i am my work area i am facing a problem like we need to show the month in a drop down with the options order like :

CurrentMonth
Apr-2007
Mar-2007
Feb-2007

For this i am using TreeMap.
when i run the code i am getting in other order like:

Apr-2007
CurrentMonth
Feb-2007
Mar-2007

Can somebody help me in this issue.Waiting for your solution.

Thanks
14 years ago
hi all,
check the following code:

Code:
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
String ss = dateFormat.format(new Date("16/04/2007"));
System.out.println("Result --> "+ss);

Result:
Result --> 04/04/2008

Here "new Date("String")" is constructor is deprecated.if this is cause to produce this result,then explain me how it is?

Thanks
Mohan
14 years ago