Author Archives: rajkirpal

About rajkirpal

i am a software engineer. and i have decent knowledge about java technologies like ANDROID, Servlet, Jsp, Struts, Hibernet, Spring, J2ME, Java Script, Ajax, JQuery, CSS. Further i am Preparing Easy understandable materials/documents upon the same java technologies and developing project in core java , advanced java and j2me , ANDROID as per the requirements Also designing the web sites and logos Thank You.

Colorwalls

Colorwalls.

Posted in Uncategorized | Leave a comment

SCROLL TO BOTTOM ON BUTTON CLICK

HTML —- LT div id=”main” GT LT div class=”container-fluid” id=”subParentDiv” GT LT /div GT LT /div GT JAVA SCRIPT ———– function checkScroll(){ scroll_to($(“#main”), $(“#subParentDiv”)); } function scroll_to(base, target){ base.animate( { scrollTop:target.height() },1000 ); } EXPLANATION ———– Call the checkScroll() function … Continue reading

Posted in JavaScript / CSS, JQuery | Leave a comment

Copy Particular Row and Append it in a Table

function copyAndAppend(id){ $(“#”+id+” tr:last”).after(“ ” + $(“#serviceRow”).html() + “ “); } Explanation: 1) $(“#serviceRow”).html() : I will copy all the inner content of an element having id = “serviceRow” 2) $(“#”+id+” tr:last”) : I have used ‘id’ variable, its value … Continue reading

Posted in JavaScript / CSS, JQuery | Leave a comment

SQL TO INCREMENT EXISTING COLUMN VALUE BASED ON PARENT AND CHILD ID

DECLARE i number:=0;BEGIN FOR REC1 IN (SELECT * FROM TBLMCSVDRIVER) LOOP i := 0; FOR REC2 IN (SELECT * FROM TBLMCSVDRIVERFIELDMAP WHERE CSVDRIVERID = REC1.CSVDRIVERID order by fieldmapid) LOOP i:=i+1; update TBLMCSVDRIVERFIELDMAP set ORDERNUMBER = i where FIELDMAPID = REC2.FIELDMAPID … Continue reading

Posted in Uncategorized | Leave a comment

JQUERY VALIDATION FIRST FLIGHT JSP

MyForm <script src="/jquery/jquery-1.9.1.js”> <script src="/jquery/jquery.validate.min.js”> /* example styles for validation form demo */ #registrationForm label.error { color: red; display: inline-block; padding: 0; text-align: left; } .fieldlabel{ width:150px; text-align: right; } (function($,W,D) { var JQUERY4U = {}; JQUERY4U.UTIL = { setupFormValidation: … Continue reading

Posted in JQuery | Leave a comment

If Batch Operation failed then Handle all operation separately

package com.raj.db; import java.sql.BatchUpdateException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; class Student{ private int id; private String name; private String queryType; Student(){} Student(int id, String name, String queryType){ … Continue reading

Posted in J2SE | Leave a comment

About Hibernate inverse=”true” or inverse=”false” attribute

Java  Parent.java package javafiles;   import java.util.Set;   publicclass Parent { privateintid; private String name; private Set children; publicint getId() { returnid; } publicvoid setId(int id) { this.id = id; } public String getName() { returnname; } publicvoid setName(String name) … Continue reading

Posted in Hibernate | Leave a comment