Tutorial for Application Development

Wednesday, October 26, 2011

Hibernate Video Tutorial Best Video for Hibernate Tutorial

Hibernate Video Tutorial Hibernate Video Tutorial Best Video for Hibernate Tutorial

Spring Hibernate Video Tutorial Java NetBeans Spring Hibernate tutorial

Spring Hibernate Video Tutorial Java NetBeans Spring Hibernate tutorial

Friday, August 31, 2007

JSTL Standard TagLib Tag C c:set,c:if,c:out






Note for work c:if ,c:out and c:set

Java Number Format

long start=System.currentTimeMillis();
super.process();
long end=System.currentTimeMillis();
long total=(end-start)/1000;
java.text.DecimalFormat dc=new DecimalFormat();
dc.applyPattern("0.0");
String formated=dc.format(total);


more pattern is ###,###.00

Java Calculate process time

long start=System.currentTimeMillis();
tins.process();
long end=System.currentTimeMillis();
long total=(end-start)/1000; //in second

Java Date Format

Date d=new Date();
DateFormat dt = DateFormat.getDateInstance(DateFormat.SHORT);
String format=dt.format(date);

Code for Date Format
You can change format in

.MEDIUM Or .FULL

Wednesday, August 22, 2007

Javascript get element by id

Same ple Code

<body>

<p id="myP1">Test Paragraph</p>

<form action="#" method="get">

<input type="button" value="align left"

onclick="document.getElementById('myP1').align='left';" />

<input type="button" value="align center"

onclick="document.getElementById('myP1').align='center';" />

<input type="button" value="align right"

onclick="document.getElementById('myP1').align='right';" />

</form>

</body>



Result

Test Paragraph