Archive for category J2EE

NetBeans 6.9.1 Plugin – file path on Netbeans IDE Titlebar

This is a Beta version of NetBean plugin, tested with NetBean version 6.9.1.
This plugin changes the Titlebar of NetBean with file path that is currently open in editor.

How To Enable the Plugin.
1) Download and Read more

, , , ,

No Comments

XML Parsing Error : undefined entry [xulrunner]

Problem : While downloading file from mozswing, it generates the following exception.

XML Parsing Error: undefined entity 
Location: chrome://mozapps/content/downloads/unknownContentType.xul 
Line Number 30, Column 18:    <description>&intro.label;</description> 

Cause:
Missing DTD for branding, one of the two DTDs required by “unknownContentType.xul”. Read more

, , , ,

No Comments

Javascript window.print() compatible mozswing 2.0 xulrunner native library.

 

Replace the existing native library of mozswing 2.0 beta 2 with the following native library. This version is same as of mozswing 2.0 beta2 except, it support javascript windows.print() command.

native.zip
Patched and compiled by Shishir Pokharel.

 … Read more

, , , , ,

No Comments

Create a pojo class of Json objects [using jackson]


//1. create a class to map the json data e.g
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.HashMap;
import java.util.Map;

/**
*
* @author Shishir Pokharel
*/
public class model {

// and then "other" stuff:
protected 
Read more

, , , , ,

No Comments