bhallarahul -4 Light Poster

these day i am trying learning ckeditor so i used CKEditor jar available for the java developer
when i run given code on tomcat server this ode will not give anything please tell me

    <ckeditor:replace replace="editor1" basePath="/ckeditor/" config="<%= ConfigurationHelper.createConfig() %>"   events="<%= ConfigurationHelper.createEventHandlers() %>" />  

what is wrong or it works ok
whole code is mention on given link

package testCK;
import java.util.ArrayList;
import java.util.List;

import com.ckeditor.CKEditorConfig;
import com.ckeditor.EventHandler;
import com.ckeditor.GlobalEventHandler;

 * @author rahulbhalla
public class ConfigurationHelper {

        public static CKEditorConfig createConfig() {
            CKEditorConfig config = new CKEditorConfig();
            List<List<String>> list = new ArrayList<List<String>>();
            List<String> subList = new ArrayList<String>();
            config.addConfigValue("toolbar", list);
    //      System.out.println("print");
            return config;

        public static EventHandler createEventHandlers() {
            EventHandler handler = new EventHandler();
            handler.addEventHandler("instanceReady","function (ev) { alert(\"Loaded: \" +; }");
            return handler;

        public static GlobalEventHandler createGlobalEventHandlers() {
            GlobalEventHandler handler = new GlobalEventHandler();
            handler.addEventHandler("dialogDefinition","function (ev) {  alert(\"Loading dialog window: \" +; }");
            return handler;


<%@ page language="java" contentType="text/html; charset=UTF-8"
<%@ taglib uri="" prefix="ckeditor"%>
<%@ page import="testCK.ConfigurationHelper" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
    <form action="sample_posteddata.jsp" method="get">
            <label for="editor1">Editor 1:</label>
            <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
            <input type="submit" value="Submit" />
    <ckeditor:replace replace="editor1" basePath="/ckeditor/" />
    <%/*    replace – points to the name or ID of the HTML textarea element that is to be replaced with a CKEditor instance.
            basePath – contains the path to the main CKEditor directory. 
    */ %>

    <ckeditor:replace replace="editor1" basePath="/ckeditor/" config="<%= ConfigurationHelper.createConfig() %>"   events="<%= ConfigurationHelper.createEventHandlers() %>" />