GET AND POST REQUEST IN JAVA SERVLET

SEND FORM REQUEST IN JSP Today I am working on JSP(Java servlet page). this is very basic demo of POST and GET request in JSP. first need to define a class in you folder (src in eclispe). “How T0 Send GET Request” import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import…

ConverseJS with ejabberd

So now I will going to develop chatting app using converseJs with ejabberd. First thing download Converse.js for javascript Now create HTML file and this code in your Javascript script file.     require([‘converse’], function (converse) {         (function () {             var $ = converse.env.jQuery;             $.extend( $.easing, {                 easeInOutExpo: function (x, t, b,…

EJABBERD INSTALL AND CONFIGURE

Hello, Today I am going to Install Ejabberd. Before I am going to Teach you about Ejabberd, I want to tell you about what is Ejabberd and what is use of ejabberd. So Lets start. Ejabberd is Open-Source XMPP server. Ejabberd provide the chat service between users and groups. Ejabberd is product of cisco. I…

2015 in review

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog. Here’s an excerpt: The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 11,000 times in 2015. If it were a concert at Sydney Opera House, it would take about 4 sold-out performances for that many…

Google Places Api Without using map

Its very simple . You just need to use this code in your HTML page http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places google.maps.event.addDomListener(window, ‘load’, function () { var places = new google.maps.places.Autocomplete(document.getElementById(‘txtPlaces’)); google.maps.event.addListener(places, ‘place_changed’, function () { var place = places.getPlace(); var address = place.formatted_address; var latitude = place.geometry.location.lat(); var longitude = place.geometry.location.lng(); var mesg = “Address: ” + address; mesg…

How to access the dynamic created function and models by Angular Js

Hello, Today i am going to talk about How to Call Dynamic declared function by Angular js ?. Like we use simple method to create the dynamic function in html. //This is dynamic declared function call() which is used with HTML var html_content = “<a href=’#’ ng-click=’call()’>”; //Add this html in your page. In this…

File uploading using Ajax

var file_data; var upload_size; var file_size; var file_last_modified; var formdata = new FormData(); $(“#file”).change(function(){ if(this.files[0].size < 10000) { upload_size = “ok”; file_size = this.files[0].size; file_last_modified = this.files[0].lastModified; file_data = this.files[0]; formdata.append(“images”,file_data,file_data.name); alert(file); }else{ upload_size = “not ok”; } var filetype = $(“#file”).val().split(“.”); $.ajax({ type:’POST’, data:formdata, processData: false, contentType: false, url:’site url’, beforeSend:function(xhr){ xhr.setRequestHeader(“requestType”, “vendorPhotoAdmin”); xhr.setRequestHeader(“fileType”,…

Wastage Management

Today I am adding  the filter in this system for search the any report.