Monthly Archives: June 2011

Regular Expression search and replace program in java

private String matchAndReplaceParam(String message,String Param,String ParamValue){ String txt=message; String re1=””; Pattern p = Pattern.compile(re1+re2+re3,Pattern.CASE_INSENSITIVE | Pattern.DOTALL); Matcher m = p.matcher(txt); message = m.replaceAll(ParamValue); return message; }

Posted in java | Tagged | Leave a comment

How To Unzip Large File With Java

import*; import*; public class UnZip { final static int BUFFER = 2048; // “/home/admin/Downloads/movies/” public String unzipFile(String compressFilePath, String uncompressFolderPath){ String uncompressedFilePath=null; try { BufferedOutputStream dest = null; FileInputStream fis = new FileInputStream(compressFilePath); ZipInputStream zis = new ZipInputStream(new … Continue reading

Posted in java | Tagged , , | 1 Comment

JPA Tuturial

Original post

Posted in jpa | Tagged | Leave a comment

Jsp Tutrial

Java Control in Scriptlets If Statement Switch Statement For Statement Try Statement Implicit Object application Get Initialization Parameters Set Attribute Get Attributes Remove Attribute Implicit Object config Get Initialization Parameters Initialization and Destruction Implicit Object exception Exception Implicit Object out … Continue reading

Posted in JSP | Leave a comment

How To Iterate Over Map in jsp

<%@ taglib prefix=”c” uri=”; %> <html> <head> <title>Example – Iterate Map</title> </head> <body> <pre> Before “forEach” tag <c:forEach var=”entry” items=”${applicationScope}”> Name: ${entry.key} Value: ${entry.value}<br> </c:forEach> After “forEach” tag </pre> </body> </html>

Posted in java | Tagged , | Leave a comment

View technologies in spring

PDF,Excel,jasper reports,velocity,JSP,JSTL,Tiles original post here

Posted in java, spring | Tagged , | Leave a comment

JSP & JSTL with Spring

Spring provides a couple of out-of-the-box solutions for JSP and JSTL views. Using JSP or JSTL is done using a normal view resolver defined in the WebApplicationContext. Furthermore, of course you need to write some JSPs that will actually render … Continue reading

Posted in java, spring | Tagged , , | Leave a comment