<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6441819049554082232</id><updated>2025-07-06T17:48:10.488-07:00</updated><category term="A TCP port scanner in &#39;C&#39;"/><category term="AES Encryption - Decryption java example"/><category term="Ardiuno firebase"/><category term="Asynchronous  File Upload in Java Web Application using ajax"/><category term="ClickJacking attacks"/><category term="Connect two computer using cross cable"/><category term="Convert Java project to maven"/><category term="Cpanel cron job"/><category term="Create Maven project"/><category term="Create Pom.xml in java"/><category term="Difference between MS SQL"/><category term="Download a pdf excel text  etc...file in jsp."/><category term="ERR_CLEARTEXT_NOT_PERMITTED"/><category term="Eclipse “Failed to load JNI shared library”"/><category term="Emulator internet now working"/><category term="Enable SMTP Authentication on cpanel"/><category term="How to use MySQL from SSH (Linux shell)"/><category term="Install tomcat"/><category term="Java Maven"/><category term="Linux send mail configuration"/><category term="Maven dependency"/><category term="MySQL and Oracl"/><category term="Network adapter error"/><category term="On Off led firebase"/><category term="Open Calculator through c/cpp program"/><category term="RS232 Serial Communication"/><category term="Remove Shortcut Virus from Pen drive or Memory Card"/><category term="SPF error &quot;unable to verify that this server is an authoritative name&quot;"/><category term="SSL"/><category term="Send HTML mail with images"/><category term="ShutDown Computer through &#39;C&#39; program"/><category term="Spring Maven"/><category term="X Frame Options"/><category term="access mysql remotely"/><category term="access xampp on local network"/><category term="append date with dabase backup"/><category term="cordova"/><category term="cpanel autometic dabase backup"/><category term="cpanel configure SMTP authentication"/><category term="cron job mysql backup"/><category term="database backup crone job"/><category term="disable right click javascript"/><category term="disable right click on web page using jquery"/><category term="download doc using jsp"/><category term="event viewer"/><category term="excel VBA"/><category term="execute php script from java"/><category term="generate multiple excel sheet"/><category term="how to disable right click"/><category term="how to disable right click on web page in php"/><category term="java script disable right click"/><category term="java to php call"/><category term="localhost on another computer"/><category term="macro code for split column data"/><category term="maven and tomcat configuration"/><category term="oracle change password"/><category term="oracle connection error"/><category term="oracle create user"/><category term="oracle developer"/><category term="oracle network adapter error"/><category term="oracle username passowrd"/><category term="post data from java to php"/><category term="run maven on tomcat"/><category term="run tomcat"/><category term="save saparate sheet"/><category term="send an email by Java application using Gmail/ Yahoo/ Hotmail"/><category term="set catalina_home"/><category term="set environment variable"/><category term="set environment variable using command"/><category term="set java_home"/><category term="set jre_home"/><category term="set x-frame option in meta"/><category term="set x-frame-options"/><category term="split excel data to multiple sheet"/><category term="tomcat and self signed certificates"/><category term="undefined-method-mysqli-stmtget-result"/><category term="use &lt;script&gt; in .html file"/><category term="windows event logs"/><category term="windows security logs"/><category term="windows shutdown"/><category term="x-frame-option  in php"/><category term="x-frame-options iframe"/><category term="xampp.conf access permission"/><title type='text'>PS</title><subtitle type='html'>Programming Solution</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-1159253022665713118</id><published>2024-11-08T05:33:00.000-08:00</published><updated>2024-11-08T05:33:00.732-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ardiuno firebase"/><category scheme="http://www.blogger.com/atom/ns#" term="On Off led firebase"/><title type='text'>ESP Ardiuno program to controll a Motor through Firebase on Internet.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here sharing a ESP8266 (Using Nodemcu) ariuno program to controller a motor over internet using firebase.&lt;/p&gt;&lt;p&gt;In below example as i am controller a motor that have a capacitor so as i ON Motor (RelayStart =13) program should ON a capacitor (RelayCapaciter=14)&amp;nbsp; for 3 second then Off it.&lt;/p&gt;&lt;p&gt;Below code have i wifi configuration page where you can enter your wifi router SSID and password. Follow below steps:&lt;/p&gt;&lt;p&gt;1- First paste your firebase Host and Auth key in code.&lt;/p&gt;&lt;p&gt;2- Connect Nodemcu GPIO pin 13 to Relay (Motor) ON.&lt;/p&gt;&lt;p&gt;3- Connect Nodemcu GPIO pin 14 to RelayCapaciter (for capacitor).&lt;/p&gt;&lt;p&gt;4- Now burn the code in node mcu 8266.&lt;/p&gt;&lt;p&gt;5- To configure your router ssid password. Press Flash button of nodemcu for 3 to 5 seconds. It will enable esp to AP mode and you can get a wifi network with name of ESP-TEST.&lt;/p&gt;&lt;p&gt;6- Connect to this Access Point.&lt;/p&gt;&lt;p&gt;7- Now open borwser and type 192.168.4.1 and you will get a page to enter SSID and Password of your router.&lt;/p&gt;&lt;p&gt;8- Finally click on Submit. Now it has been successfullly connected to your router.&lt;/p&gt;&lt;p&gt;9- Now open your firebase account and you will get two veriable in firebase database. MotorCommand and MotorStatus.&amp;nbsp; Enter ON in MotorCommand it will on the ESP (Motor) as motor on ESP will write back the ON status to MotorStatus variable at firebase.&lt;/p&gt;&lt;p&gt;10- Done.&lt;/p&gt;&lt;p&gt;#include &amp;lt;ESP8266WiFi.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;ESP8266HTTPClient.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;ESP8266WebServer.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &quot;FirebaseESP8266.h&quot;&lt;/p&gt;&lt;p&gt;#include &amp;lt;ESP8266mDNS.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;ArduinoJson.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;EEPROM.h&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//------------------ Variables--------------------------&lt;/p&gt;&lt;p&gt;int statusCode;&lt;/p&gt;&lt;p&gt;String ssid = &quot;&quot;;&lt;/p&gt;&lt;p&gt;String passphrase = &quot;&quot;;&lt;/p&gt;&lt;p&gt;String st;&lt;/p&gt;&lt;p&gt;String content;&lt;/p&gt;&lt;p&gt;const int triggerPin = 0;&lt;/p&gt;&lt;p&gt;bool IN_ST_MODE_FLAGE = true;&lt;/p&gt;&lt;p&gt;bool IN_AP_MODE_FLAGE = false;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;int c = 0;&lt;/p&gt;&lt;p&gt;int Current_Gate_Status;&lt;/p&gt;&lt;p&gt;int Last_Gate_Status;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;const int RelayStart = 13;&amp;nbsp; &amp;nbsp;//On-off&lt;/p&gt;&lt;p&gt;const int RelayCapaciter = 14;&amp;nbsp; // for capacitor&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;String Last_Status = &quot;OFF&quot;;&amp;nbsp;&lt;/p&gt;&lt;p&gt;unsigned long triggerStartTime = 0; // Variable to store the start time of trigger pin low state&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;//======================= ON NET =========================================&lt;/p&gt;&lt;p&gt;#define FIREBASE_HOST &quot;Paste you firebase host&quot;&lt;/p&gt;&lt;p&gt;#define FIREBASE_AUTH &quot;Paster your firebase Auth key&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;FirebaseData fbdo;&lt;/p&gt;&lt;p&gt;unsigned long sendDataPrevMillis = 0;&lt;/p&gt;&lt;p&gt;String commandpath = &quot;/MotorCommand&quot;;&lt;/p&gt;&lt;p&gt;String currentStatusPath = &quot;/MotorStatus&quot;;&lt;/p&gt;&lt;p&gt;uint16_t count = 0;&lt;/p&gt;&lt;p&gt;void printResult(FirebaseData &amp;amp;data);&lt;/p&gt;&lt;p&gt;ESP8266WebServer server(80);&lt;/p&gt;&lt;p&gt;void setup()&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; Serial.begin(115200);&lt;/p&gt;&lt;p&gt;&amp;nbsp; pinMode(triggerPin, INPUT);&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; pinMode(RelayCapaciter,OUTPUT);&lt;/p&gt;&lt;p&gt;&amp;nbsp; pinMode(RelayStart,OUTPUT);&lt;/p&gt;&lt;p&gt;&amp;nbsp; digitalWrite(RelayStart, HIGH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; digitalWrite(RelayCapaciter, HIGH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Disconnecting previously connected WiFi&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.disconnect();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EEPROM.begin(512);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Startup&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Reading EEPROM ssid&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; String esid;&lt;/p&gt;&lt;p&gt;&amp;nbsp; for (int i = 0; i &amp;lt; 32; ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; esid += char(EEPROM.read(i));&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println();&lt;/p&gt;&lt;p&gt;&amp;nbsp; Serial.print(&quot;SSID: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; Serial.println(esid);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Reading EEPROM pass&quot;);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; String epass = &quot;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; for (int i = 32; i &amp;lt; 96; ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; epass += char(EEPROM.read(i));&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.print(&quot;PASS: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(epass);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; WiFi.mode(WIFI_STA);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //&amp;nbsp; WiFi.forceSleepWake(); // Ensure it&#39;s awake&amp;nbsp; &amp;nbsp;set it before wifi.begin()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;// WiFi.setSleepMode(WIFI_NONE_SLEEP); // Disable sleep mode&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; if(ssid!=&quot;&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.begin(ssid, passphrase);&lt;/p&gt;&lt;p&gt;&amp;nbsp; else&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.begin(esid, epass);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; if (waitForWiFiConnection())&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;Connected to WiFi&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(WiFi.localIP());&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; else&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;Failed to connect to WiFi&quot;);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; ESP.wdtEnable(10000);&amp;nbsp; &amp;nbsp;//set watchdog timer for 10 second&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; firebaseConnect();&amp;nbsp; //connecting to firebase&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void firebaseConnect()&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; Firebase.reconnectWiFi(true);&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; fbdo.setBSSLBufferSize(1024, 1024);&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; fbdo.setResponseSize(1024);&lt;/p&gt;&lt;p&gt;&amp;nbsp; if (!Firebase.beginStream(fbdo, commandpath))&lt;/p&gt;&lt;p&gt;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;------------------------------------&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;Can&#39;t begin stream connection...&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;REASON: &quot; + fbdo.errorReason());&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;------------------------------------&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println();&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Firebase.setString(fbdo, commandpath , String(&quot;OFF&quot;));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Firebase.setString(fbdo, currentStatusPath , String(&quot;OFF&quot;));&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void loop()&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; ESP.wdtFeed();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(ESP.getFreeHeap());&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;//===============================================================================&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if (IN_ST_MODE_FLAGE == true)&amp;nbsp; //Current ST MODE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (digitalRead(triggerPin) == LOW)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (triggerStartTime == 0)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { // If trigger pin just went low, start the timer&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; triggerStartTime = millis();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;Trigger Pin Low&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (millis() - triggerStartTime &amp;gt;= 3000)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { // If trigger/flash button pressed more than 3 seconds than move to AP mode&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WiFi.disconnect();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WiFi.softAP(&quot;GateController&quot;, &quot;&quot;); // Fixed AP name&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN_ST_MODE_FLAGE = false;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN_AP_MODE_FLAGE = true;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;Switched to AP mode&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; triggerStartTime = 0; // Reset the timer if trigger pin goes high&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (WiFi.status() != WL_CONNECTED&amp;nbsp; &amp;amp;&amp;amp; IN_ST_MODE_FLAGE == true)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Serial.println(&quot;Not connected to WiFi&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!fbdo.httpConnected() &amp;amp;&amp;amp; IN_ST_MODE_FLAGE == true)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;Unable to connect firebase&quot;);&amp;nbsp; // if firebase connection failed then reconnect&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firebaseConnect();&amp;nbsp; //reconnect to firebase;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*&amp;nbsp; if (!checkInternetConnection())&amp;nbsp; &amp;nbsp;//check Internet working or not&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Serial.println(&quot;No Internet.&quot;);&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;Internet Connected.&quot;);&amp;nbsp; */&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (WiFi.status() == WL_CONNECTED &amp;amp;&amp;amp; IN_ST_MODE_FLAGE == true)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String State = (fbdo.stringData());&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( State == &quot;ON&quot; &amp;amp;&amp;amp; Last_Status==&quot;OFF&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Serial.print(&quot;--State &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Serial.println(State);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; digitalWrite(RelayStart, LOW);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; digitalWrite(RelayCapaciter, LOW);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delay(3000);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; digitalWrite(RelayCapaciter, HIGH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_Status=&quot;ON&quot;;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Firebase.setString(fbdo, currentStatusPath , String(&quot;ON&quot;));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( State == &quot;OFF&quot; &amp;amp;&amp;amp; Last_Status==&quot;ON&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Serial.print(&quot;--State &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; Serial.println(State);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; digitalWrite(RelayStart, HIGH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_Status=&quot;OFF&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Firebase.setString(fbdo, currentStatusPath , String(&quot;OFF&quot;));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!Firebase.readStream(fbdo)){}&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (fbdo.streamAvailable()){}&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;//------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if (IN_ST_MODE_FLAGE == false)&amp;nbsp; // Current AP MODE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //waitForWiFiConnection();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (IN_AP_MODE_FLAGE == true)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println(&quot;IN AP Mode &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; launchWeb();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setupAP();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN_AP_MODE_FLAGE = false;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&amp;nbsp; Wapable lonnched&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server.handleClient();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; delay(10);&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;//===============================================================================&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;bool waitForWiFiConnection()&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; int c = 0;&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Waiting for WiFi to connect&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; while (c &amp;lt; 80) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if (WiFi.status() == WL_CONNECTED)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IN_ST_MODE_FLAGE = true;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; delay(500);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.print(&quot;*&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; c++;&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;\nWiFi connection timed out&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; return false;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;void handleRoot()&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; IPAddress ip = WiFi.softAPIP();&lt;/p&gt;&lt;p&gt;&amp;nbsp; String ipStr = String(ip[0]) + &#39;.&#39; + String(ip[1]) + &#39;.&#39; + String(ip[2]) + &#39;.&#39; + String(ip[3]);&lt;/p&gt;&lt;p&gt;&amp;nbsp; content = &quot;&amp;lt;!DOCTYPE HTML&amp;gt;\r\n&amp;lt;html&amp;gt;ESP8266 WiFi Connectivity Setup &quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += &quot;&amp;lt;form action=\&quot;/scan\&quot; method=\&quot;POST\&quot;&amp;gt;&amp;lt;input type=\&quot;submit\&quot; value=\&quot;scan\&quot;&amp;gt;&amp;lt;/form&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += ipStr;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += &quot;&amp;lt;p&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += st;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += &quot;&amp;lt;/p&amp;gt;&amp;lt;form method=&#39;get&#39; action=&#39;setting&#39;&amp;gt;&amp;lt;label&amp;gt;SSID: &amp;lt;/label&amp;gt;&amp;lt;input name=&#39;ssid&#39; length=32&amp;gt;&amp;lt;input name=&#39;pass&#39; length=64&amp;gt;&amp;lt;input type=&#39;submit&#39;&amp;gt;&amp;lt;/form&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; content += &quot;&amp;lt;/html&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.send(200, &quot;text/html&quot;, content);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void setupAP()&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.mode(WIFI_STA);&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.disconnect();&lt;/p&gt;&lt;p&gt;&amp;nbsp; delay(100);&lt;/p&gt;&lt;p&gt;&amp;nbsp; int n = WiFi.scanNetworks();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Scan completed&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; if (n == 0)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;No WiFi Networks found&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; else {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.print(n);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot; Networks found&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; n; ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(i + 1);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(&quot;: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(WiFi.SSID(i));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(&quot; (&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(WiFi.RSSI(i));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.print(&quot;)&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE) ? &quot; &quot; : &quot;*&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delay(10);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; st = &quot;&amp;lt;ol&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; for (int i = 0; i &amp;lt; n; ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += &quot;&amp;lt;li&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += WiFi.SSID(i);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += &quot; (&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += WiFi.RSSI(i);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += &quot;)&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += (WiFi.encryptionType(i) == ENC_TYPE_NONE) ? &quot; &quot; : &quot;*&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; st += &quot;&amp;lt;/li&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; st += &quot;&amp;lt;/ol&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; delay(100);&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFi.softAP(&quot;ESP-TEST&quot;, &quot;&quot;); // Set your desired AP name&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Initializing WiFi access point&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; launchWeb();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Over&quot;);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void handleSetting() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; String qsid = server.arg(&quot;ssid&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; String qpass = server.arg(&quot;pass&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; if (qsid.length() &amp;gt; 0 &amp;amp;&amp;amp; qpass.length() &amp;gt; 0) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;Clearing EEPROM&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 96; ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; EEPROM.write(i, 0);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(qsid);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(qpass);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;&quot;);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;Writing EEPROM ssid:&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; qsid.length(); ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; EEPROM.write(i, qsid[i]);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Serial.print(&quot;Wrote: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Serial.println(qsid[i]);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;Writing EEPROM pass:&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; qpass.length(); ++i) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; EEPROM.write(32 + i, qpass[i]);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Serial.print(&quot;Wrote: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Serial.println(qpass[i]);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; EEPROM.commit();&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; content = &quot;{\&quot;Success\&quot;:\&quot;Saved to EEPROM... Reset to boot into new WiFi\&quot;}&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; statusCode = 200;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; ESP.reset();&lt;/p&gt;&lt;p&gt;&amp;nbsp; } else {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; content = &quot;{\&quot;Error\&quot;:\&quot;404 not found\&quot;}&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; statusCode = 404;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; //Serial.println(&quot;Sending 404&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.sendHeader(&quot;Access-Control-Allow-Origin&quot;, &quot;*&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.send(statusCode, &quot;application/json&quot;, content);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void handleScan() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; content = &quot;&amp;lt;!DOCTYPE HTML&amp;gt;\r\n&amp;lt;html&amp;gt;&amp;lt;a href=&#39;/&#39;&amp;gt;Go back&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.send(200, &quot;text/html&quot;, content);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;bool checkInternetConnection() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; WiFiClient client;&lt;/p&gt;&lt;p&gt;&amp;nbsp; return client.connect(&quot;8.8.8.8&quot;, 53);&amp;nbsp; // Try to connect to Google&#39;s DNS&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void launchWeb() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; if (WiFi.status() == WL_CONNECTED)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Serial.println(&quot;WiFi connected&quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.print(&quot;Local IP: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(WiFi.localIP());&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.print(&quot;SoftAP IP: &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(WiFi.softAPIP());&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.on(&quot;/&quot;, HTTP_GET, handleRoot);&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.on(&quot;/scan&quot;, HTTP_GET, handleScan);&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.on(&quot;/setting&quot;, HTTP_GET, handleSetting);&lt;/p&gt;&lt;p&gt;&amp;nbsp; server.begin();&lt;/p&gt;&lt;p&gt;&amp;nbsp; //Serial.println(&quot;Server started&quot;);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/1159253022665713118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2024/11/esp-ardiuno-program-to-controll-motor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1159253022665713118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1159253022665713118'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2024/11/esp-ardiuno-program-to-controll-motor.html' title='ESP Ardiuno program to controll a Motor through Firebase on Internet.'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-1044934287017711634</id><published>2021-11-07T00:22:00.005-07:00</published><updated>2021-11-07T00:24:12.662-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cordova"/><category scheme="http://www.blogger.com/atom/ns#" term="Emulator internet now working"/><category scheme="http://www.blogger.com/atom/ns#" term="ERR_CLEARTEXT_NOT_PERMITTED"/><category scheme="http://www.blogger.com/atom/ns#" term="undefined-method-mysqli-stmtget-result"/><category scheme="http://www.blogger.com/atom/ns#" term="use &lt;script&gt; in .html file"/><title type='text'>Apache Cordova app issues</title><content type='html'>&lt;p&gt;Here I am sharing all the issues/errors which I get during Cordova mobile app development-&lt;/p&gt;&lt;p&gt;1-Call to undefined method mysqli_stmt::get_result&lt;/p&gt;&lt;p&gt;Solution: https://stackoverflow.com/questions/8321096/call-to-undefined-method-mysqli-stmtget-result&lt;/p&gt;&lt;p&gt;cpanel dispable mysqli and enable nd_mysqli&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2- Server origin access issue&amp;nbsp; (Unable to access API hosted on server)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;v1=&amp;gt; .htaccess =&amp;gt; added following lines&lt;/p&gt;&lt;p&gt;&amp;lt;IfModule mod_headers.c&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Header set Access-Control-Allow-Origin &quot;*&quot;&lt;/p&gt;&lt;p&gt;&amp;lt;/IfModule&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3- Emulator : net not working.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;First change DNS to 8.8.8.8 of the computer where avd running.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Now open android studio=&amp;gt; tools=&amp;gt;AVD manager=&amp;gt; select drop down arrow of the AVD(Emulator)=&amp;gt; click on &quot;Cold Boot Now&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;4- Add platform: cordova platform add android&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cordova platform rm android&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;cordova platform add browser&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;5- Run app into emulator:&lt;/p&gt;&lt;p&gt;cordova build --emulator&lt;/p&gt;&lt;p&gt;cordova run android --emulator&lt;/p&gt;&lt;p&gt;To run in mobile-&amp;gt; cordova run or cordova run android&lt;/p&gt;&lt;p&gt;To browser&amp;nbsp; cordova run browser&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;6- Biggest Issue:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;i) Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors in cordova 8/9.....?&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ii) was unable to call API using jquery ajax : Error was cordova app ajax api call returning xhr.status 0&lt;/p&gt;&lt;p&gt;Solution: go to config.xml&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;lt;widget id=&quot;com.my.awesomeapp&quot; version=&quot;1.0.0&quot; xmlns=&quot;http://www.w3.org/ns/widgets&quot;&lt;/p&gt;&lt;p&gt;xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:cdv=&quot;http://cordova.apache.org/ns/1.0&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;this line already in config.xml but here you can see xmln:android&amp;nbsp; not there so just copy xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and past it there.&lt;/p&gt;&lt;p&gt;now past below &amp;lt;edit-config....&amp;gt;....&amp;lt;/edit-config&amp;gt; into &amp;lt;plateform name=&quot;android&quot;&amp;gt; ..../&amp;lt;platform&amp;gt; section.&lt;/p&gt;&lt;p&gt;&amp;lt;platform name=&quot;android&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;edit-config file=&quot;app/src/main/AndroidManifest.xml&quot; mode=&quot;merge&quot; target=&quot;/manifest/application&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;application android:usesCleartextTraffic=&quot;true&quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;/edit-config&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/platform&amp;gt;&lt;/p&gt;&lt;p&gt;for more details please check https://stackoverflow.com/questions/54752716/why-am-i-seeing-neterr-cleartext-not-permitted-errors-after-upgrading-to-cordo&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;7- Issue : if you want to use &amp;lt;script&amp;gt; in .html file then need to add follwoing&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src *; style-src &#39;self&#39; http://* &#39;unsafe-inline&#39;; script-src &#39;self&#39; http://* &#39;unsafe-inline&#39; &#39;unsafe-eval&#39;&quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/1044934287017711634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2021/11/apache-cordova-app-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1044934287017711634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1044934287017711634'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2021/11/apache-cordova-app-issues.html' title='Apache Cordova app issues'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-5830941634112162349</id><published>2021-11-06T23:50:00.002-07:00</published><updated>2021-11-06T23:52:44.824-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="event viewer"/><category scheme="http://www.blogger.com/atom/ns#" term="windows event logs"/><category scheme="http://www.blogger.com/atom/ns#" term="windows security logs"/><category scheme="http://www.blogger.com/atom/ns#" term="windows shutdown"/><title type='text'>How to analyze windows  event log</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Open windows event viewer-&lt;/p&gt;&lt;p&gt;1- Open Control Panel.&lt;/p&gt;&lt;p&gt;2- Click on Administrative Tools.&lt;/p&gt;&lt;p&gt;3- Now open Event Viewer.&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #171717; font-size: 16px;&quot;&gt;In the console tree, expand&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-size: 16px; font-weight: 600; outline-color: inherit;&quot;&gt;Windows Logs&lt;/span&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #171717; font-size: 16px;&quot;&gt;, and then click&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-size: 16px; font-weight: 600; outline-color: inherit;&quot;&gt;System&lt;/span&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #171717; font-size: 16px;&quot;&gt;. The results pane lists individual system events.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Now before proceeding further we should know the event id of the event which we want to analyze. here we want to check system shut down, reboot, start etct so event id is given below-&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Event ID 41&lt;/span&gt;&lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;:&lt;/span&gt; The system rebooted without cleanly shutting down first. This error occurs when the system stopped responding, crashed, or lost power unexpectedly.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Event ID 1074:&lt;/span&gt; Indicates that the shut down process was initiated by an app or user, or when a user initiates a restart or shutdown. Your computer records this event when an application forces your laptop to shut down or restart. This event also helps you know when a user restarted or shut down the computer from the Start menu or by using CTRL+ALT+DEL.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Event ID 6006 &lt;/span&gt;- The clean shut down event. This means Windows 10 was turned off correctly.&amp;nbsp; It gives the message, “The Event log service was stopped.”&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Event ID 6008&lt;/span&gt; - Indicates a dirty/improper shutdown. Appears in the log when the previous shutdown was unexpected, e.g. due to power loss or BSoD (Bug check).you&amp;nbsp; will see this event in your system log. It gives the message, “The previous system shutdown at time on date was unexpected.”&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;After this, we can find the particular event by Option &quot;Filter Current logs&quot; in the right side action tab and you can see all the logs with time for that particular event.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #171717; font-size: 16px;&quot;&gt;If you want to see more details about a specific event, in the results pane, click the event.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/5830941634112162349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2021/11/how-to-analyze-windows-event-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5830941634112162349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5830941634112162349'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2021/11/how-to-analyze-windows-event-log.html' title='How to analyze windows  event log'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-9113292857491480805</id><published>2021-06-17T02:10:00.005-07:00</published><updated>2021-06-17T02:12:03.237-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Network adapter error"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle connection error"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle developer"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle network adapter error"/><title type='text'>Oracle Network Adapter Could Not Establish The Connection Error</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;gwmw style=&quot;display: none;&quot;&gt;&lt;/gwmw&gt;&lt;/p&gt;&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #111111; font-family: &amp;quot;Roboto Condensed&amp;quot;; line-height: 54px; margin: 0px 0px 5px; overflow-wrap: break-word; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;The Network Adapter Could Not Establish The Connection Error in oracle.&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;Hey guys! Have you ever faced the TNS IO error saying “The network adapter could not establish the connection”? when you are trying to make a&amp;nbsp;&lt;a href=&quot;http://www.rebellionrider.com/how-to-make-new-database-connection-in-sql-developer-rebellionrider/&quot; style=&quot;background-color: transparent; box-sizing: border-box; color: #ea2e2e; text-decoration-line: none;&quot;&gt;new connection in SQL Developer&lt;/a&gt;&amp;nbsp;or logging on to the database using&amp;nbsp;&lt;a href=&quot;http://www.rebellionrider.com/how-to-connect-with-oracle-database-using-sqlplus-utility/&quot; style=&quot;background-color: transparent; box-sizing: border-box; color: #ea2e2e; text-decoration-line: none;&quot;&gt;SQL*Plus editor&lt;/a&gt;. If yes then you are at the right place because here in this blog I am going to show you how you can solve this error.&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3o1HRE13_0NboLs78tMyo8rZfTSZEEgBEU6KAeT7MUEBTu6BTw_lPNZqNBYLU9Ur2zl_revSzs16y31Wv1pg3ZXTUWqAoKn3P47LwDdLiad09rVn1oDqBTvl7iSuhjLmr0_3eoRxeRyI/s861/the-network-adapter-could-not-establish-the-connection-1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;526&quot; data-original-width=&quot;861&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3o1HRE13_0NboLs78tMyo8rZfTSZEEgBEU6KAeT7MUEBTu6BTw_lPNZqNBYLU9Ur2zl_revSzs16y31Wv1pg3ZXTUWqAoKn3P47LwDdLiad09rVn1oDqBTvl7iSuhjLmr0_3eoRxeRyI/w582-h322/the-network-adapter-could-not-establish-the-connection-1.png&quot; width=&quot;582&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;So without further ado let’s proceed to solve this badass TNS error.&lt;/p&gt;&lt;div class=&quot;td-g-rec td-g-rec-id-content_inline tdi_2_7c8 td_block_template_4&quot; style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; color: #111111; font-family: Roboto, sans-serif; font-size: 27px;&quot;&gt;Step 1: Make sure your entries are correct&lt;/strong&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;First of all to solve “The network adapter could not establish the connection” error, check whether you have entered the correct&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;username&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;password&amp;nbsp;&lt;/em&gt;as well as the correct&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Hostname&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Port&amp;nbsp;&lt;/em&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;number&lt;/em&gt;. Though these are small things we cannot avoid them. After all “It’s the small things in a relationship that means the most.”&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;[bctt tweet=”How to solve “The network adapter could not establish the connection” error in just 2 steps” username=”RebellionRider”]&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;For the valid hostname and port number, you can check the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Listener.ora&lt;/em&gt;&amp;nbsp;if you have access to your server as the listener is a server process. In case you don’t have access to listener.ora file then you can check the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;tnsnames.ora&lt;/em&gt;&amp;nbsp;file.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;In case of Listener.ora file check for Host and Port entry in Listener tag for valid hostname and port number.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo7iMPDMonAEgmmimPI9pVBCnSzOXQd2sJqndgWhddC1TcC7f5jHQRCM5Jp_5srZUPNG9lE4t_3r7KbyfAU1aG9g2YeqHJgxmyhNcCNFQhcPTc_GS7gl_lQOwvyNQsUr4VridIg-ts8G0/s1033/2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;592&quot; data-original-width=&quot;1033&quot; height=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo7iMPDMonAEgmmimPI9pVBCnSzOXQd2sJqndgWhddC1TcC7f5jHQRCM5Jp_5srZUPNG9lE4t_3r7KbyfAU1aG9g2YeqHJgxmyhNcCNFQhcPTc_GS7gl_lQOwvyNQsUr4VridIg-ts8G0/w624-h302/2.png&quot; width=&quot;624&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word; text-align: center;&quot;&gt;Listener.ora&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;And if you are using TNSnames.ora file for validating the hostname and port number then search for the entry which has the same name as your SID and then check for host and port number entry in that particular tag.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieguleGlW4p3m3_NGWPnKewUN_u3OIUywpiWCdqiF94KkTrbil3g6R6SxghuKc3_S_zTCBLqjYM_AcCCnTWFwMDFzPKY-d7tsVHoN2apXBBs8ezV16kNKW4tjwyMwjvE5kQviW4GAWPrM/s798/3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;499&quot; data-original-width=&quot;798&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieguleGlW4p3m3_NGWPnKewUN_u3OIUywpiWCdqiF94KkTrbil3g6R6SxghuKc3_S_zTCBLqjYM_AcCCnTWFwMDFzPKY-d7tsVHoN2apXBBs8ezV16kNKW4tjwyMwjvE5kQviW4GAWPrM/w597-h374/3.png&quot; width=&quot;597&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;TNSnames.ora&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;Now try connecting. If this solves your problem then you can avoid the next step. But if “The network adapter could not establish the connection” error is still there, then don’t worry just follow the next step.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #111111; font-family: Roboto, sans-serif; font-size: 27px; font-weight: 400; line-height: 38px; margin: 30px 0px 20px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Step 2: Is your listener taking a rest?&lt;/strong&gt;&lt;/h2&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;If your problem is still there and you haven’t gotten rid of that nasty error then there is a possibility that your Listener is not running. To check whether Listener is up and running or not, simply open up your command prompt with Administrative privileges and Write&amp;nbsp;&lt;/p&gt;&lt;p class=&quot;has-background has-luminous-vivid-amber-background-color&quot; style=&quot;background-color: #fcb900; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word; padding: 1.25em 2.375em;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;C:\&amp;gt; lsnrctl status&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;This command will show you the status of your listener. If the output of this command looks like the one shown in the picture below then it clearly means your listener is not running thus next what you have to do is to start the listener.&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoTjS50nAmxpVWcp3KVNXbd-2FQ1DqyciUnZ-odzITElEASwFz6npYh3rQOnkzefjHx4Kqqq5lJ6E9tyCBdPO-l1ACCwNHWnOYeU7Z1YXZqKxxvtAh723GbU2OYxesAdbkcV1ticugEy8/s764/4.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;461&quot; data-original-width=&quot;764&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoTjS50nAmxpVWcp3KVNXbd-2FQ1DqyciUnZ-odzITElEASwFz6npYh3rQOnkzefjHx4Kqqq5lJ6E9tyCBdPO-l1ACCwNHWnOYeU7Z1YXZqKxxvtAh723GbU2OYxesAdbkcV1ticugEy8/w531-h321/4.png&quot; width=&quot;531&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;To start the listener you just have to write&lt;/p&gt;&lt;p class=&quot;has-background has-luminous-vivid-amber-background-color&quot; style=&quot;background-color: #fcb900; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word; padding: 1.25em 2.375em;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;C:\&amp;gt; lsnrctl start.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word;&quot;&gt;This will start your listener and most probably solve your problem.&lt;/p&gt;&lt;p class=&quot;has-background has-text-align-center has-very-light-gray-background-color&quot; style=&quot;background-color: #eeeeee; box-sizing: border-box; color: #222222; font-family: Verdana, Geneva, sans-serif; font-size: 15px; margin-bottom: 26px; margin-top: 0px; overflow-wrap: break-word; padding: 1.25em 2.375em; text-align: center;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Info Byte:&lt;/em&gt;&lt;/strong&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/em&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;In case you are hav ing problems in starting your listener then try starting “OracleOraDb11g_home1TNSListener” windows service. For that open your Run Command and write services.msc this will open your service panel. Here search for the same and right click to start it.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;Special thanks to Mr. Manish Sharma&amp;nbsp;http://www.rebellionrider.com/&amp;nbsp; for above information.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/9113292857491480805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2021/06/the-network-adapter-could-not-establish.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/9113292857491480805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/9113292857491480805'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2021/06/the-network-adapter-could-not-establish.html' title='Oracle Network Adapter Could Not Establish The Connection Error'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3o1HRE13_0NboLs78tMyo8rZfTSZEEgBEU6KAeT7MUEBTu6BTw_lPNZqNBYLU9Ur2zl_revSzs16y31Wv1pg3ZXTUWqAoKn3P47LwDdLiad09rVn1oDqBTvl7iSuhjLmr0_3eoRxeRyI/s72-w582-h322-c/the-network-adapter-could-not-establish-the-connection-1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-9057201525039991742</id><published>2021-06-17T01:15:00.004-07:00</published><updated>2021-06-17T01:15:47.327-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle change password"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle create user"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle username passowrd"/><title type='text'>Forget oracle database username or password</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #274e13; font-size: medium;&quot;&gt;Forget oracle database username or password&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #274e13; font-size: medium;&quot;&gt;Recover oracle database username and password&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Step-1: open sqlplus.&lt;/p&gt;&lt;p&gt;Step-2: type- connect / as sysdba&amp;nbsp; &amp;nbsp;and password will be blank so just enter.&lt;/p&gt;&lt;p&gt;Step-3: Now you can see SQL&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Step-4: To get all user type following query-&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;SQL&amp;gt; select username,password from dba_users;&lt;/p&gt;&lt;p&gt;now find the user which you have created from the shown list&amp;nbsp;and reset password by following query-&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;SQL&amp;gt; alter user username identified by password;&lt;/p&gt;&lt;p&gt;Here username is the user for which you want to reset the password.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Create new user-&lt;/p&gt;&lt;p&gt;Step-1: open sqlplus.&lt;/p&gt;&lt;p&gt;Step-2: type- connect / as sysdba&amp;nbsp; &amp;nbsp;and password will be blank so just enter.&lt;/p&gt;&lt;p&gt;Step-3: Now you can see SQL&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Step-4 :To create new user type following query-&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;create user NewUserName identified by password&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;note:&lt;/b&gt; if you get &quot;create user invalid common user or role name&quot; error then just change the session by type following query-&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;alter session set &quot;_ORACLE_SCRIPT&quot;=true;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;and try again to create user by step-4.&lt;/p&gt;&lt;p&gt;Step-5: Grant Previlage to oracle user (With DBA power)-&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;GRANT CONNECT, RESOURCE, DBA TO NewUserName;&lt;/p&gt;&lt;p&gt;To grant all role to user-&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;GRANT ALL PRIVILEGES TO NewUserName;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/9057201525039991742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2021/06/forget-oracle-database-username-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/9057201525039991742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/9057201525039991742'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2021/06/forget-oracle-database-username-or.html' title='Forget oracle database username or password'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-7238994127843534947</id><published>2020-07-22T06:21:00.003-07:00</published><updated>2020-07-22T06:21:44.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel VBA"/><category scheme="http://www.blogger.com/atom/ns#" term="save saparate sheet"/><title type='text'>Export And Save Each Worksheet As Separate </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: #090101; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 25px; line-height: 34px; margin: 0px 0px 20px; text-rendering: auto; text-transform: capitalize;&quot;&gt;
Export And Save Each Worksheet As Separate New Workbook In Excel&lt;/h2&gt;
&lt;br style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;br style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;Open Visual basic editor by pressing Alt+F11&lt;/span&gt;&lt;br style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;On project window at left side =&amp;gt; right click on project =&amp;gt; insert=&amp;gt;Module.&lt;/span&gt;&lt;br style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot; /&gt;&lt;span style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;&quot;&gt;now paste below code.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Option Explicit&lt;br /&gt;
&lt;br /&gt;
Sub SaveShtsAsBook()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Dim Sheet As Worksheet, SheetName$, MyFilePath$, N&amp;amp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MyFilePath$ = ActiveWorkbook.Path &amp;amp; &quot;\&quot; &amp;amp; _&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Left(ThisWorkbook.Name, Len(ThisWorkbook.Name) - 4)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; With Application&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ScreenUpdating = False&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .DisplayAlerts = False&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;&amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; On Error Resume Next &#39;&amp;lt;&amp;lt; a folder exists&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MkDir MyFilePath &#39;&amp;lt;&amp;lt; create a folder&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For N = 1 To Sheets.Count&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sheets(N).Activate&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SheetName = ActiveSheet.Name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cells.Copy&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Workbooks.Add (xlWBATWorksheet)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With ActiveWorkbook&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With .ActiveSheet&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Paste&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Name = SheetName&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [A1].Select&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;save book in this folder&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .SaveAs Filename:=MyFilePath _&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; &quot;\&quot; &amp;amp; SheetName &amp;amp; &quot;.xls&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Close SaveChanges:=True&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .CutCopyMode = False&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End With&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Sheet1.Activate&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/7238994127843534947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2020/07/export-and-save-each-worksheet-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7238994127843534947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7238994127843534947'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2020/07/export-and-save-each-worksheet-as.html' title='Export And Save Each Worksheet As Separate '/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-5029393374520404197</id><published>2020-04-26T14:10:00.002-07:00</published><updated>2020-04-26T14:10:48.314-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Install tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="run tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="set catalina_home"/><category scheme="http://www.blogger.com/atom/ns#" term="set environment variable"/><category scheme="http://www.blogger.com/atom/ns#" term="set environment variable using command"/><category scheme="http://www.blogger.com/atom/ns#" term="set java_home"/><category scheme="http://www.blogger.com/atom/ns#" term="set jre_home"/><title type='text'>Set CATALINA_HOME, JRE_HOME, JAVA_HOME in environment variable using command line</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;To set&amp;nbsp;CATALINA_HOME, JRE_HOME, JAVA_HOME in environment variable&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;To run apache tomcat server this is a basic requirement-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;1- Open command Prompt=&amp;gt; Run as administrator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;2- Now type below command one by one.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;setx JAVA_HOME -m &quot;Java/JDK_Installation_Directory_Path&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;setx &lt;/span&gt;&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;JRE_HOME -m &quot;Java/JRE_Installation_Directory_Path&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;setx CATALINA_HOME -m &quot;Tomcat_Directory_Path/bin&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;3-Now restart system.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #003377; font-family: monospace;&quot;&gt;&lt;span style=&quot;background-color: #f9fbff; font-size: 14px; white-space: pre;&quot;&gt;4- To verify environment variable run following command one by one-&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;echo %JAVA_HOME%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;echo %JRE_HOME%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;echo %CATALINA_HOME%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Now run tomcat.(in case of installer)&lt;br /&gt;
or&lt;br /&gt;
In case of tomcat downloaded folder-&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;1- Open command Prompt=&amp;gt; Run as administrator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;2- Go to tomcat directory/bin folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;3- execute/run startup.bat&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;4- you will get a separate window which shows tomcat status.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;Its ready to play.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9fbff; color: #003377; font-family: monospace; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/5029393374520404197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/set-catalinahome-jrehome-javahome-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5029393374520404197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5029393374520404197'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/set-catalinahome-jrehome-javahome-in.html' title='Set CATALINA_HOME, JRE_HOME, JAVA_HOME in environment variable using command line'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-6459303737006089413</id><published>2020-04-26T11:08:00.004-07:00</published><updated>2020-04-26T14:43:28.762-07:00</updated><title type='text'>Various error during maven configuration with java spring</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Q1- During project Creation or Maven Update or if Pom.xml showing any error or dependecy jar not loading then-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Solution:&amp;nbsp; &lt;/span&gt;Go to User Profile Foler =&amp;gt;.m2=&amp;gt;delete .lastupate.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
if you unable to find User Profile folder then follow below steps-&lt;/div&gt;
1-Open folder by running this text (without Quotes) in Search Explorer of Window “%USERPROFILE%.m2”.&lt;br /&gt;
2-After running above command, “m2” folder of maven will open. Now search for file (without Quotes) “*.lastUpdated”.&lt;br /&gt;
3-In this step, delete all the files found by running Step 2.&lt;br /&gt;
4-Now go to Eclipse project and select “Maven | Update Dependency” or “Maven | Update Project”&lt;br /&gt;
5-If you still facing error then close eclipse and delete .m2 folder and try again.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
-----------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Q2-&amp;nbsp;Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;ArtifactTransferException: Could not transfer artifact&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;How to create settings.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Solution:&lt;/span&gt; Create settings.xml file in User Profile Foler =&amp;gt;.m2 folder.&amp;nbsp; ( if you are unable to fine user profile folder then see Q1 (above).&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
To create settings.xml file-&amp;gt; open notepad-&amp;gt; paste below code-&amp;gt; save as-&amp;gt; File Name- settings.xml. Save As Type- All and Save.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;lt;settings xmlns=&quot;http://maven.apache.org/SETTINGS/1.0.0&quot;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;br /&gt;
xsi:schemaLocation=&quot;http://maven.apache.org/SETTINGS/1.0.0&lt;br /&gt;
https://maven.apache.org/xsd/settings-1.0.0.xsd&quot;&amp;gt;&lt;br /&gt;
&amp;lt;localRepository&amp;gt;${user.home}/.m2/repository&amp;lt;/localRepository&amp;gt;&lt;br /&gt;
&amp;lt;interactiveMode&amp;gt;true&amp;lt;/interactiveMode&amp;gt;&lt;br /&gt;
&amp;lt;offline&amp;gt;false&amp;lt;/offline&amp;gt;&lt;br /&gt;
&amp;lt;/settings&amp;gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
---------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Q3- tomcat:deploy: “Cannot invoke Tomcat manager: Connection refused”&lt;br /&gt;
Solution: Before deploying of project make sure following-&lt;br /&gt;
For tomcat7 or tomcat 8 do the following-&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;1- Project- pom.xml&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;plugin&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.apache.tomcat.maven&amp;lt;/groupId&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;tomcat7-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;2.2&amp;lt;/version&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;url&amp;gt;http://localhost:8080/manager/text&amp;lt;/url&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;path&amp;gt;/projectName&amp;lt;/path&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;username&amp;gt;tomcat&amp;lt;/username&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;password&amp;gt;tomcat&amp;lt;/password&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;br /&gt;
&amp;lt;/plugin&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;b&gt;2- TomcatDirectory\conf\ tomcat-users.xml: &lt;/b&gt;Add below line in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;tomcat-users&gt; section&lt;/tomcat-users&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;lang-xml prettyprint prettyprinted&quot; style=&quot;border-radius: 3px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px 8px; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;&amp;lt;role rolename=&quot;manager-gui&quot;/&amp;gt;
  &amp;lt;role rolename=&quot;manager-status&quot;/&amp;gt;
  &amp;lt;role rolename=&quot;manager-script&quot;/&amp;gt;
  &amp;lt;role rolename=&quot;manager-jmx&quot;/&amp;gt;
  &amp;lt;user username=&quot;tomcat&quot; password=&quot;tomcat&quot; roles=&quot;manger-gui,manager-status,manager-script,manager-jmx&quot;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
it will show like this-&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QgZ_HdBd0rL6jiOXENbE0DFItWH6jgH9PHm5jvMZPN6M0jFs5RAqUJvA3GGhnI1K4ypiuKcSlO0g1HlFhBozx-66n2CmgXYwPu64J4_2zDNgEkn4f5Dqwta1VQi5eI7NcGCohneh7vo/s1600/tomcat+user.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;244&quot; data-original-width=&quot;1278&quot; height=&quot;121&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QgZ_HdBd0rL6jiOXENbE0DFItWH6jgH9PHm5jvMZPN6M0jFs5RAqUJvA3GGhnI1K4ypiuKcSlO0g1HlFhBozx-66n2CmgXYwPu64J4_2zDNgEkn4f5Dqwta1VQi5eI7NcGCohneh7vo/s640/tomcat+user.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Now run project and deploy it&amp;nbsp;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px;&quot;&gt;(Right Click on project=&amp;gt;Run as=&amp;gt;Run Configuration)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Gole:- clean install&amp;nbsp;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;tomcat7:deploy&amp;nbsp; &amp;nbsp;(For first time deployment) and for next time use&amp;nbsp;&lt;/span&gt;clean install&amp;nbsp;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;tomcat7:redeploy&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Profile:-Leave Blank&lt;/div&gt;
&lt;div&gt;
Gole:-Default or path (if you have created settings.xml)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvEyftbA5ObtJIWLdzp2iVdBfb2QqHvaiWPWYAFOpOPBzKUWF33L6lVti8V-BzhpcDIMGGVPHTU6X-1oUW8KZhw-vr_iShD5AWpCIpc2vUIoGjSXvaf3gkoQVGDz8751jd8_m_xOja8o/s1600/deploy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;636&quot; data-original-width=&quot;790&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBvEyftbA5ObtJIWLdzp2iVdBfb2QqHvaiWPWYAFOpOPBzKUWF33L6lVti8V-BzhpcDIMGGVPHTU6X-1oUW8KZhw-vr_iShD5AWpCIpc2vUIoGjSXvaf3gkoQVGDz8751jd8_m_xOja8o/s400/deploy.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/6459303737006089413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/various-error-during-maven.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/6459303737006089413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/6459303737006089413'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/various-error-during-maven.html' title='Various error during maven configuration with java spring'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QgZ_HdBd0rL6jiOXENbE0DFItWH6jgH9PHm5jvMZPN6M0jFs5RAqUJvA3GGhnI1K4ypiuKcSlO0g1HlFhBozx-66n2CmgXYwPu64J4_2zDNgEkn4f5Dqwta1VQi5eI7NcGCohneh7vo/s72-c/tomcat+user.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-4867105686381876577</id><published>2020-04-26T05:40:00.002-07:00</published><updated>2020-04-26T14:12:06.235-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Create Maven project"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Maven"/><category scheme="http://www.blogger.com/atom/ns#" term="maven and tomcat configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="run maven on tomcat"/><title type='text'>Create a maven project and Deloy maven project with tomcat</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;In this tutorial we learn-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;1- How to create Maven based Java web project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;2- How to deploy/run project with tomcat server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;First make sure your eclipse have installed maven plugin. if not then your&lt;span style=&quot;letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;need to install&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.eclipse.org/m2e/&quot; style=&quot;background-position: 0px 0px; box-sizing: inherit; color: #dd7700; letter-spacing: 0.09px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot; target=&quot;_blank&quot;&gt;m2e-eclipse&lt;/a&gt;&lt;span style=&quot;letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;plugin in order to have this simple utility in&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://crunchify.com/category/eclipse/&quot; style=&quot;background-position: 0px 0px; box-sizing: inherit; color: #dd7700; letter-spacing: 0.09px; text-decoration-line: none; transition: all 0.1s ease-in-out 0s;&quot; target=&quot;_blank&quot;&gt;Eclipse&lt;/a&gt;&lt;span style=&quot;letter-spacing: 0.09px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px; line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; letter-spacing: 0.09px;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;You can follow below link&amp;nbsp;to install Maven plugin in eclipse-&lt;a href=&quot;https://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation&quot; style=&quot;color: #dd7700; letter-spacing: 0.09px; text-decoration-line: none;&quot;&gt;https://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation&lt;/a&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;1&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;open sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Create Maven Project in STS ( Spring Tool Suite ).&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;1-Click File —&amp;gt; New —&amp;gt; Others menu, select Maven Project in the popup wizard dialog.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;eclipse file new others maven project wizard dialog&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJmOZOnZEVATVOOFK6n7QyO3wmQvLRZumm6pl6cujZmJKwF0cwYGoomXFZctMvOXfXizUmvmHhFpzVNN4UjGP7AcrdzdOYwtKI3QqnKCaQwtbXJgDMmGDd0-pyOCTrEiiiqntOWEynYg/s1600/eclipse-file-new-others-maven-project-wizard-dialog.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;500&quot; data-original-width=&quot;527&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJmOZOnZEVATVOOFK6n7QyO3wmQvLRZumm6pl6cujZmJKwF0cwYGoomXFZctMvOXfXizUmvmHhFpzVNN4UjGP7AcrdzdOYwtKI3QqnKCaQwtbXJgDMmGDd0-pyOCTrEiiiqntOWEynYg/s400/eclipse-file-new-others-maven-project-wizard-dialog.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;2-Click Next button, check Create a simple project checkbox in the next dialog.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUkLLKCLMIBEzd8R8pWlHdTGRxN1dfil5ad7CXDtyL8EQsBUDTlBlnCdlPcVNV6EkofIvwT4MINuD0cBngYHb3uXHBm0_xMZGDq6G8IuJZZB1brL0KOeGx40wYllLNA4tCh4vwrZCRmuw/s1600/new-maven-project-check-create-a-simple-project-new.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;541&quot; data-original-width=&quot;612&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUkLLKCLMIBEzd8R8pWlHdTGRxN1dfil5ad7CXDtyL8EQsBUDTlBlnCdlPcVNV6EkofIvwT4MINuD0cBngYHb3uXHBm0_xMZGDq6G8IuJZZB1brL0KOeGx40wYllLNA4tCh4vwrZCRmuw/s400/new-maven-project-check-create-a-simple-project-new.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;3-Input the spring project group id, artifact id and select packaging type with war in the next dialog.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBbZsV6_N3xBjq2Lnz58-ll0QSctGLVV_c3U-D1nkD0DgdT5-G6koMYa8hmMsWEL7hiQPQoYiR4ndzbYQgEXOmiHeOXXmPmcoZZn9sIqwewI9XzF-IGa824AHQNyCZKdAoRi1eGoJxWZA/s1600/input-maven-group-id-artifact-id-packaging-type-new.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;524&quot; data-original-width=&quot;713&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBbZsV6_N3xBjq2Lnz58-ll0QSctGLVV_c3U-D1nkD0DgdT5-G6koMYa8hmMsWEL7hiQPQoYiR4ndzbYQgEXOmiHeOXXmPmcoZZn9sIqwewI9XzF-IGa824AHQNyCZKdAoRi1eGoJxWZA/s400/input-maven-group-id-artifact-id-packaging-type-new.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;4-Click Finish button to complete the wizard. In the left package explorer panel, you can see the project just created, the project name is just the artifact id.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyXUF4zcxBVDlXoAVkyMcyJteGNizxx8yuKRFdzvmcOg6AW4zDVZyqDxY5_5FW193B5YEXu8fCgyHxudTpB90PzBsPd3U-5empeZmtWJbZnkTIG7VzqGro3A9ZX1WfHORm-jqzmxKRj68/s1600/eclipe-maven-project-name-is-artifact-id.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;161&quot; data-original-width=&quot;236&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyXUF4zcxBVDlXoAVkyMcyJteGNizxx8yuKRFdzvmcOg6AW4zDVZyqDxY5_5FW193B5YEXu8fCgyHxudTpB90PzBsPd3U-5empeZmtWJbZnkTIG7VzqGro3A9ZX1WfHORm-jqzmxKRj68/s320/eclipe-maven-project-name-is-artifact-id.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;5-There is an error in the pom.xml, the error message is “web.xml is missing and &lt;failonmissingwebxml&gt; is set to true“, so copy below xml code into pom.xml between project xml tag.&lt;/failonmissingwebxml&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;lt;build&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;finalName&amp;gt;Deploy maven project to tomcat example&amp;lt;/finalName&amp;gt;&lt;br /&gt;
&lt;pre&gt;       &amp;lt;plugins&amp;gt;
          &amp;lt;plugin&amp;gt;
             &amp;lt;artifactId&amp;gt;maven-war-plugin&amp;lt;/artifactId&amp;gt;
             &amp;lt;version&amp;gt;2.3&amp;lt;/version&amp;gt;
             &amp;lt;configuration&amp;gt;
               &amp;lt;failOnMissingWebXml&amp;gt;false&amp;lt;/failOnMissingWebXml&amp;gt;
             &amp;lt;/configuration&amp;gt;
          &amp;lt;/plugin&amp;gt;
       &amp;lt;/plugins&amp;gt;
&amp;lt;/build&amp;gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;6-Now right click the project name in left package explorer panel, click Maven —&amp;gt; Update Project menu item, then all the project error will disappear.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGUrTCZwlsTWEI2g7Aa8XBDP4wzQRCYLapIpvHg0djCBqgTJ1pffCDQlkXgMgxZgXA2_MAYjhPuWz76WDgUYPhc5BGTr15-lkzMH3brgPt9eQgb-NOQtUmkiI2tricd7-oajlzrAo5VPg/s1600/sts-click-porject-name-maven-update-project-menu.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;820&quot; data-original-width=&quot;583&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGUrTCZwlsTWEI2g7Aa8XBDP4wzQRCYLapIpvHg0djCBqgTJ1pffCDQlkXgMgxZgXA2_MAYjhPuWz76WDgUYPhc5BGTr15-lkzMH3brgPt9eQgb-NOQtUmkiI2tricd7-oajlzrAo5VPg/s400/sts-click-porject-name-maven-update-project-menu.jpg&quot; width=&quot;283&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: orange; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;2. Deploy Maven Project To Tomcat.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;First make sure following-&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;1- Tomcat is installed or have downloadd Tomcat Folder.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;2-CATALINA_HOME (tomcat), JRE_HOME (jre) or JAVA_HOME (java) set in system environment veriable. (how to set environment veriable-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://hemantmenaria.blogspot.com/search/label/set%20catalina_home&quot;&gt;http://hemantmenaria.blogspot.com/search/label/set%20catalina_home&lt;/a&gt;&lt;span style=&quot;color: #eeeeee; font-family: verdana, sans-serif; font-size: 14.85px;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;3- Need to start tomcat.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;1-Before we can deploy eclipse maven project to tomcat, we need to add below user role in TOMCAT_HOME/conf/tomcat-users.xml file (Under &amp;lt;tomcat-users &amp;gt; section) as below, otherwise there will throw an unauthorized error during the maven project deploy process. Then we should restart tomcat server.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;When deploy war to tomcat in maven plugin, the role should be manager-scrip.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;code&gt;&amp;lt;!-- tomcat role is used to deploy maven project to tomcat in eclipse scripts.--&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;lt;user username=&quot;tomcat&quot; password=&quot;tomcat&quot; roles=&quot;manager-script&quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;!-- admin role is used to login tomcat manager GUI. --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;lt;user username=&quot;admin&quot; password=&quot;admin&quot; roles=&quot;manager-gui&quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;2-Then add below xml in the pom.xml plugins section.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;lt;plugin&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.tomcat.maven&amp;lt;/groupId&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;tomcat7-maven-plugin&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;2.2&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;url&amp;gt;http://localhost:8080/manager/text&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;path&amp;gt;/DeployMavenToTomcat&amp;lt;/path&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- Set update to true to avoid exist war package can not be override error --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;update&amp;gt;true&amp;lt;/update&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- Because deploy this maven project using plugin in pom so use the manager-script role user. --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;username&amp;gt;tomcat&amp;lt;/username&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;password&amp;gt;tomcat&amp;lt;/password&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;&amp;lt;/plugin&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.85px;&quot;&gt;3-Right click the maven project, click Run As —&amp;gt; Run Configurations menu item.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-ltnBs8no_ti5EXVV1eDgAOBBX3ds4DwYccp9I38U2VSOk6XOgWxVcNINAL-V40E9nEmj8p93vSJxpdDaZyDhns-XyoHm5DE0PPL4ETgo530Ezagckrzl6fKlE_sV5Q4G5V6CtjYXVVk/s1600/maven-project-run-as-run-configuration-clean-install-tomcat7-deploy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;652&quot; data-original-width=&quot;598&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-ltnBs8no_ti5EXVV1eDgAOBBX3ds4DwYccp9I38U2VSOk6XOgWxVcNINAL-V40E9nEmj8p93vSJxpdDaZyDhns-XyoHm5DE0PPL4ETgo530Ezagckrzl6fKlE_sV5Q4G5V6CtjYXVVk/s400/maven-project-run-as-run-configuration-clean-install-tomcat7-deploy.jpg&quot; width=&quot;366&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;4-Input clean install tomcat7:deploy in the Goals input text box.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF0xKnp8vKhm7fvoLO5lRYRlVX1OIhD_MYxXvpG_9wpGFZADiHYtRRDI9prHjhSe-CSCIDUKbBRPSAEN6zipgk2sSpS59eutuHnZkGwfVgDqMNMfJLSRq7W4DmQ4GfSaerRyCTafj7_Yw/s1600/maven-project-run-as-goals-clean-install-tomcat7-deploy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;634&quot; data-original-width=&quot;799&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF0xKnp8vKhm7fvoLO5lRYRlVX1OIhD_MYxXvpG_9wpGFZADiHYtRRDI9prHjhSe-CSCIDUKbBRPSAEN6zipgk2sSpS59eutuHnZkGwfVgDqMNMfJLSRq7W4DmQ4GfSaerRyCTafj7_Yw/s320/maven-project-run-as-goals-clean-install-tomcat7-deploy.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;5-Click Run button, when you see BUILD SUCCESS in the output console, that means the maven project has been deployed to tomcat server successfully.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;6-Open a web browser, and input http://localhost:8080/manager/html, input admin / admin in the popup prompt. After you login, you can see DeployMavenToTomcat application in the application list&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBR8OpDId9JWI0T0MH-zKj0MixbnHHRJEawjCE8VWnF3-dQBQmW2Dw-65Em7p8doPVu9e5_o2Bzm4hxdGcqDSOY1wW8AVz2ZtLMzqm7QZBsWbMxtF8zhxR-YtU7hU6RWhRPxvKod-JsoA/s1600/tomcat-manager-after-deploy-maven-project.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;532&quot; data-original-width=&quot;606&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBR8OpDId9JWI0T0MH-zKj0MixbnHHRJEawjCE8VWnF3-dQBQmW2Dw-65Em7p8doPVu9e5_o2Bzm4hxdGcqDSOY1wW8AVz2ZtLMzqm7QZBsWbMxtF8zhxR-YtU7hU6RWhRPxvKod-JsoA/s320/tomcat-manager-after-deploy-maven-project.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.85px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/4867105686381876577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/create-maven-project-and-deloy-maven.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/4867105686381876577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/4867105686381876577'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/create-maven-project-and-deloy-maven.html' title='Create a maven project and Deloy maven project with tomcat'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJmOZOnZEVATVOOFK6n7QyO3wmQvLRZumm6pl6cujZmJKwF0cwYGoomXFZctMvOXfXizUmvmHhFpzVNN4UjGP7AcrdzdOYwtKI3QqnKCaQwtbXJgDMmGDd0-pyOCTrEiiiqntOWEynYg/s72-c/eclipse-file-new-others-maven-project-wizard-dialog.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-1845843315087314375</id><published>2020-04-25T08:13:00.002-07:00</published><updated>2020-04-26T05:19:15.506-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Convert Java project to maven"/><category scheme="http://www.blogger.com/atom/ns#" term="Create Pom.xml in java"/><category scheme="http://www.blogger.com/atom/ns#" term="Maven dependency"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Maven"/><title type='text'>Convert existing Java project to Maven </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h4 style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;Convert existing Java or Spring project into Maven based Project-&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #f9cb9c; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Steps you need to follow-&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;1- Make sure your eclipse have installed maven plugin. if not then your&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;need to install&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.eclipse.org/m2e/&quot; style=&quot;background-position: 0px 0px; box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; transition: all 0.1s ease-in-out 0s;&quot; target=&quot;_blank&quot;&gt;m2e-eclipse&lt;/a&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;plugin in order to have this simple utility in&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://crunchify.com/category/eclipse/&quot; style=&quot;background-position: 0px 0px; box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; transition: all 0.1s ease-in-out 0s;&quot; target=&quot;_blank&quot;&gt;Eclipse&lt;/a&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-weight: normal; letter-spacing: 0.09px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;You can follow below link&lt;/span&gt;&amp;nbsp;to install Maven plugin in eclipse-&lt;/span&gt;&lt;a href=&quot;https://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation&quot; style=&quot;letter-spacing: 0.09px;&quot;&gt;https://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation&lt;/a&gt;&lt;span style=&quot;letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;
&lt;span style=&quot;color: #eeeeee;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;2- Now&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;In your eclipse just&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 2px; border: 1px solid rgb(223, 223, 223); box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; margin: 0px 2px; padding: 2px 5px; position: relative; top: -1px;&quot;&gt;right click on Java Project&lt;/code&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;and click&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 2px; border: 1px solid rgb(223, 223, 223); box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; margin: 0px 2px; padding: 2px 5px; position: relative; top: -1px;&quot;&gt;Configure&lt;/code&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&amp;nbsp;and you should see “&lt;/span&gt;&lt;code style=&quot;border-radius: 2px; border: 1px solid rgb(223, 223, 223); box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; margin: 0px 2px; padding: 2px 5px; position: relative; top: -1px;&quot;&gt;Convert to Maven Project&lt;/code&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;” option&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCK-Pl45PPZ7ryq9vyVWXUw1zHPwEcuy_SYqtMu_S-ALQ85FeSqlmrBUU6O0jixIENWt5IYoA7M0XD0kilO3DzNtFcZdPA44vO9sGRyTF_bgBmDW6UbMNXSrOKmy4lus2jgCnUOihfTww/s1600/Convert-Project-to-Maven-Project-in-Eclipse.png&quot; imageanchor=&quot;1&quot; style=&quot;font-weight: normal; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;144&quot; data-original-width=&quot;768&quot; height=&quot;75&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCK-Pl45PPZ7ryq9vyVWXUw1zHPwEcuy_SYqtMu_S-ALQ85FeSqlmrBUU6O0jixIENWt5IYoA7M0XD0kilO3DzNtFcZdPA44vO9sGRyTF_bgBmDW6UbMNXSrOKmy4lus2jgCnUOihfTww/s400/Convert-Project-to-Maven-Project-in-Eclipse.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;3- You will see dialogue like this below. Just enter“&lt;/span&gt;&lt;code style=&quot;border-radius: 2px; border: 1px solid rgb(223, 223, 223); box-sizing: inherit; font-weight: normal; letter-spacing: 0.09px; margin: 0px 2px; padding: 2px 5px; position: relative; top: -1px;&quot;&gt;Name&lt;/code&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;” and you should be all set.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigosB8ocTz-ODptHyobsuSXdECb-ab-SPu9i2PB_pWeTeqLopa-gFMvm89hI5mgn4YeRxHkZRrFiHfzT4M6GyJtBtqZKn5XiPUC8uMuAsWa6754ZijGW94_XNsJ-Z7wkPw1Bfn8dPuc7Y/s1600/Maven-Project-Provide-GroupID-and-Artifact-IDTips.png&quot; imageanchor=&quot;1&quot; style=&quot;font-weight: normal; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;606&quot; data-original-width=&quot;768&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigosB8ocTz-ODptHyobsuSXdECb-ab-SPu9i2PB_pWeTeqLopa-gFMvm89hI5mgn4YeRxHkZRrFiHfzT4M6GyJtBtqZKn5XiPUC8uMuAsWa6754ZijGW94_XNsJ-Z7wkPw1Bfn8dPuc7Y/s320/Maven-Project-Provide-GroupID-and-Artifact-IDTips.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;4- Now you can see a new file pom.xml in your project-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;A Project Object Model or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;POM&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;is the fundamental unit of work in Maven. It is an&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;XML&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;file that contains information about the project and configuration details used by Maven to build the project. It also manages all the jar dependency required by your project.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRS4TpC6JwN4bPhwKTzSVMo8-8f8ShRTHp_iJFFMTPPIqI7vfW_WeKFxvpmn7fuPQD29J4SEQkl7R_G_OmX6qkmHVVSLzSV_AMyszP8Nf-SpS88jykP969fGdtQgSGR8NKxRC-5-wUmUg/s1600/pom+example.png&quot; imageanchor=&quot;1&quot; style=&quot;font-weight: normal; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;736&quot; data-original-width=&quot;603&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRS4TpC6JwN4bPhwKTzSVMo8-8f8ShRTHp_iJFFMTPPIqI7vfW_WeKFxvpmn7fuPQD29J4SEQkl7R_G_OmX6qkmHVVSLzSV_AMyszP8Nf-SpS88jykP969fGdtQgSGR8NKxRC-5-wUmUg/s400/pom+example.png&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;5- Next, make the list of all dependency jar which you have configured in Java Build Path and add&amp;nbsp; all jar dependency into pom.xml file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; letter-spacing: 0.09px;&quot;&gt;6-To get maven jar dependency, go to&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://mvnrepository.com/&quot; style=&quot;font-weight: normal;&quot;&gt;https://mvnrepository.com/&lt;/a&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp; (Maven website). Here search all jar one by one and select version.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;7- Now copy the code mentioned in Maven tab (maven dependency code) and paste it into pom.xml under dependencies section as shown below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVV9zGq1ZagdV2CG-er5nzh_jYWgZ6nL63ydr0jQ79YSqIVXELxzbKgte_7aD6Rx47rCGw_vY3la_SrDCLBtE2rLB79V5WDOtOqVhU18-Xpv0FHXSwoL427w-kGd5Q2-LFlqflEzOEk-4/s1600/maven+dependecy.png&quot; imageanchor=&quot;1&quot; style=&quot;font-weight: normal; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;798&quot; data-original-width=&quot;712&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVV9zGq1ZagdV2CG-er5nzh_jYWgZ6nL63ydr0jQ79YSqIVXELxzbKgte_7aD6Rx47rCGw_vY3la_SrDCLBtE2rLB79V5WDOtOqVhU18-Xpv0FHXSwoL427w-kGd5Q2-LFlqflEzOEk-4/s400/maven+dependecy.png&quot; width=&quot;356&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;8- One by one paste all the jar dependency in pom.xml.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;9- All done, project has been converted into maven based project.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;note : if you are getting any error in pom.xml then you need to update your maven. (&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Right click on project=&amp;gt; click on Maven=&amp;gt; Update Project;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;Make sure &quot;Force Updateof Snapshots/Releases&quot; is checked.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;--------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #20124d; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #f6b26b; font-weight: normal;&quot;&gt;Now How to compile and run the maven based project?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Step-1. Right click on project=&amp;gt; click on Maven=&amp;gt; Update Maven.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;Make sure &quot;Force Update of Snapshots/Releases&quot; is checked during project Update.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;(if done then skip it.)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-weight: normal;&quot;&gt;Step-2 After updating Right click on project=&amp;gt; click on Run As=&amp;gt; Maven Install (Shown Below)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI9PTQF_72jY7afku-Y98-pD6zG0QH5jWWOYlIVT1k2Zl9NZqqexqm7Ikx7vUM6CHF44OLb2-E9WN-33EWO3DCYHM43UQJO5hYgnqJtxO6b2-hj5OGUGz7RW80ZZJxWni6iwOx9uWFmqY/s1600/run+as+maven.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;618&quot; data-original-width=&quot;692&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI9PTQF_72jY7afku-Y98-pD6zG0QH5jWWOYlIVT1k2Zl9NZqqexqm7Ikx7vUM6CHF44OLb2-E9WN-33EWO3DCYHM43UQJO5hYgnqJtxO6b2-hj5OGUGz7RW80ZZJxWni6iwOx9uWFmqY/s400/run+as+maven.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #eeeeee; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;and done :)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Check on the console. if you get any compilation error like Build Failer (&quot;no compiler is provided in this environment perhaps you are running on a jre&quot;)&lt;/span&gt;&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;. then=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Right Click on project=&amp;gt; Build Patah =&amp;gt; Configure Build Path=&amp;gt;Select Library Tab=&amp;gt; Double Click on JRE System Library=&amp;gt;Now select Workspace default JRE option =&amp;gt;Finish &amp;amp; Apply.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Step-3 If you have faced any error in step-2 then again try to build by Right click on project=&amp;gt;Click on Run As=&amp;gt; Maven Clean and check console for a successful build.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Note:- During above steps if you still getting error or any issue or want to try all step again then first you need to delete .m2/repository from your eclipse working directory. (c:/user/username/.m2). Just close eclipse and delete .m2 folder and try again.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: orange; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;In case of any issue, you can watch below video-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/wH8zINHIHNs/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/wH8zINHIHNs?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;color: #eeeeee; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/1845843315087314375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/convert-existing-java-or-spring-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1845843315087314375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1845843315087314375'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2020/04/convert-existing-java-or-spring-project.html' title='Convert existing Java project to Maven '/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCK-Pl45PPZ7ryq9vyVWXUw1zHPwEcuy_SYqtMu_S-ALQ85FeSqlmrBUU6O0jixIENWt5IYoA7M0XD0kilO3DzNtFcZdPA44vO9sGRyTF_bgBmDW6UbMNXSrOKmy4lus2jgCnUOihfTww/s72-c/Convert-Project-to-Maven-Project-in-Eclipse.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-7998895163010469973</id><published>2017-12-07T01:11:00.002-08:00</published><updated>2020-07-22T04:42:16.006-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="generate multiple excel sheet"/><category scheme="http://www.blogger.com/atom/ns#" term="macro code for split column data"/><category scheme="http://www.blogger.com/atom/ns#" term="split excel data to multiple sheet"/><title type='text'> Excel split data into multiple worksheets based on column</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;Here VBA Code to split data into multiple worksheets based on selected column&lt;br /&gt;
&lt;br /&gt;
If
 you have an excel sheet and want to split the data into individual 
multiple sheet based on column valued then the below code is best for 
you. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open Visual basic editor by pressing Alt+F11&lt;br /&gt;
On project window at left side =&amp;gt; right click on project =&amp;gt; insert=&amp;gt;Module.&lt;br /&gt;
now paste below code. read comments and set your parameter.&lt;br /&gt;
&lt;br /&gt;
Sub parse_data()&lt;br /&gt;
Dim lr As Long&lt;br /&gt;
Dim ws As Worksheet&lt;br /&gt;
Dim vcol, i As Integer&lt;br /&gt;
Dim icol As Long&lt;br /&gt;
Dim myarr As Variant&lt;br /&gt;
Dim title As String&lt;br /&gt;
Dim titlerow As Integer&lt;br /&gt;
vcol = 7&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;&#39;&#39;name of column on which basis you want to create saprate sheet&lt;/span&gt;&lt;br /&gt;
Set ws = Sheets(&quot;finalsheet&quot;)&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt; &#39;&#39;name of your master sheet which need to compile&lt;/span&gt;&lt;br /&gt;
lr = ws.Cells(ws.Rows.Count, vcol).End(xlUp).Row&lt;br /&gt;
title = &quot;A1:V1&quot;&amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;&#39;&#39;range of column which need to transfer into each individual sheet&lt;/span&gt;&lt;br /&gt;
titlerow = ws.Range(title).Cells(1).Row&lt;br /&gt;
icol = ws.Columns.Count&lt;br /&gt;
ws.Cells(1, icol) = &quot;Unique&quot;&lt;br /&gt;
For i = 2 To lr&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
If ws.Cells(i, vcol) &amp;lt;&amp;gt; &quot;&quot; And Application.WorksheetFunction.Match(ws.Cells(i, vcol), ws.Columns(icol), 0) = 0 Then&lt;br /&gt;
ws.Cells(ws.Rows.Count, icol).End(xlUp).Offset(1) = ws.Cells(i, vcol)&lt;br /&gt;
End If&lt;br /&gt;
Next&lt;br /&gt;
myarr = Application.WorksheetFunction.Transpose(ws.Columns(icol).SpecialCells(xlCellTypeConstants))&lt;br /&gt;
ws.Columns(icol).Clear&lt;br /&gt;
For i = 2 To UBound(myarr)&lt;br /&gt;
ws.Range(title).AutoFilter field:=vcol, Criteria1:=myarr(i) &amp;amp; &quot;&quot;&lt;br /&gt;
If Not Evaluate(&quot;=ISREF(&#39;&quot; &amp;amp; myarr(i) &amp;amp; &quot;&#39;!A1)&quot;) Then&lt;br /&gt;
Sheets.Add(after:=Worksheets(Worksheets.Count)).Name = myarr(i) &amp;amp; &quot;&quot;&lt;br /&gt;
Else&lt;br /&gt;
Sheets(myarr(i) &amp;amp; &quot;&quot;).Move after:=Worksheets(Worksheets.Count)&lt;br /&gt;
End If&lt;br /&gt;
ws.Range(&quot;A&quot; &amp;amp; titlerow &amp;amp; &quot;:A&quot; &amp;amp; lr).EntireRow.Copy Sheets(myarr(i) &amp;amp; &quot;&quot;).Range(&quot;A1&quot;)&lt;br /&gt;
Sheets(myarr(i) &amp;amp; &quot;&quot;).Columns.AutoFit&lt;br /&gt;
Next&lt;br /&gt;
ws.AutoFilterMode = False&lt;br /&gt;
ws.Activate&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=========================&lt;br /&gt;
now its time to run your code by pressing F5.&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/7998895163010469973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2017/12/excel-split-data-into-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7998895163010469973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7998895163010469973'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2017/12/excel-split-data-into-multiple.html' title=' Excel split data into multiple worksheets based on column'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-909178200144234274</id><published>2017-07-26T05:53:00.001-07:00</published><updated>2017-07-31T23:29:26.767-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ClickJacking attacks"/><category scheme="http://www.blogger.com/atom/ns#" term="set x-frame option in meta"/><category scheme="http://www.blogger.com/atom/ns#" term="set x-frame-options"/><category scheme="http://www.blogger.com/atom/ns#" term="X Frame Options"/><category scheme="http://www.blogger.com/atom/ns#" term="x-frame-option  in php"/><category scheme="http://www.blogger.com/atom/ns#" term="x-frame-options iframe"/><title type='text'>X-Frame-Options Header Not Set  &#39;ClickJacking&#39; attacks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;X-Frame-Options header is included in the HTTP response to protect against &#39;ClickJacking&#39; attacks.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The X-Frame-Options header is used to indicate whether or not a website/browser should be allowed to open a page in frame or iframe.This will prevent website content embedded into other websites. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;It &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;protect against &#39;ClickJacking&#39; attacks&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;There are three options for X-Frame-Options:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;SAMEORIGIN: &lt;/b&gt;This option will allow page to be displayed in frame on the same origin, means you can render the same website page into iframe/frame.&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;DENY:&lt;/b&gt; This option will prevent a page displaying in a frame or iframe, means no one website can render website page in frame/iframe.&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;ALLOW-FROM uri: &lt;/b&gt;This Option will allow page to be displayed only on the specified origin.if you want to allow render the page of website for a particular website then you can use this option. &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Syntax:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;IN HTML Page:- Type below code in head section:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot;codeblock language-php&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;head&gt;&lt;/head&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;http-equiv&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;X-FRAME-OPTIONS&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;DENY&quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;pre class=&quot;codeblock language-php&quot;&gt;&lt;code class=&quot; language-php&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;codeblock language-php&quot;&gt;&lt;code class=&quot; language-php&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;IN PHP Page:-&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp;========================================================&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
You can use any web developer tool to view Response headers and ensure you see&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjV1_cuSqURHyvdgx5gsbaQkA0u-DEXL-9_AGta2xf3U5cgXQGMLDLAhFokUxj8g23sxBgShQ-mnY3iv_cHk37LxCXF1hfkpTn1ehli2ncMkzQydyf_1k9mRS9ocvjkJBuyJ-AdpHCJbU/s1600/ss.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;268&quot; data-original-width=&quot;514&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjV1_cuSqURHyvdgx5gsbaQkA0u-DEXL-9_AGta2xf3U5cgXQGMLDLAhFokUxj8g23sxBgShQ-mnY3iv_cHk37LxCXF1hfkpTn1ehli2ncMkzQydyf_1k9mRS9ocvjkJBuyJ-AdpHCJbU/s320/ss.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;

&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;======================================================&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Configuring Apache HOw to Check X-Frame-Option of a web page:&lt;/b&gt;&lt;br /&gt;To configure Apache to send the X-Frame-Options for all pages, add below setting to your site as required:&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Header always append X-Frame-Options SAMEORIGIN&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Header set X-Frame-Options DENY&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;Header set X-Frame-Options &quot;ALLOW-FROM https://example.com/&quot;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;======================================================&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/909178200144234274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2017/07/x-frame-options-header-not-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/909178200144234274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/909178200144234274'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2017/07/x-frame-options-header-not-set.html' title='X-Frame-Options Header Not Set  &#39;ClickJacking&#39; attacks'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjV1_cuSqURHyvdgx5gsbaQkA0u-DEXL-9_AGta2xf3U5cgXQGMLDLAhFokUxj8g23sxBgShQ-mnY3iv_cHk37LxCXF1hfkpTn1ehli2ncMkzQydyf_1k9mRS9ocvjkJBuyJ-AdpHCJbU/s72-c/ss.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-954906282950922320</id><published>2017-07-19T08:37:00.001-07:00</published><updated>2017-07-19T08:39:46.515-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="append date with dabase backup"/><category scheme="http://www.blogger.com/atom/ns#" term="cpanel autometic dabase backup"/><category scheme="http://www.blogger.com/atom/ns#" term="Cpanel cron job"/><category scheme="http://www.blogger.com/atom/ns#" term="cron job mysql backup"/><category scheme="http://www.blogger.com/atom/ns#" term="database backup crone job"/><title type='text'>Cpanel Cron job for mysql datbase backup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;Cron Job: C&lt;/b&gt;ron Job is a time base task which will execute on a fixed time or interval (repeat after a time).&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;How to create a cron job in cpanel to take database backup.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Now Follow the Steps:&lt;/b&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 1-&lt;/b&gt; First of all Create a file on your computer system and paste below code into file&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[client]&lt;/div&gt;
&lt;div&gt;
user = yourCpanelUserName&lt;/div&gt;
&lt;div&gt;
password = &quot;yourCpanelPassword&quot;&lt;/div&gt;
&lt;div&gt;
host = localhost&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
save above file with .my.cnf and upload it to your server directory (like /home/Your_Domain_Directory/)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp;Step 2- &lt;/b&gt;Create a folder for backup with name of &amp;nbsp;&lt;b&gt;db_backup&lt;/b&gt; on server at same place ( /home/Your_Domain_Directory/)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 3-&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
1 -Go to Cpanel main page&lt;/div&gt;
&lt;div&gt;
2- Click on Cron Job&lt;/div&gt;
&lt;div&gt;
3- Enter email for notification regarding cron job.&lt;/div&gt;
&lt;div&gt;
4- Select Job Setting &amp;nbsp;means frequency of your task /job execution.&lt;/div&gt;
&lt;div&gt;
5- Paste below line in command text box:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
mysqldump --all-databases &amp;nbsp;&amp;gt; /home/Your_Domain_Directory/&lt;b&gt;db_backup&lt;/b&gt;/All_DB_Backup_$(date +&#39;\%d-\%m-\%Y&#39;).sql&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The above code will generate backup for your all databases in /home/Your_Domain_Directory/&lt;b&gt;db_backup &lt;/b&gt;directory with the name of &quot;All_DB_Backup_TodayDate&quot;. &amp;nbsp;so if you set daily backup policy then it will create a backup file with current date without overriding the same file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
if you want to take backup of a particular database then at the place of --all-database you can write the name of the particular database.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 4 -&amp;nbsp;&lt;/b&gt;Finally click on Add Crone Job button to save it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 5 - &lt;/b&gt;Go to the folder /home/Your_Domain_Directory/&lt;b&gt;db_backup &amp;nbsp;&lt;/b&gt;to check your datbase backup.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/954906282950922320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2017/07/cpanel-cron-job-for-mysql-datbase-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/954906282950922320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/954906282950922320'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2017/07/cpanel-cron-job-for-mysql-datbase-backup.html' title='Cpanel Cron job for mysql datbase backup'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-5157358615027255071</id><published>2017-06-27T07:23:00.001-07:00</published><updated>2017-06-27T07:23:14.586-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="access mysql remotely"/><category scheme="http://www.blogger.com/atom/ns#" term="access xampp on local network"/><category scheme="http://www.blogger.com/atom/ns#" term="localhost on another computer"/><category scheme="http://www.blogger.com/atom/ns#" term="xampp.conf access permission"/><title type='text'>httpd-xampp.conf: How to allow access to an external IP or another computer IP to mysql</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Access Xampp mysql from another computer:-&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Open your xampp folder go to =&amp;gt;apache=&amp;gt;conf=&amp;gt;extra=&amp;gt;httpd-xampp.conf&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;copy below cod and past it into httpd-xampp.conf file&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
// How to allow a particular IP to access&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;
&lt;locationmatch i:=&quot;&quot; licenses=&quot;&quot; phpmyadmin=&quot;&quot; security=&quot;&quot; server-info=&quot;&quot; server-status=&quot;&quot; webalizer=&quot;&quot; xampp=&quot;&quot;&gt;
    Require local
    Require ip 10.0.0.1
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
&lt;/locationmatch&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;=====================&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;b&gt;&lt;u&gt;Note&lt;/u&gt;: &lt;/b&gt;Write the remote IP at the place of 10.0.0.1&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;=======================================&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;code&gt;&lt;/code&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;// How to allow anyone to access which is not safe.&lt;/b&gt;&lt;/div&gt;
&lt;pre&gt;
&lt;code&gt;&lt;locationmatch i:=&quot;&quot; licenses=&quot;&quot; phpmyadmin=&quot;&quot; security=&quot;&quot; server-info=&quot;&quot; server-status=&quot;&quot; webalizer=&quot;&quot; xampp=&quot;&quot;&gt;
    # Require local
    Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
&lt;/locationmatch&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/5157358615027255071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2017/06/httpd-xamppconf-how-to-allow-access-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5157358615027255071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/5157358615027255071'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2017/06/httpd-xamppconf-how-to-allow-access-to.html' title='httpd-xampp.conf: How to allow access to an external IP or another computer IP to mysql'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-2900162593185431610</id><published>2015-12-03T02:23:00.000-08:00</published><updated>2015-12-03T02:27:35.368-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="execute php script from java"/><category scheme="http://www.blogger.com/atom/ns#" term="java to php call"/><category scheme="http://www.blogger.com/atom/ns#" term="post data from java to php"/><title type='text'>Send data from Java to PHP via Post</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Here an interface between a Java and a PHP application, through we can&amp;nbsp; transfer data between the two applications. Using below java code we can generate a POST request to transfer data from JAVA to PHP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // open a connection to the site where script written&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; URL url = new URL(&quot;http://www.domainname.com/yourphppage.php&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; URLConnection con = url.openConnection();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // activate the output&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; con.setDoOutput(true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PrintStream ps = new PrintStream(con.getOutputStream());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // send your parameters to your site&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ps.print(&quot;firstKey=firstValue&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ps.print(&quot;&amp;amp;secondKey=secondValue&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // we have to get the input stream in order to actually send the request&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; con.getInputStream();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // close the print stream&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ps.close();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (MalformedURLException e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (IOException e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; We can use more complex data like array to send multiple parameters and values and In your PHP script, you can get the values like this:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; foreach ($_POST as $key =&amp;gt; $value) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; switch ($key) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case &#39;firstKey&#39;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $firstKey = $value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case &#39;secondKey&#39;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $secondKey = $value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/2900162593185431610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2015/12/send-data-from-java-to-php-via-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/2900162593185431610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/2900162593185431610'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2015/12/send-data-from-java-to-php-via-post.html' title='Send data from Java to PHP via Post'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-1202021941561572993</id><published>2014-09-09T11:28:00.001-07:00</published><updated>2014-09-09T11:28:20.064-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cpanel configure SMTP authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="Enable SMTP Authentication on cpanel"/><title type='text'>Enable SMTP Authentication on cpanel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;How do I add Email Authentication (DKIM / SPF / Text records)&lt;/h3&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;blockquote&gt;
To combat spam, or unwanted email, most ISPs (Internet Service 
Providers) and email providers (e.g. Gmail, Yahoo, Hotmail) employ 
sophisticated spam filters that are regularly updated.&amp;nbsp; Whilst this is a
 good thing, it can also mean authentic emails can incorrectly get 
marked as spam.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Email Authentication&lt;/strong&gt; is the 
effort to equip outgoing messages of the email transport system with 
enough verifiable information, so that recipients can recognize the 
nature of each incoming message automatically.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DomainKeys Identified Mail (DKIM)&lt;/strong&gt;
 lets an organization take responsibility for a message that is in 
transit.&amp;nbsp; The organization is a handler of the message, either as its 
originator or as an intermediary. Their reputation is the basis for 
evaluating whether to trust the message for further handling, such as 
delivery. Technically DKIM provides a method for validating a domain 
name identity that is associated with a message through cryptographic 
authentication. &lt;br /&gt;Further reading: &lt;a href=&quot;http://www.dkim.org/&quot; target=&quot;_blank&quot; title=&quot;&quot;&gt;http://www.dkim.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span class=&quot;em1&quot;&gt;Sender Policy Framework (SPF)&lt;/span&gt; &lt;/strong&gt;is an open standard specifying a technical method to prevent sender address forgery. More precisely,&lt;span class=&quot;wikipagelink link-wiki&quot;&gt; &lt;span class=&quot;em1&quot;&gt;SPF&lt;/span&gt;&lt;/span&gt; protects the &lt;span class=&quot;em1&quot;&gt;envelope sender address&lt;/span&gt;, which is used for the delivery of messages. &lt;br /&gt;Further reading: &lt;a href=&quot;http://www.openspf.org/&quot; target=&quot;_blank&quot; title=&quot;&quot;&gt;http://www.openspf.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;strong&gt;Whilst
 no system is foolproof, agreed standards do exist and in most 
circumstances, there is no need to change the default settings on the 
Purple Dog server. You are advised to contact us first unless you are 
certain of what you are doing.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;Records 
can be modified by logging in to you hosting account cpanel (e.g. 
www.example.com/cpanel) and navigating to email &amp;gt; email 
authentication.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;=================================&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Set up DKIM&lt;/h3&gt;
DKIM helps verify the sender and integrity of a message. It allows an
 email system to prove that a message was not altered during transit 
(meaning it is not forged), and that the message came from the specified
 domain.&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;To use DKIM, click &lt;em&gt;Enable&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;To disable DKIM, click &lt;em&gt;Disable&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;Note:&lt;/strong&gt; If a warning is displayed claiming cPanel is 
unable to verify that the server is an authoritative nameserver for the 
specified domain name and either of the following scenarios is true, 
then please ignore it.&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;The server has been changed to be the authoritative &lt;span class=&quot;twikiAnchorLink&quot;&gt;DNS&lt;/span&gt; server for the domain name, but the change has not yet propagated.&lt;/li&gt;
&lt;li&gt;The server does not view itself as the authoritative &lt;span class=&quot;twikiAnchorLink&quot;&gt;DNS&lt;/span&gt; server, but outside servers do view it as authoritative.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;

&lt;h3 style=&quot;text-align: left;&quot;&gt;
 Set up SPF&lt;/h3&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Set up SPF&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
This function attempts to prevent spammers from sending email while 
forging your domain’s name as the sender (spoofing). This authentication
 function works by adding IP addresses to a list, specifying computers 
that are authorized to send mail from your domain(s). It verifies that 
messages sent from your domain(s) are coming from the listed server, 
reducing the amount of backscatter you receive.&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;To use &lt;span class=&quot;twikiAnchorLink&quot;&gt;SPF&lt;/span&gt;, click &lt;em&gt;Enable&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;To disable SPF, click &lt;em&gt;Disable&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;Note:&lt;/strong&gt; If a warning is displayed claiming cPanel is 
unable to verify that the server is an authoritative nameserver for the 
specified domain name and either of the following scenarios is true, 
then please ignore it.&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;The server has been changed to be the authoritative &lt;span class=&quot;twikiAnchorLink&quot;&gt;DNS&lt;/span&gt; server for the domain name, but the change has not yet propagated.&lt;/li&gt;
&lt;li&gt;The server does not view itself as the authoritative &lt;span class=&quot;twikiAnchorLink&quot;&gt;DNS&lt;/span&gt; server, but outside servers do view it as authoritative.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;

&lt;h3&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Advanced Settings&quot;&gt;&lt;/a&gt; Advanced Settings&lt;/h3&gt;
This section includes a number of ways to configure &lt;span class=&quot;twikiAnchorLink&quot;&gt;SPF&lt;/span&gt; authentication. The available options are:&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Additional Hosts that send mail for your domains (A):&lt;/em&gt; The 
additional hosts specified here are automatically approved to send mail 
from your domain(s). You may add and remove hosts using the appropriate 
buttons.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Additional MX servers for your domains (MX):&lt;/em&gt; MX entries specified here are able to send mail from your domain(s).&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Additional Ip blocks for your domains (IP4):&lt;/em&gt; IP addresses 
approved to send mail from your domain(s). Your server&#39;s main IP address
 is automatically included in this list. If you add IP addresses, you 
must use &lt;span class=&quot;twikiAnchorLink&quot;&gt;CIDR&lt;/span&gt; notation. (Example: &lt;code&gt;192.168.0.1/32&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Include List (INCLUDE):&lt;/em&gt; This feature allows you to specify additional hosts to include in your &lt;span class=&quot;twikiAnchorLink&quot;&gt;SPF&lt;/span&gt; settings. This is useful when sending mail with another service.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;All Entry (ALL):&lt;/em&gt; If you select this option, the system will exclude domains not included in the lists defined above.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Overwrite Existing Entries:&lt;/em&gt; If you select this option, the system will overwrite existing &lt;span class=&quot;twikiAnchorLink&quot;&gt;SPF&lt;/span&gt; entries.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/1202021941561572993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/09/enable-smtp-authentication-on-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1202021941561572993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/1202021941561572993'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/09/enable-smtp-authentication-on-cpanel.html' title='Enable SMTP Authentication on cpanel'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-8490957099808669056</id><published>2014-09-09T11:23:00.000-07:00</published><updated>2014-09-09T11:23:18.177-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SPF error &quot;unable to verify that this server is an authoritative name&quot;"/><title type='text'>Unable to verify that this server is an authoritative name server for</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
cpanel unable to verify authoritative nameserver
    &lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;content&quot;&gt;
     &lt;div id=&quot;post_message_1537822&quot;&gt;
      &lt;blockquote class=&quot;postcontent restore &quot;&gt;
       Hello &lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://forums.cpanel.net/images/smilies/smile.gif&quot; title=&quot;Smilie&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
That message typically indicates the use of external name servers for 
the domain name associated with the account. Can you modify it&#39;s name 
servers at the registrar so it uses the cPanel server for hosting the 
DNS?&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/8490957099808669056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/09/unable-to-verify-that-this-server-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8490957099808669056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8490957099808669056'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/09/unable-to-verify-that-this-server-is.html' title='Unable to verify that this server is an authoritative name server for'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-8546363623603343106</id><published>2014-07-22T11:03:00.000-07:00</published><updated>2014-07-22T11:04:38.243-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="disable right click javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="disable right click on web page using jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="how to disable right click"/><category scheme="http://www.blogger.com/atom/ns#" term="how to disable right click on web page in php"/><category scheme="http://www.blogger.com/atom/ns#" term="java script disable right click"/><title type='text'>Disable right click option on web page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
//functions starts for the disable selection&lt;br /&gt;
&lt;br /&gt;
function disableSelection(target){&lt;br /&gt;
if (typeof target.onselectstart!=&quot;undefined&quot;) //IE route&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; target.onselectstart=function(){return false}&lt;br /&gt;
else if (typeof target.style.MozUserSelect!=&quot;undefined&quot;) //Firefox route&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; target.style.MozUserSelect=&quot;none&quot;&lt;br /&gt;
else //All other route (ie: Opera)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; target.onmousedown=function(){return false}&lt;br /&gt;
target.style.cursor = &quot;default&quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
disableSelection(document.body);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
function md(e) &lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;try { if (event.button==2||event.button==3) return false; }&amp;nbsp; &lt;br /&gt;
&amp;nbsp; catch (e) { if (e.which == 3) return false; } &lt;br /&gt;
}&lt;br /&gt;
document.oncontextmenu = function() { return false; }&lt;br /&gt;
document.ondragstart&amp;nbsp;&amp;nbsp; = function() { return false; }&lt;br /&gt;
document.onmousedown&amp;nbsp;&amp;nbsp; = md;&lt;br /&gt;
&lt;br /&gt;
//functions ends for the disable selection&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/8546363623603343106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/07/disable-right-click-option-on-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8546363623603343106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8546363623603343106'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/07/disable-right-click-option-on-web-page.html' title='Disable right click option on web page'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-177226692400552505</id><published>2014-05-12T00:36:00.001-07:00</published><updated>2014-05-12T00:36:58.749-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asynchronous  File Upload in Java Web Application using ajax"/><title type='text'> File upload in java web through ajax Asynchronous</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;pfbuttons&quot;&gt;
&lt;a class=&quot;button red big&quot; href=&quot;https://dl.dropboxusercontent.com/shz/arhvjju8pflnv2n/-YMWQCApmV/AjaxFileUpload/AjaxFileUpload?token_hash=AAHzaC744zxKemuP1WI8RAMo0TJEcoMdyciycPAVoEEb4g&amp;amp;top_level_offset=7&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
File upload process involves data to be sent from client side to server,
 in html terms this means submitting form to server side method that 
gets the file from request object and saves it to the server. Most of 
the time, it is desirable to implement file upload in ajax way without 
refreshing the whole page while updating the user on the progress.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
It is a known fact that, it is not possible to do AJAX file uploads to 
server using $.ajax or XMLHttpRequest since jquery or javascript does 
not support file uploads for security reasons. We are now left out with 
two options/workarounds, to use flash or to use hidden iframe. Flash 
depends on a plugin to be installed on the user&#39;s browser which some 
people ans companies don&#39;t allow. So, out of the two options, the best 
option is to go for hidden iframe solution. This &lt;a href=&quot;http://viralpatel.net/blogs/ajax-style-file-uploading-using-hidden-iframe/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;blog post&lt;/a&gt; contains an excellent article on how to do this with plain javascript.&lt;br /&gt;
&lt;br /&gt;
To make the job more easier, let us use this jQuery plugin called &lt;a href=&quot;https://github.com/jfeldstein/jQuery.AjaxFileUpload.js&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;jQuery.AjaxFileUpload.js&lt;/a&gt;
 which exactly implements the hidden iframe technique behind the scenes 
along with progress update and cancelling options. The logic is simple, 
instead of submitting the form to the server which would cause a 
postback, we submit the contents of the form to an iframe that is 
created dynamically and let the iframe communicate with the server, once
 the upload is complete - iframe sends the response back to the form. 
Steve explains this technique &lt;a href=&quot;http://www.alfajango.com/blog/ajax-file-uploads-with-the-iframe-method/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&amp;nbsp;in a very neat manner, so I don&#39;t want to repeat this here again.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To handle file upload in the server side, let us use Apache Commons File Upload library that makes the job very simple and easy.&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1. Download all the required scripts and libraries,&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://jquery.com/download/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;jquery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/jfeldstein/jQuery.AjaxFileUpload.js&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;jquery.AjaxFileUpload.js&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://commons.apache.org/proper/commons-fileupload/download_fileupload.cgi&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Apache Commons FileUpload&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://commons.apache.org/proper/commons-io/download_io.cgi&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;commons-io.jar&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2. Create a dynamic web project in Eclipse. Add the jar files to WEB-INF/lib directory and script files to WebContent folder.&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirppVl9XQVHaMZKd-1fXLCGUeqtfdfSRxqt2b6Sn7d1KwrQ_IuRDzTjlNHwsJH6ZodzMRyQLM4ZWqoiNH7S1-u5W3giccFK095DUzI92pAxJLUaE1y6fZ0bOftHnCXciJvo7uZcfS9OSEp/s1600/ajax_file_upload_java_2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirppVl9XQVHaMZKd-1fXLCGUeqtfdfSRxqt2b6Sn7d1KwrQ_IuRDzTjlNHwsJH6ZodzMRyQLM4ZWqoiNH7S1-u5W3giccFK095DUzI92pAxJLUaE1y6fZ0bOftHnCXciJvo7uZcfS9OSEp/s320/ajax_file_upload_java_2.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
2. Create a jsp file in WebContent and copy paste the below code,&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;syntaxhighlighter  &quot; id=&quot;highlighter_653660&quot;&gt;
&lt;div class=&quot;lines&quot;&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;01&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;02&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;pageEncoding=&quot;ISO-8859-1&quot;%&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;03&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&quot;&amp;gt;&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;04&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;html&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;05&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;head&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;06&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;meta&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;http-equiv&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;Content-Type&quot;&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;content&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;text/html; charset=ISO-8859-1&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;07&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;title&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;Asynchronous file Upload in Java Web Application&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;title&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;08&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;src&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;jquery-1.8.2.js&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;09&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;src&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;jquery.ajaxfileupload.js&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;10&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;language&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;Javascript&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;11&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;$(document).ready(function(){ &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;12&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;$(&#39;input[type=&quot;file&quot;]&#39;).ajaxfileupload({&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;13&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&#39;action&#39;: &#39;UploadFile&#39;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;14&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&#39;onComplete&#39;: function(response) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;15&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;$(&#39;#upload&#39;).hide();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;16&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;alert(&quot;File SAVED!!&quot;);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;17&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;},&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;18&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&#39;onStart&#39;: function() {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;19&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;$(&#39;#upload&#39;).show(); &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;20&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;21&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;});&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;22&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;});&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;23&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;script&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;24&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;head&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;25&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;body&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;26&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;form&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;27&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;div&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;28&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;input&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;type&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;file&quot;&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;datafile&quot;&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;/&amp;gt;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;29&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;30&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;div&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;id&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;upload&quot;&lt;/code&gt; &lt;code class=&quot;color1&quot;&gt;style&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;display:none;&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;Uploading..&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;div&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;31&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;div&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;32&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;form&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;33&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;body&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;34&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;html&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
Note that I have referenced jquery files in the head section of the 
html. The execution of script is very simple, whenever a file is 
selected using the file browse input, the script gets fired and submits 
the selected file to the servlet called &#39;UploadFile&#39;. The action 
parameter takes the servlet url which handles the file upload logic in 
the server side. The onStart and onComplete methods are fired while the 
file starts to upload and after successful completion of file upload. I 
have used these methods to show file upload progress to the user.&lt;br /&gt;
&lt;br /&gt;
3. Now let us use Apache Commons Fileupload library to handle file 
upload in the server side. Create a servlet and place the below code in 
it.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;syntaxhighlighter  &quot; id=&quot;highlighter_898191&quot;&gt;
&lt;div class=&quot;lines&quot;&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;01&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;java.io.IOException;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;02&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;javax.servlet.ServletException;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;03&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;javax.servlet.annotation.WebServlet;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;04&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;javax.servlet.http.HttpServlet;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;05&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;javax.servlet.http.HttpServletRequest;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;06&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;javax.servlet.http.HttpServletResponse;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;07&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;08&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;java.io.File;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;09&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;java.util.Iterator;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;10&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;java.util.List;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;11&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;12&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;org.apache.commons.fileupload.FileItem;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;13&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;org.apache.commons.fileupload.FileItemFactory;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;14&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;org.apache.commons.fileupload.FileUploadException;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;15&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;org.apache.commons.fileupload.disk.DiskFileItemFactory;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;16&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;import&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;org.apache.commons.fileupload.servlet.ServletFileUpload;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;17&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;preprocessor&quot;&gt;/**&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;18&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;* Servlet implementation class UploadFile&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;19&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;*/&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;20&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;color1&quot;&gt;@WebServlet&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;/UploadFile&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;21&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;UploadFile &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;HttpServlet {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;22&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;private&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;final&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;long&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;serialVersionUID = 1L;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;23&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;24&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;/**&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;25&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;* Default constructor. &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;26&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;*/&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;27&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;UploadFile() {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;28&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;// TODO Auto-generated constructor stub&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;29&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;30&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;31&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;/**&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;32&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;33&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;*/&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;34&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;protected&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;doGet(HttpServletRequest request, HttpServletResponse response) &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;ServletException, IOException {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;35&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;// TODO Auto-generated method stub&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;36&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;37&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;38&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;/**&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;39&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;40&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;preprocessor&quot;&gt;*/&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;41&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;protected&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;doPost(HttpServletRequest request, HttpServletResponse response) &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;ServletException, IOException {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;42&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;isMultipart = ServletFileUpload.isMultipartContent(request);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;43&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;44&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(isMultipart) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;45&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;// Create a factory for disk-based file items&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;46&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;FileItemFactory factory = &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;new&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;DiskFileItemFactory();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;47&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;48&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;// Create a new file upload handler&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;49&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;ServletFileUpload upload = &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;new&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;ServletFileUpload(factory);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;50&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;51&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;try&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;{&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;52&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;// Parse the request&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;53&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;List &lt;/code&gt;&lt;code class=&quot;comments&quot;&gt;/* FileItem */&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;items = upload.parseRequest(request);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;54&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;Iterator iterator = items.iterator();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;55&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;while&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(iterator.hasNext()) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;56&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;FileItem item = (FileItem) iterator.next();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;57&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(!item.isFormField()) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;58&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;String fileName = item.getName();&amp;nbsp; &lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;59&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;String root = getServletContext().getRealPath(&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;/&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;60&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;File path = &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;new&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;File(root + &lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;/uploads&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;61&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(!path.exists()) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;62&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;status = path.mkdirs();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;63&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;64&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;65&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;File uploadedFile = &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;new&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;File(path + &lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;/&quot;&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;+ fileName);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;66&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;System.out.println(uploadedFile.getAbsolutePath());&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;67&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;item.write(uploadedFile);&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;68&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;69&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;70&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;} &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;catch&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(FileUploadException e) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;71&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;e.printStackTrace();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;72&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;} &lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;catch&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;(Exception e) {&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;73&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;e.printStackTrace();&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;74&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;75&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;76&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;77&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;78&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4. Now the last step is to map the servlet to the action url we have used in index.jsp file as shown below,&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;syntaxhighlighter  &quot; id=&quot;highlighter_199827&quot;&gt;
&lt;div class=&quot;lines&quot;&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;01&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;web-app&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;02&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;display-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;AjaxFileUpload&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;display-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;03&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;04&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;UploadFile&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;05&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-class&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;com.programmingfree.fileupload&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-class&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;06&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;07&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-mapping&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;08&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;UploadFile&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-name&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;09&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;url-pattern&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;/UploadFile&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;url-pattern&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;10&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;spaces&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;servlet-mapping&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;number&quot;&gt;&lt;code&gt;11&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;keyword&quot;&gt;web-app&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
That is all! Now run the application in Tomcat server and upload a file 
to see how it gets uploaded without refreshing the whole page.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghJsECCXwZpwDpSy4gbv5Kq1wjeUDooKB36kq3FH5xA4f12phKybeZJDQN5bHlCMBt8yUNSMQT8aC9Q2Zw2avvsW3HLOT5COR1Dizoe4sXO4MhwC3kVyoqkoAvnpKTiF9qGWJaRGEqmvch/s1600/ajax_file_upload_java.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghJsECCXwZpwDpSy4gbv5Kq1wjeUDooKB36kq3FH5xA4f12phKybeZJDQN5bHlCMBt8yUNSMQT8aC9Q2Zw2avvsW3HLOT5COR1Dizoe4sXO4MhwC3kVyoqkoAvnpKTiF9qGWJaRGEqmvch/s640/ajax_file_upload_java.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the file is uploaded,&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Pl9K266ePoofWNPx_23Hqog1njpoad5fXQyMPUuJflnFSh1i10ITr11NFQqNO2lwOXoexYPAEadLehGYPnOG6ZA2018nWLfQZN-HPYWP3Oyc6iuPhAmxYAyMfGGjRnAi7hb8O8f2dAdN/s1600/ajax_file_upload_java_1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2Pl9K266ePoofWNPx_23Hqog1njpoad5fXQyMPUuJflnFSh1i10ITr11NFQqNO2lwOXoexYPAEadLehGYPnOG6ZA2018nWLfQZN-HPYWP3Oyc6iuPhAmxYAyMfGGjRnAi7hb8O8f2dAdN/s320/ajax_file_upload_java_1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/177226692400552505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/05/file-upload-in-java-web-through-ajax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/177226692400552505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/177226692400552505'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/05/file-upload-in-java-web-through-ajax.html' title=' File upload in java web through ajax Asynchronous'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirppVl9XQVHaMZKd-1fXLCGUeqtfdfSRxqt2b6Sn7d1KwrQ_IuRDzTjlNHwsJH6ZodzMRyQLM4ZWqoiNH7S1-u5W3giccFK095DUzI92pAxJLUaE1y6fZ0bOftHnCXciJvo7uZcfS9OSEp/s72-c/ajax_file_upload_java_2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-7511804131527801938</id><published>2014-01-07T21:42:00.001-08:00</published><updated>2014-07-22T11:06:34.689-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Connect two computer using cross cable"/><title type='text'>Connect two computer Using cross cable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-IN&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;HI&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;false&quot;
  DefSemiHidden=&quot;false&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;371&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footer&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of figures&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope return&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;line number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;page number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of authorities&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;macro&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;toa heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Closing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Message Header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Salutation&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Date&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Note Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Block Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Hyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;FollowedHyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Document Map&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Plain Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;E-mail Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Top of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Bottom of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal (Web)&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Acronym&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Cite&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Code&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Definition&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Keyboard&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Preformatted&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Sample&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Typewriter&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Variable&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Table&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation subject&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;No List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Contemporary&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Elegant&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Professional&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Balloon Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Theme&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; QFormat=&quot;true&quot;
   Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;41&quot; Name=&quot;Plain Table 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;42&quot; Name=&quot;Plain Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;43&quot; Name=&quot;Plain Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;44&quot; Name=&quot;Plain Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;45&quot; Name=&quot;Plain Table 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;40&quot; Name=&quot;Grid Table Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;Grid Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;Grid Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;Grid Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;List Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;List Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;List Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 6&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin-top:0cm;
 mso-para-margin-right:0cm;
 mso-para-margin-bottom:8.0pt;
 mso-para-margin-left:0cm;
 line-height:107%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-fareast-language:EN-US;
 mso-bidi-language:AR-SA;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;1:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Make sure both computers are turned off. &lt;br /&gt;
&lt;b&gt;2:&lt;/b&gt; Plug each end of the crossover cable into a network port on the back
of each computer.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;3:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Turn both computers on (it does not matter which
one you turn on first). &lt;br /&gt;
&lt;b&gt;4:&lt;/b&gt; Sign-in to Windows on both computers, as you normally do. &lt;br /&gt;
&lt;b&gt;5:&lt;/b&gt; Wait until both computers have fully loaded Windows and all startup
programs (your mouse pointer will be the normal arrow shape and the programs
that load in the system tray (usually located at the bottom right side of the
screen, to the left of the time-clock) will all be there when the system is
ready to use for configuration).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;6.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Select one of the computers to complete the rest
of the process.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;b&gt;7.&lt;/b&gt; Open The Network and Sharing Centre.
Click &quot;&lt;b&gt;Start&lt;/b&gt;,&quot; then &quot;&lt;b&gt;Control Panel&lt;/b&gt;,&quot; then
&quot;&lt;b&gt;Network and Internet&lt;/b&gt;.&quot; Lastly, click &quot;&lt;b&gt;Network and
Sharing Centre&lt;/b&gt;.&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;8.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Double click the &quot;&lt;b&gt;Unidentified Network&lt;/b&gt;&quot;
icon.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;If you have more than one network, this icon will be
identified as &quot;multiple networks.&quot; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;9.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;b&gt;In Network, &lt;/b&gt;click&lt;b&gt; the information bar&lt;/b&gt;.
Next, click on &quot;&lt;b&gt;Turn on network&lt;/b&gt; &lt;b&gt;discovery and file sharing&lt;/b&gt;.&quot;
If you are prompted for a password or confirmation, type it in or provide
confirmation.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;Note&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;: Both PC Should be on the
same network. (or you can set ip address manually like: 1st PC- 10.68.2.20, 2nd PC- 10.68.2.21. with same Subnet 255.255.255.0&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;More Watch this Video: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Y5l8eADpnB8?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-bidi-language: HI; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/7511804131527801938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/01/normal-0-false-false-false-en-in-x-none.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7511804131527801938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/7511804131527801938'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/01/normal-0-false-false-false-en-in-x-none.html' title='Connect two computer Using cross cable'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-3759854237416688501</id><published>2014-01-07T21:19:00.000-08:00</published><updated>2014-01-07T21:21:51.587-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Download a pdf excel text  etc...file in jsp."/><category scheme="http://www.blogger.com/atom/ns#" term="download doc using jsp"/><title type='text'>Download a file in jsp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--downloadFile.jsp--&gt;&lt;br /&gt;
&amp;lt;%@ page import=&quot;java.util.*,java.io.*&quot;%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; File f = new File (&quot;filePahtNeedToDownload&quot;); //read&amp;nbsp; file name.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* set&amp;nbsp; content type ( word,excel,pdf,txt..etc) here we try for a pdf file */&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; response.setContentType (&quot;application/pdf&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //setting&amp;nbsp; header and the Name by which user will save the file.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader (&quot;Content-Disposition&quot;, &quot;attachment; filename=\&quot;DownloadfileName.pdf\&quot;&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //retrive file name&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String name = f.getName().substring(f.getName().lastIndexOf(&quot;/&quot;) + 1,f.getName().length());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream in = new FileInputStream(f);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ServletOutputStream outs = response.getOutputStream();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int bit = 256;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while ((bit) &amp;gt;= 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bit = in.read();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outs.write(bit);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (IOException ioe) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ioe.printStackTrace(System.out);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outs.flush();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outs.close();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; in.close();&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
%&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/3759854237416688501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2012/11/download-file-in-jsp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/3759854237416688501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/3759854237416688501'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2012/11/download-file-in-jsp.html' title='Download a file in jsp'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-4678756490348060992</id><published>2014-01-07T21:18:00.000-08:00</published><updated>2014-01-07T21:18:07.649-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Remove Shortcut Virus from Pen drive or Memory Card"/><title type='text'>Remove Shortcut Virus from Pen drive or Memory Card</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong&gt;Open command prompt and type this command.&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Note: here &quot;g:&quot; is drive on which you want to perform operation, so at the place of &quot;g&quot; write your drive label. &lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;attrib -h -r -s /s /d g:\*.*&lt;/strong&gt;&lt;/h4&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/4678756490348060992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2014/01/remove-shortcut-virus-from-pen-drive-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/4678756490348060992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/4678756490348060992'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2014/01/remove-shortcut-virus-from-pen-drive-or.html' title='Remove Shortcut Virus from Pen drive or Memory Card'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-8947507884314802909</id><published>2013-07-19T03:24:00.001-07:00</published><updated>2013-07-19T03:25:24.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse “Failed to load JNI shared library”"/><title type='text'>Eclipse “Failed to load JNI shared library”</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div id=&quot;question-header&quot;&gt;
&lt;h2 itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&lt;/h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;Problem&lt;/b&gt;: &lt;/span&gt;&lt;/span&gt;When I try opening &lt;a href=&quot;http://www.eclipse.org/&quot;&gt;Eclipse&lt;/a&gt;, a pop-up dialog states:&lt;br /&gt;
&lt;blockquote&gt;
Failed to load the JNI shared library &quot;C:/JDK/bin/client/jvm.dll&quot;`.&lt;/blockquote&gt;
Following this, Eclipse force closes.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;votecell&quot;&gt;&lt;/td&gt;
            


&lt;td class=&quot;answercell&quot;&gt;&lt;div class=&quot;post-text&quot;&gt;
&lt;h3&gt;
Working pairings of OS, JDK and Eclipse:&lt;/h3&gt;
&lt;hr /&gt;
&lt;ul&gt;
&lt;li&gt;32-bit OS - 32-bit JDK - 32-bit Eclipse (32-bit only)&lt;/li&gt;
&lt;li&gt;64-bit OS - 32-bit JDK - 32-bit Eclipse &lt;/li&gt;
&lt;li&gt;64-bit OS -  64-bit JDK - 64bit Eclipse (64-bit only)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
I had several JDKs and JREs installed.&lt;br /&gt;
Each of them had their own entry in the PATH variable, all was working more or less.&lt;br /&gt;
Judging from the PATH variables, some installations were completely 
useless, since they were never used. Of course, the &quot;inactive&quot; Javas 
could be referenced manually from within Eclipse if I needed, but I 
never did that, so I really did not need them. (At least I thought so at
 that time...)&lt;br /&gt;
I cleaned up the mess, deinstalled all current Java&#39;s, installed only JDK + JRE 1.7 64-bit. &lt;br /&gt;
One of the Eclipse &#39;installations&#39; failed afterwards with the &lt;code&gt;Failed to Load the JNI shared Library&lt;/code&gt; and a given path relative to the fresh installed JDK where it thought the &lt;code&gt;jvm.dll&lt;/code&gt; to be.&lt;br /&gt;
&lt;i&gt;&lt;b&gt;The failing Eclipse was the only one of all my IDEs that was still a 32-bit version on my otherwise all-64-bit setup.&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
Adding VM arguments, like so often mentioned, in the &lt;code&gt;eclipse.ini&lt;/code&gt; was no use in my case (because I had only the wrong JDK/JRE to relate to.)&lt;br /&gt;
I was also unable to find out how to check if this Eclipse was a 32-bit or 64-bit version (I could not look it up in the &lt;a href=&quot;http://en.wikipedia.org/wiki/Windows_Task_Manager&quot;&gt;Task Manager&lt;/a&gt;,
 since this Eclipse &#39;installation&#39; would not start up. And since it had 
been a while since I had set it up, I could not remember its version 
either.)&lt;br /&gt;
In case you use a newer JDK and a older &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_Virtual_Machine#Execution_environment&quot;&gt;JRE&lt;/a&gt; you might be in for trouble, too, but then it is more likely a &lt;code&gt;java.lang.UnsupportedClassVersionError&lt;/code&gt; appears, &lt;a href=&quot;http://en.wiktionary.org/wiki/IIRC&quot;&gt;IIRC&lt;/a&gt;.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h2 itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;h2 itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/8947507884314802909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2013/07/eclipse-failed-to-load-jni-shared.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8947507884314802909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8947507884314802909'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2013/07/eclipse-failed-to-load-jni-shared.html' title='Eclipse “Failed to load JNI shared library”'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-3627227084898928259</id><published>2013-04-10T05:51:00.002-07:00</published><updated>2013-07-31T22:40:42.639-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="send an email by Java application using Gmail/ Yahoo/ Hotmail"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3 itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
// &lt;a class=&quot;question-hyperlink&quot; href=&quot;http://stackoverflow.com/questions/46663/how-to-send-an-email-by-java-application-using-gmail-yahoo-hotmail&quot;&gt;How to send an email by Java application using Gmail/ Yahoo/ Hotmail&lt;/a&gt;&lt;/h3&gt;
&lt;br /&gt;
import java.util.Properties;&lt;br /&gt;
import javax.mail.Message;&lt;br /&gt;
import javax.mail.MessagingException;&lt;br /&gt;
import javax.mail.Session;&lt;br /&gt;
import javax.mail.Transport;&lt;br /&gt;
import javax.mail.internet.InternetAddress;&lt;br /&gt;
import javax.mail.internet.MimeMessage;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class sendmail {&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String host = &quot;smtp.gmail.com&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String from = &quot;from@gmail.com&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String pass = &quot; njkgyddddshqd &quot;;&amp;nbsp; //if you are getting any error related to authentication use application specific password here.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Properties props = System.getProperties();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.starttls.enable&quot;, &quot;true&quot;); // added this line&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.host&quot;, host);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.user&quot;, from);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.password&quot;, pass);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.port&quot;, &quot;587&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; props.put(&quot;mail.smtp.auth&quot;, true);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String[] to = {&quot;to@gmail.com&quot;}; // added this line&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Session session = Session.getDefaultInstance(props, null);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MimeMessage message = new MimeMessage(session);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; message.setFrom(new InternetAddress(from));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InternetAddress[] toAddress = new InternetAddress[to.length];&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // To get the array of addresses&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for( int i=0; i &amp;lt; to.length; i++ ) { // changed from a while loop&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toAddress[i] = new InternetAddress(to[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(Message.RecipientType.TO);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for( int i=0; i &amp;lt; toAddress.length; i++) { // changed from a while loop&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message.addRecipient(Message.RecipientType.TO, toAddress[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; message.setSubject(&quot;sending in a group&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; message.setText(&quot;Welcome to JavaMail&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Transport transport = session.getTransport(&quot;smtp&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; transport.connect(host, from, pass);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; transport.sendMessage(message, message.getAllRecipients());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; transport.close();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }catch (MessagingException mex) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mex.printStackTrace();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/*********************************************/&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
if you are getting any type of error then read below carefully&lt;/h4&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: orange;&quot;&gt;My client isn&#39;t accepting my username and password&lt;/span&gt;&lt;/h4&gt;
&lt;div class=&quot;main-section--answer main-section content-container&quot;&gt;
We
 suggest making some adjustments in your mail client&#39;s settings so you 
aren&#39;t always prompted to enter your username and password. Please check
 the following settings in your mail client:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Make sure that you&#39;ve entered your full email address (e.g. username@gmail.com)&lt;/li&gt;
&lt;li&gt;Re-enter your password to ensure that it&#39;s correct. Keep in mind that passwords are case-sensitive.&lt;/li&gt;
&lt;li&gt;Make sure your mail client isn&#39;t set to check for new mail too 
often. If your mail client checks for new messages more than once every 
10 minutes, your client might repeatedly request your username and 
password.&lt;/li&gt;
&lt;/ul&gt;
Now, please follow the steps below to resolve the problem:
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Open your web browser and sign in to Gmail at &lt;a href=&quot;http://mail.google.com/mail&quot;&gt;http://mail.google.com/mail&lt;/a&gt;. If you see a word verification request, type the letters in the distorted picture and finish signing in.&lt;/li&gt;
&lt;li&gt;Close your browser and try accessing your messages in your email client again.&lt;/li&gt;
&lt;li&gt;If you&#39;re still having problems, visit &lt;a href=&quot;http://www.google.com/accounts/DisplayUnlockCaptcha&quot; target=&quot;_blank&quot;&gt;http://www.google.com/accounts/DisplayUnlockCaptcha&lt;/a&gt; and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Continue&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Restart your mail client and try accessing messages in your email client again. &amp;nbsp; &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;Note: use that application specific password at the place of original password of sender password&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
read more on : &lt;a href=&quot;http://support.google.com/mail/answer/14257&quot;&gt;http://support.google.com/mail/answer/14257&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/3627227084898928259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2013/04/how-to-send-email-by-java-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/3627227084898928259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/3627227084898928259'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2013/04/how-to-send-email-by-java-application.html' title=''/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6441819049554082232.post-8595684251144209175</id><published>2012-11-03T01:51:00.001-07:00</published><updated>2013-04-04T23:45:44.780-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Send HTML mail with images"/><title type='text'>How to embed images in HTML mail using JavaMail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/* How to embed images in HTML mail using JavaMail */&lt;br /&gt;// Create message&lt;br /&gt;&lt;br /&gt;Message message = new MimeMessage(session);&lt;br /&gt;message.setFrom(new InternetAddress(from));&lt;br /&gt;message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));&lt;br /&gt;message.setSubject(subject);&lt;br /&gt;&lt;br /&gt;// Add html content&lt;br /&gt;// Specify the cid of the image to include in the email&lt;br /&gt;&lt;br /&gt;String html = &quot;&lt;html&gt;&lt;body&gt;&lt;b&gt;Test&lt;/b&gt; email &lt;img src=&quot;cid:my-image-id&quot; /&gt;&lt;/body&gt;&lt;/html&gt;&quot;;&lt;br /&gt;Multipart mp = new MimeMultipart();&lt;br /&gt;MimeBodyPart htmlPart = new MimeBodyPart();&lt;br /&gt;htmlPart.setContent(html, &quot;text/html&quot;);&lt;br /&gt;mp.addBodyPart(htmlPart);&lt;br /&gt;&lt;br /&gt;// add image in another part&lt;br /&gt;&lt;br /&gt;MimeBodyPart imagePart = new MimeBodyPart();&lt;br /&gt;DataSource fds = new FileDataSource(imagePath);&lt;br /&gt;imagePart.setDataHandler(new DataHandler(fds));&lt;br /&gt;// assign a cid to the image&lt;br /&gt;imagePart.setHeader(&quot;Content-ID&quot;, &quot;my-image-id&quot;);&lt;br /&gt;mp.addBodyPart(imagePart);&lt;br /&gt;&lt;br /&gt;message.setContent(mp);&lt;br /&gt;&lt;br /&gt;// Send the message&lt;br /&gt;&lt;br /&gt;Transport.send(message);&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hemantmenaria.blogspot.com/feeds/8595684251144209175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hemantmenaria.blogspot.com/2012/11/how-to-embed-images-in-html-mail-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8595684251144209175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6441819049554082232/posts/default/8595684251144209175'/><link rel='alternate' type='text/html' href='http://hemantmenaria.blogspot.com/2012/11/how-to-embed-images-in-html-mail-using.html' title='How to embed images in HTML mail using JavaMail'/><author><name>Programing Solution</name><uri>http://www.blogger.com/profile/09310872784707130717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauLtdIVd-AkFUlZGZyMP-zRfG0D1hvKcoDeg0N7gY2PE4zhIVR7HYZuXPM2RoP3fFf9TjKUKVhxKHDXkvqphN7-6cFhkUFXRjk432vI2vx1R2pSn8vE-r7fij2vtqLg/s220/mypic.jpg'/></author><thr:total>0</thr:total></entry></feed>