Skip to content

Instantly share code, notes, and snippets.

View techjawab's full-sized avatar

Abhishek Mitra techjawab

View GitHub Profile
<script src="http://code.jquery.com/jquery-1.6.2.js"></script>
<script>
var $jq162 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
var $jq191 = jQuery.noConflict();
</script>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
var $jq191 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.6.2.js"></script>
<script>
var $jq162 = jQuery.noConflict();
[global]
workgroup = HOME
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
@techjawab
techjawab / HelloController.java
Created June 6, 2013 07:57
Controller component for SpringDIAndAutowired
package com.techjawab.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.techjawab.beans.Employee;
@techjawab
techjawab / web.xml
Created June 6, 2013 07:52
web.xml for SpringDIAndAutowired
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<!-- Configure ContextLoaderListener to use AnnotationConfigWebApplicationContext
instead of the default XmlWebApplicationContext -->
<context-param>
<param-name>contextClass</param-name>
<param-value>
package com.techjawab.config;
import org.springframework.context.annotation.*;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import com.techjawab.beans.Employee;
import com.techjawab.beans.OfficeAddress;
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<context-param>
<param-name>contextClass</param-name>
<param-value>
@techjawab
techjawab / WSClient.java
Created May 2, 2013 18:06
SOAP WebService Client Invoker
package com.egi.demo.webservice;
import org.apache.axis.client.Stub;
public class WSClient {
public static void main(String[] args) {
CalcCTCWebServiceImplServiceLocator calcCTCWebServiceImplServiceLocator = new CalcCTCWebServiceImplServiceLocator();
calcCTCWebServiceImplServiceLocator.setCalcCTCWebServiceImplPortEndpointAddress("http://localhost:8080/CalcCTCWebServicePublisher/ws/CTCService");
@techjawab
techjawab / web.xml
Created April 30, 2013 11:43
web.xml for Web Service Publisher
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>CalcCTCWebServicePublisher</display-name>
<servlet>
<servlet-name>CTCService</servlet-name>
<servlet-class>com.egi.demo.webservice.CalcCTCWebServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CTCService</servlet-name>