Tags » Java 2

[log4j] log different log levels to different files for the same logger

Is there a way to configure log4j so that it outputs different levels of logging to different appenders?

The below log4j config file can help you to do that. 550 more words


Default welcome file without web.xml

I love SPA so much. And I love to do coding in this way.
I used Spring Java based configuration option write most of my Spring configurations without XML but with the help of few Java-based annotations. 43 more words


Implementing Retries with Spring Retry

Sometimes you need to retry an action if the first time fails, today I will show you a simple way to do this using… 572 more words


GUI Student Registration Form Example

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.regex.*;

class StudentReg extends Frame implements ActionListener
Label rnol,namel,addrl,cityl,mnol,genderl,rnoi,namei,addri;
TextField rnot,namet,mnot;
Choice cityc;
TextArea addrta; 310 more words


PayPal Donate Button

Hi all …as i promised you all that i will come back very soon with some more blogs on PayPal.
Today we will see how to add a PayPal Donate button in our web application. 196 more words


First Java Program

Let us look at a simple code that would print the words Hello World.

public class MyFirstJavaProgram{

   /* This is my first java program.  
    * This will print 'Hello World' as the output

    public static void main(String []args){
       System.out.println("Hello World"); // prints Hello World
} 207 more words

Traversing the Fleet of ships (Part 2 of 5)

Next let’s take a look at the Button Bar class.  The button bar class is only intended to be a temporary solution so it is a bit basic.  549 more words