Create Initial-capital letter by using XSLT

By using below template you can get initial capital letter for multiple word. <xsl:call-template name="ginitcap">         <xsl:with-param name="text"> <xsl:value-of select="your value here"/> </xsl:with-param> </xsl:call-template> <!-- Customised initial-capital template --> <xsl:template name="ginitcap">       <xsl:param name="text"/>       <xsl:choose>         <xsl:when...

To use two version of jquery in single page

Download js and css Sample.jsp <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>jQuery.noConflict</title> <%--This is for jquery Button--%> <%--First jquery version Start--%> <link rel="stylesheet" href="jquery.ui.all.css"> <script src="jquery-1.9.1.js"></script> <script...

MySQL Export to CSV

Export data from MySQL into a CSV file,Its simple by using this query. SELECT * INTO OUTFILE '/tmp/name.csv'FIELDS TERMINATED BY ','OPTIONALLY ENCLOSED BY '"'ESCAPED BY '\\'LINES TERMINATED BY '\n'FROM [tablenam...

Listview with AlertBox in Android

ListActivity.java package com.android.first; import java.util.Arrays; import android.app.AlertDialog; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.OnItemClickListener; public...

Android Terms

.APK Android application package file. Each Android application is compiled and packaged in a single file that includes all of the application’s code (.dex file), resources, assets, and manifest file. The application package file can have any name but must use the .apk extension. For example: myExampleAppname.apk. For convenience, an application package file is often referred to as an “.apk”. .DEX Dalvik Executable. Compiled Android application code file. Android programs are compiled...

 
java4practices © 2013 | Designed by Ganesh Rengarajan