Cemil Ozdemir

Greenhorn
+ Follow
since Nov 23, 2006
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 Cemil Ozdemir

Hi Paul,

Thanks for the quick reply.

I solved it by using the DecimalFormat as you mentioned.

Best Regards
Cemil
15 years ago
Hi all,

Can someone help me with this simple question i have ?

I have a field with a decimal, and i want to parse it to a Double.

But because the delimiter is , and not . it fails.

This smal code represents what i want:



This will throw a NumberFormatException because of the ,

So how can i do this in i nice way, without it fails with.

And i don't want to use String replaceAll(arg0, arg1), if i can avoid it.

Best Regard
Cemil
[ February 13, 2007: Message edited by: Cemil Ozdemir ]
15 years ago
Hi Jolie,

Do you use Spring ?

Best Regards
Cemil
Hi Carol,

Thanks for the answer.

But even though log4j, is not meant for archiving, we have decided to use it any way(with the consequences in mind).

But i was looking for an answer for this:

Let us say i have two appenders, X and Y defined in my log4j properties file.

Then in my code i log to the file this way:
private static final Logger log = Logger.getLogger(MyClass.class);
...
log.debug("test");

Now how can i distinct in my code which appendar/file i am writing to ?

Maybe it is a silly question but i am not that familiar with log4j.

Best Regards
Cemil �zdemir
Hi,

Can someone please help with a problem i have.

I already have a log4j logger installed and in use in my application.

My application creates files based from a database,
and for that purpose i have a normal debug logger installed.

But for arhiving purpose i need another log file that should only contain the
name of the file and the date.

So after my the file has been written, i need to save the name of the file and the date to a different log file.

How would I do that ?

Hope my question is understandable.


Best Regards
Cemil �zdemir

[ January 17, 2007: Message edited by: Cemil Ozdemir ]
[ January 17, 2007: Message edited by: Cemil Ozdemir ]
Hi Tim,

Thanks for the reminder.

I changed it as you said.

Best Regards
Cemil
16 years ago
Hi all,

I solved this problem by creating an additional pom file that depends on the other project i have.

If anyone is interested i can attach the files i have.

If anyone has a better solution please let me know.

Best Regards
Cemil
16 years ago
Hi all,

Can someone help me building an ear file. I am using Maven 2.x

Untill now i have been building a war file using the maven command:
maven compile war:war

I want to auto generate a application.xml file. So i add the ear plugin
to the pom.xml file.

Here is what i added to my pom.xml file:


When i run this command:
mvn ear:generate-application-xml

It complaints with this error:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Artifact[Conversion-1.0-SNAPSHOT.war:generate-application-xml:war] is not a dependency of the project.


Anyone knows what the problem migth be ?

Or has a suggestion...

I think the problem is the groupId and artifactId of the webModule.

But i am not sure what the groupId and artifactId should contain for my webapplication.

Best Regards
Cemil
[ December 07, 2006: Message edited by: Cemil OZdemir ]
16 years ago
Thanks,

That was great. I used the Calendar to get the dates

I appreciate youre help.

Best Regards Cemil
16 years ago
Hi,

Can anyone help me with this problem ?

I need to make a search for rows updated since beginning of this week, and this month.

How would i create a date in java pointing to this weeks beginning(sunday 00:00).

This way i can say in sql give med rows where last_update > beginning of this week, or this month, or this year even.

I hope someone has the answer.

Best Regards
Cemil
16 years ago
Hi all,

I am new to jsp so i have a question i hope someone can help me with.

I have a ArrayList (1) that contains ArrayLists(2).

The latter ArrayList contains ValidationResult objects.

I am using Spring, and i add the first ArrayList with the name validationGroup:
modelData.put("validationGroup", validationGroup);

On my jsp page i want to iterate over ArrayList (1) and retrieve the ArrayList(2), so i can iterate over the ValidationResult objects in ArrayList(2).

This is how my code looks like now:
<c:forEach var="vGroup" items="${validationGroup}" varStatus="counter">
<c:if test="${not empty vGroup}">
<c:forEach var="gr" items="${vGroup.validationResult}" varStatus="counter">
<tr class="row<c:out value="${counter.count % 2 + 1}" />" valign="top"

But this is wrong.

How do i iterate over a nested ArrayList that contains ValidationResult objects ?

Hope somone can help me...

Best Regards
Cemil
[ November 23, 2006: Message edited by: Cemil OZdemir ]
16 years ago
JSP