Category Archives: Uncategorized

Merry Christmas


Image | Posted on by | Leave a comment

Spring cache

1.  Java method @Cacheable(“allItems”)    public List<BaseItems> getAllItems(){              refreshAllItems();        return allItems;    } 2.  ehcache.xml <?xml version=”1.0″ encoding=”UTF-8″?><ehcache xmlns:xsi=”; xsi:noNamespaceSchemaLocation=”; updateCheck=”false”>                <diskStore path=”” />             <defaultCache eternal=”false”       maxElementsInMemory=”700000″       overflowToDisk=”false”       diskPersistent=”false”       timeToIdleSeconds=”86400″       timeToLiveSeconds=”86400″       … Continue reading

Posted in Uncategorized | Leave a comment

Java Word Wrap

1. Java Word Wrap Algorithm public static String wrap(String in,int len) { in=in.trim(); if(in.length()<len) return in; if(in.substring(0, len).contains(“\n”)) return in.substring(0, in.indexOf(“\n”)).trim() + “\n\n” + wrap(in.substring(in.indexOf(“\n”) + 1), len); int place=Math.max(Math.max(in.lastIndexOf(” “,len),in.lastIndexOf(“\t”,len)),in.lastIndexOf(“-“,len)); return in.substring(0,place).trim()+”\n”+wrap(in.substring(place),len); } 2. The WordUtils utility class in the … Continue reading

Posted in Uncategorized | Leave a comment

Using Spring and Hibernate with WebSphere Application Server

Summary: If you’re considering using Spring or Hibernate with IBM® WebSphere® Application Server, this article explains how to configure these frameworks for various scenarios with WebSphere Application Server. This article is not an exhaustive review of either framework, but a … Continue reading

Posted in Uncategorized | Leave a comment

How do I make an image change on mouse over?

This is a popular one. If you don’t already know, this allows you to have an image on a web page, and when you place your mouse over that image, it changes to another one. This is a great way … Continue reading

Posted in Uncategorized | Leave a comment

Hello world!

Welcome to This is your first post. Edit or delete it and start blogging!

Posted in Uncategorized | 1 Comment

use frame hidden url

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">    <html>        <frameset rows="0,*">           <frame></frame>           <frame src="systemlogin.jsp" frameborder=0 scrolling=no>          </frame>        </frameset>    </html>

Posted in Uncategorized | Leave a comment