Author: krishna

How to configure SSL on Tomcat 5

Here are few simple steps to configure SSL with Tomcat Note: min require JDK is 1.5 to follow below instructions Step 1: mycert.jks certificate will create within the command line folder. If location is different, make it as /cert/location/mycert.jks 1. Open command line window in win/unix 2. keytool -genkey -alias tomcat -keyalg RSA -keystore mycert.jks…

Read More

Install Apache Tomcat

Download Tomcat 5.5.27 zip file from Apache unzip Tomcat into C:Documents and Settings<Your User ID> on local Edit server.xml in C:Documents and Settings<Your User ID>apache-tomcat-5.5.27confserver.xml On line number 94. Change the port number <!– Note : To disable connection timeouts, set connectionTimeout value to 0 –> <Connector port=”10080″ maxHttpHeaderSize=”8192″ maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″ enableLookups=”false” redirectPort=”8443″ acceptCount=”100″…

Read More

Spring

What is the structure of Spring framework?

Read More

Spring

What is the structure of Spring framework?

Read More

JDK Features

J2SDK 1.4 http://java.sun.com/j2se/1.4.2/docs/relnotes/features.html J2SDK 1.5 http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html J2SDK 1.6 http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/beta2.html

Read More

External Files (html, jsp, or asp) within FLEX

  Here is the Action script and mxml code to include HTML, JSP, ASP, etc page within the FLEX canvas or tab. The code is developed and tested with FLEX SDK 3.x In MXML <script:IFrame id=”myFrame” width=”100%” height=”100%” source=http://www.live.com /> Action Script (IFrame.as) package component.script {     import flash.display.DisplayObject;     import flash.display.DisplayObjectContainer;     import flash.events.Event;     import flash.external.ExternalInterface;…

Read More

External Files (html, jsp, or asp) within FLEX

  Here is the Action script and mxml code to include HTML, JSP, ASP, etc page within the FLEX canvas or tab. The code is developed and tested with FLEX SDK 3.x In MXML <script:IFrame id=”myFrame” width=”100%” height=”100%” source=http://www.live.com /> Action Script (IFrame.as) package component.script {     import flash.display.DisplayObject;     import flash.display.DisplayObjectContainer;     import flash.events.Event;     import flash.external.ExternalInterface;…

Read More

Hibernate with Connect BY

 Here is HQL query for CONNECT BY, to extract based on the PRIOR parent id  <sql-query name=”findDepartmentByPriorId”> <return class=”EmployeeDepartment” />  SELECT ed.* FROM EmployeeDepartment ed CONNECT BY ed.PARENTDEPARTMENTID = PRIOR ed.DEPARTMENTID START WITH ed.DEPARTMENTID=? </sql-query>

Read More

Hibernate with Connect BY

 Here is HQL query for CONNECT BY, to extract based on the PRIOR parent id  <sql-query name=”findDepartmentByPriorId”> <return class=”EmployeeDepartment” />  SELECT ed.* FROM EmployeeDepartment ed CONNECT BY ed.PARENTDEPARTMENTID = PRIOR ed.DEPARTMENTID START WITH ed.DEPARTMENTID=? </sql-query>

Read More

Export DataGrid to CSV

I was in difficult situation working on exporting datagrid to CSV, Excel, & PDF. The below code works for CSV & MS-Excel. Later, I will update the code for PDF format.. DataGridExporter.as package components.grid.export { import mx.collections.IViewCursor; import mx.controls.DataGrid; import mx.controls.dataGridClasses.DataGridColumn; public class DataGridExporter { private static var csvSeparator:String = “,”; private static var lineSeparator:String…

Read More