<?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-1879839730027925249</id><updated>2024-08-30T06:11:01.151-07:00</updated><category term="Core Java"/><category term="Struts2"/><category term="Servlets"/><title type='text'>Konda Reddy</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-1624759336414989690</id><published>2015-03-20T06:56:00.001-07:00</published><updated>2015-03-20T06:58:16.534-07:00</updated><title type='text'>Struts2 File Upload</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.File&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.ArrayList&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.xml.parsers.ParserConfigurationException&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.io.FilenameUtils&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.xml.sax.SAXException&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.opensymphony.xwork2.ActionSupport&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;UploadAction&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;extends&lt;/span&gt; ActionSupport&lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

 
 
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; File upload&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; String uploadContentType&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; String uploadFileName&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; questionCount&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 
 
 
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getQuestionCount&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; questionCount&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;setQuestionCount&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;int&lt;/span&gt; questionCount&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;questionCount&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; questionCount&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;UploadAction&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(){&lt;/span&gt;
  
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;

 
 
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;getUploadFileName&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;

   &lt;span style=&quot;color: #888888;&quot;&gt;// filePath = servletRequest.getRealPath(&quot;/&quot;);&lt;/span&gt;
   String fileNameWithOutExt &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; FilenameUtils
     &lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;removeExtension&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;uploadFileName&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
   System&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file to create...........&quot;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;+&lt;/span&gt; fileNameWithOutExt&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; SUCCESS&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @return the upload&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; File &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getUpload&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; upload&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @param upload the upload to set&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;setUpload&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;File upload&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;upload&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; upload&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @return the uploadContentType&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getUploadContentType&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; uploadContentType&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @param uploadContentType the uploadContentType to set&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;setUploadContentType&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String uploadContentType&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;uploadContentType&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; uploadContentType&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @return the uploadFileName&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;getUploadFileName&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; uploadFileName&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #888888;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  * @param uploadFileName the uploadFileName to set&lt;/span&gt;
&lt;span style=&quot;color: #888888;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;setUploadFileName&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;String uploadFileName&lt;span style=&quot;color: #333333;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;uploadFileName&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; uploadFileName&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
 
 
 
 

&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
upload.jsp&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
in the upload.jsp the form method should be post and enctype=&quot;multipart/form-data&quot;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;&amp;lt;%@&lt;/span&gt; taglib prefix&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;s&quot;&lt;/span&gt; uri&lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/struts-tags&quot;&lt;/span&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;%&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
input[type=&quot;radio&quot;] {
 margin-top: -1px;
 vertical-align: middle;
}
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Struts 2 radio button example&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;s:form&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;action=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;resultAction&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;namespace=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;enctype=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;multipart/form-data&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;theme=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;simple&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;method=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;POST&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;

  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;h4&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;s:file&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;upload&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;upload1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/s:file&amp;gt;&lt;/span&gt;
   
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/h4&amp;gt;&lt;/span&gt;

  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;s:submit&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;submit&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;submit&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/s:form&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;
struts.xml

&lt;action name=&quot;resultAction&quot; class=&quot;com.zensar.ticketTracker.actions.UploadAction&quot;&gt;
   &lt;result name=&quot;success&quot;&gt;exam/result.jsp&lt;/result&gt;
  &lt;/action&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/1624759336414989690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2015/03/struts2-file-upload.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1624759336414989690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1624759336414989690'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2015/03/struts2-file-upload.html' title='Struts2 File Upload'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-4419023766198799973</id><published>2014-12-05T17:51:00.000-08:00</published><updated>2014-12-05T17:52:31.956-08:00</updated><title type='text'>Hibernate Pojo Annotations</title><content type='html'>&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;petrol&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #888888&quot;&gt;// Generated Mar 8, 2014 3:29:01 AM by Hibernate Tools 3.4.0.CR1&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;java.util.Date&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;java.util.HashSet&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;java.util.Set&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.Entity&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.FetchType&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.GeneratedValue&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;static&lt;/span&gt; javax&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;persistence&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;GenerationType&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;IDENTITY&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.Id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.JoinColumn&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.ManyToOne&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.OneToMany&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.Table&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.Temporal&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;javax.persistence.TemporalType&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #888888&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; * Bills generated by hbm2java&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Entity&lt;/span&gt;
&lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Table&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;bills&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; catalog &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;pt&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;Bills&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;implements&lt;/span&gt; java&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;io&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;Serializable&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Integer id&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Customers customers&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Integer vehicleId&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Date billDate&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Date createdAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Date updatedAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Set&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;BillItems&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; billItemses &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; HashSet&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;BillItems&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Bills&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Bills&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billNo&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;type&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;Bills&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Customers customers&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Integer vehicleId&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;
   Date billDate&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Date createdAt&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; Date updatedAt&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt;
   Set&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;BillItems&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; billItemses&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;customers&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; customers&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billNo&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;vehicleId&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; vehicleId&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billDate&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billDate&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;type&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;createdAt&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; createdAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;updatedAt&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; updatedAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billItemses&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billItemses&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Id&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@GeneratedValue&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;strategy &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; IDENTITY&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; unique &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; nullable &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Integer &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Integer id&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@ManyToOne&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;fetch &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; FetchType&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;EAGER&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@JoinColumn&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;customer_id&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Customers &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getCustomers&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;customers&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setCustomers&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Customers customers&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;customers&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; customers&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;bill_no&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; nullable &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getBillNo&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billNo&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setBillNo&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billNo&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billNo&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;vehicle_id&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Integer &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getVehicleId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;vehicleId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setVehicleId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Integer vehicleId&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;vehicleId&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; vehicleId&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Temporal&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;TemporalType&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;DATE&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;bill_date&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; length &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Date &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getBillDate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billDate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setBillDate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Date billDate&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billDate&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billDate&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;type&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; nullable &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getType&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setType&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;int&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;type&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; type&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Temporal&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;TemporalType&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;TIMESTAMP&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;created_at&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; length &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Date &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getCreatedAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;createdAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setCreatedAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Date createdAt&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;createdAt&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; createdAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Temporal&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;TemporalType&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;TIMESTAMP&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Column&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;updated_at&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; length &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;19&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Date &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getUpdatedAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;updatedAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setUpdatedAt&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Date updatedAt&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;updatedAt&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; updatedAt&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@OneToMany&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;fetch &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; FetchType&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;EAGER&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; mappedBy &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;bills&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Set&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;BillItems&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getBillItemses&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billItemses&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setBillItemses&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;Set&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;BillItems&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; billItemses&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;billItemses&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; billItemses&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;
hibernate.cfg.xml

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #557799&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #557799&quot;&gt;&amp;lt;!DOCTYPE hibernate-configuration PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #557799&quot;&gt;&amp;quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #557799&quot;&gt;&amp;quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&amp;quot;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;session-factory&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.bytecode.use_reflection_optimizer&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;false&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.connection.driver_class&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;com.mysql.jdbc.Driver&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.connection.url&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;jdbc:mysql://localhost:3306/pt&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.connection.username&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;root&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.dialect&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;org.hibernate.dialect.MySQLDialect&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;hibernate.search.autoregister_listeners&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;false&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Customers&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Invoices&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Authorizations&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Sessions&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.PetrolUser&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Stocks&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Actions&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.SchemaMigrations&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Vehicles&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.UserType&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Items&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.BillItems&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Bills&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;mapping&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;com.petrol.to.Recipts&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/session-factory&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;
main.java
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;petrol&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;admin&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.hibernate.HibernateException&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.hibernate.Session&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.hibernate.SessionFactory&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.hibernate.cfg.AnnotationConfiguration&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.petrol.dao.AuthorizationsHome&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.petrol.to.Authorizations&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #888888&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; * Handle authorization operation.&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; * @author Asman.&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;AuthorizationsLoader&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  * Getting authorizations.&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  * @return authorizations&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; List&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;Authorizations&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;loadAuthorizations&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  List&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;Authorizations&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; authorizations &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  Session session &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
   SessionFactory sessionFactory &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; AnnotationConfiguration&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt;
     &lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;configure&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;/hibernate.cfg.xml&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;buildSessionFactory&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
   session &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; sessionFactory&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;openSession&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
   AuthorizationsHome authoDao &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; AuthorizationsHome&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
   authorizations &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; authoDao&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getAllAuthorizations&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;session&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
   session&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;

  &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;HibernateException he&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #888888&quot;&gt;// he.printStackTrace();&lt;/span&gt;
  &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; authorizations&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String s&lt;span style=&quot;color: #333333&quot;&gt;[])&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/4419023766198799973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2014/12/hibernate-pojo-annotations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/4419023766198799973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/4419023766198799973'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2014/12/hibernate-pojo-annotations.html' title='Hibernate Pojo Annotations'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-7983316124048465768</id><published>2014-12-05T17:43:00.001-08:00</published><updated>2014-12-05T17:43:48.734-08:00</updated><title type='text'>Struts2 Restful webservices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;&quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #557799;&quot;&gt;&quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;struts&amp;gt;&lt;/span&gt;

  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.devMode&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.convention.action.suffix&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Controller&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.convention.action.mapAllMatches&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.convention.default.parent.package&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;rest-default&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.convention.package.locators&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;example&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;

  &lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.convention.default.parent.package&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000cc;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;rest-default&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&amp;gt;&lt;/span&gt;  

&lt;span style=&quot;color: #007700;&quot;&gt;&amp;lt;/struts&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
OrdersController.java&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;package&lt;/span&gt; org&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;struts2&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;rest&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;java.util.Collection&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.apache.struts2.convention.annotation.Result&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.apache.struts2.convention.annotation.Results&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.apache.struts2.rest.DefaultHttpHeaders&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.apache.struts2.rest.HttpHeaders&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.lkr.struts2.rest.service.OrdersService&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;org.lkr.struts2.rest.to.Order&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold&quot;&gt;com.opensymphony.xwork2.ModelDriven&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Results&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;({&lt;/span&gt; &lt;span style=&quot;color: #555555; font-weight: bold&quot;&gt;@Result&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;name &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;success&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; type &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;redirectAction&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; params &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;actionName&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;orders&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;})&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;})&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #BB0066; font-weight: bold&quot;&gt;OrdersController&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;implements&lt;/span&gt; ModelDriven&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;Object&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: #888888&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;final&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;long&lt;/span&gt; serialVersionUID &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;3241256322152936000L&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Order model &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; Order&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; String id&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; Collection&lt;span style=&quot;color: #333333&quot;&gt;&amp;lt;&lt;/span&gt;Order&lt;span style=&quot;color: #333333&quot;&gt;&amp;gt;&lt;/span&gt; list&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;private&lt;/span&gt; OrdersService ordersService &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; OrdersService&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// GET /orders/1&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; HttpHeaders &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DefaultHttpHeaders&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;show&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// GET /orders&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; HttpHeaders &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  list &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; ordersService&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getAll&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DefaultHttpHeaders&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;index&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;disableCaching&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// GET /orders/1/edit&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;edit&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;edit&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// GET /orders/new&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;editNew&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  model &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; Order&lt;span style=&quot;color: #333333&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;editNew&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// GET /orders/1/deleteConfirm&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;deleteConfirm&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;deleteConfirm&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// DELETE /orders/1&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;destroy&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  ordersService&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;remove&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #888888&quot;&gt;//addActionMessage(&amp;quot;Order removed successfully&amp;quot;);&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;success&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// POST /orders&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; HttpHeaders &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;create&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  ordersService&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;model&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #888888&quot;&gt;//addActionMessage(&amp;quot;New order created successfully&amp;quot;);&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;DefaultHttpHeaders&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;success&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;setLocationId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;model&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;());&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #888888&quot;&gt;// PUT /orders/1&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;update&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  ordersService&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;model&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #888888&quot;&gt;//addActionMessage(&amp;quot;Order updated successfully&amp;quot;);&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;success&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;validate&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;model&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getClientName&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;
    &lt;span style=&quot;color: #333333&quot;&gt;||&lt;/span&gt; model&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;getClientName&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #0000DD; font-weight: bold&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #888888&quot;&gt;//addFieldError(&amp;quot;clientName&amp;quot;, &amp;quot;The client name is empty&amp;quot;);&lt;/span&gt;
  &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;setId&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;String id&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;id &lt;span style=&quot;color: #333333&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;model&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; ordersService&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000CC&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #333333&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;public&lt;/span&gt; Object &lt;span style=&quot;color: #0066BB; font-weight: bold&quot;&gt;getModel&lt;/span&gt;&lt;span style=&quot;color: #333333&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;(&lt;/span&gt;list &lt;span style=&quot;color: #333333&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #333333&quot;&gt;?&lt;/span&gt; list &lt;span style=&quot;color: #333333&quot;&gt;:&lt;/span&gt; model&lt;span style=&quot;color: #333333&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #333333&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;
orders-index.jsp


&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;&amp;lt;%@&lt;/span&gt;taglib prefix&lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;s&amp;quot;&lt;/span&gt; uri&lt;span style=&quot;color: #333333&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;/struts-tags&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold&quot;&gt;%&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Orders&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;s:actionmessage&lt;/span&gt; &lt;span style=&quot;color: #007700&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;table&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;th&amp;gt;&lt;/span&gt;ID&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Client&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Amount&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Actions&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;s:iterator&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;model&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;${id}&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;${clientName}&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;${amount}&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;td&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;orders/${id}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt; |
                &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;orders/${id}/edit&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt; |
                &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;orders/${id}/deleteConfirm&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;Delete&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/s:iterator&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;     
    &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;orders/new&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;Create a new order&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;
web.xml
&lt;br/&gt;

&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20&lt;/pre&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #557799&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;web-app&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;2.5&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000CC&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;http://java.sun.com/xml/ns/javaee&amp;quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000CC&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000CC&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0&quot;&gt;&amp;quot;http://java.sun.com/xml/ns/javaee &lt;/span&gt;
&lt;span style=&quot;background-color: #fff0f0&quot;&gt; http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;filter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;struts2&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;filter-class&amp;gt;&lt;/span&gt;
   org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/filter-class&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/filter&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;filter-mapping&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;struts2&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/*&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;welcome-file-list&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #888888&quot;&gt;&amp;lt;!-- &amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt; --&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;welcome-file&amp;gt;&lt;/span&gt;index.jsp&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/welcome-file&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/7983316124048465768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2014/12/1-2-3-4-5-6-7-8-910111213141516-version1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7983316124048465768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7983316124048465768'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2014/12/1-2-3-4-5-6-7-8-910111213141516-version1.html' title='Struts2 Restful webservices'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-7522222824704355492</id><published>2014-11-25T18:55:00.000-08:00</published><updated>2014-11-25T18:55:02.985-08:00</updated><title type='text'>Spring &amp; Struts2 and Hibernate Integration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Application Context.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE beans PUBLIC &quot;-//SPRING//DTD BEAN//EN&quot; &quot;http://www.springframework.org/dtd/spring-beans.dtd&quot;&amp;gt;&lt;br /&gt;
&amp;lt;beans&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ...............DATASOURCE CONFIGURATION BEGIN.............. --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;ieDataSource&quot; class=&quot;com.mchange.v2.c3p0.ComboPooledDataSource&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;driverClass&quot; value=&quot;com.mysql.jdbc.Driver&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;jdbcUrl&quot; value=&quot;jdbc:mysql://localhost:3306/pt&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!--&amp;lt;property name=&quot;user&quot; value=&quot;${jdbc.username}&quot;/&amp;gt; &amp;lt;property name=&quot;password&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;value=&quot;${jdbc.password}&quot;/&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;properties&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;props&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.acquire_increment&quot;&amp;gt;10&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.idle_test_period&quot;&amp;gt;100&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.max_size&quot;&amp;gt;500&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.max_statements&quot;&amp;gt;0&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.min_size&quot;&amp;gt;10&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;c3p0.timeout&quot;&amp;gt;120&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;user&quot;&amp;gt;root&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;password&quot;&amp;gt;&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/props&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .........................DATASOURCE CONFIGURATION END.................. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .......................HIBERNATE CONFIGURATION BEGIN................. --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;ieSessionFactory&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;class=&quot;org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;ieSessionFactory&quot; class=&quot;org.springframework.orm.hibernate4.LocalSessionFactoryBean&quot;&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;dataSource&quot; ref=&quot;ieDataSource&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;annotatedClasses&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;list&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.BillItems&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Items&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Bills&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Customers&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Recipts&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.SchemaMigrations&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Sessions&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Stocks&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Vehicles&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.PetrolUser&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.UserType&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Invoices&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Actions&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;com.petrol.to.Authorizations&amp;lt;/value&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/list&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;hibernateProperties&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;props&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;prop key=&quot;hibernate.dialect&quot;&amp;gt; org.hibernate.dialect.MySQLDialect&amp;lt;/prop&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;!-- &amp;lt;prop key=&quot;hibernate.show_sql&quot;&amp;gt;true&amp;lt;/prop&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/props&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ............. HIBERNATE CONFIGURATION END................ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .................. ACTION *** BEGIN....................... --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ..................ADMIN MODULE *** BEGIN ........... --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;loginAction&quot; class=&quot;com.petrol.admin.action.LoginAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;property name=&quot;petrolUserService&quot; ref=&quot;petrolUserService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;userRegisterAction&quot; class=&quot;com.petrol.admin.action.PetrolUserRegisterAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolUserService&quot; ref=&quot;petrolUserService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ..................ADMIN MODULE *** END ........... --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ..................LOGIN MODULE - BEGIN .......... --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ..................LOGIN MODULE - END .......... --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .................CUSTOMER MODULE - BEGIN ........--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getAllCustomersAction&quot; class=&quot;com.petrol.admin.action.GetAllCustomersAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllCustomersService&quot; ref=&quot;getAllCustomersService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;viewCustomerAction&quot; class=&quot;com.petrol.admin.action.ViewCustomerAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllCustomersService&quot; ref=&quot;getAllCustomersService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;registerAction&quot; class=&quot;com.petrol.admin.action.UserRegisterAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolUserService&quot; ref=&quot;petrolUserService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .................CUSTOMER MODULE - END ........--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .................CUSTOMER TRANSACTION MODULE - BEGIN ..................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;billItemsAction&quot; class=&quot;com.petrol.admin.action.BillItemsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillItemsService&quot; ref=&quot;petrolBillItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolItemsService&quot; ref=&quot;petrolItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillsService&quot; ref=&quot;petrolBillsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;pdfAction&quot; class=&quot;com.petrol.commons.GeneratingPdfAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillItemsService&quot; ref=&quot;petrolBillItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllInvoicesService&quot; ref=&quot;getAllInvoicesService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolStocksService&quot; ref=&quot;petrolStocksService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- .................CUSTOMER TRANSACTION MODULE - END ..................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!--.................PRODUCTS MODULE BEGIN .......................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getItemsAction&quot; class=&quot;com.petrol.admin.action.GetItemsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolItemsService&quot; ref=&quot;petrolItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;itemsAction&quot; class=&quot;com.petrol.admin.action.ItemsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolItemsService&quot; ref=&quot;petrolItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;stocksAction&quot; class=&quot;com.petrol.admin.action.StocksAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolStocksService&quot; ref=&quot;petrolStocksService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getAllStocksAction&quot; class=&quot;com.petrol.admin.action.GetAllStocksAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllStocksService&quot; ref=&quot;getAllStocksService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;viewStockAction&quot; class=&quot;com.petrol.admin.action.ViewStockAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllStocksService&quot; ref=&quot;getAllStocksService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!--.................PRODUCTS MODULE END .......................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................PRODUCTS TRANSACTION MODULE BEGIN........................ --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;itemsPriceAction&quot; class=&quot;com.petrol.admin.action.ItemsPriceAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolItemsService&quot; ref=&quot;petrolItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................PRODUCTS TRANSACTION MODULE END........................ --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................BILL MODULE BEGIN ..............................................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;billsAction&quot; class=&quot;com.petrol.admin.action.BillsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillsService&quot; ref=&quot;petrolBillsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getCustomersAction&quot; class=&quot;com.petrol.admin.action.GetCustomersAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillsService&quot; ref=&quot;petrolBillsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getBillNumberAction&quot; class=&quot;com.petrol.admin.action.GetBillNumberAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolBillsService&quot; ref=&quot;petrolBillsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getBillItemsAction&quot; class=&quot;com.petrol.admin.action.GetBillItemsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getBillItemsService&quot; ref=&quot;getBillItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;priceAction&quot; class=&quot;com.petrol.admin.action.PriceAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolItemsService&quot; ref=&quot;petrolItemsService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;productSubmitAction&quot; class=&quot;com.petrol.admin.action.ProductSubmitAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;productSubmitService&quot; ref=&quot;productSubmitService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................BILL MODULE END ..............................................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;nbsp;...............INVOICE MODULE BEGIN ...................................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;invoiceAction&quot; class=&quot;com.petrol.admin.action.InvoiceAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;getAllInvoicesService&quot; ref=&quot;getAllInvoicesService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;nbsp;...............INVOICE MODULE END ...................................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................ INVOICE TRANSACTION MODULE BEGIN ...................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................ INVOICE TRANSACTION MODULE END ...................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................... LOGOUT MODULE BEGIN .........................................--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................... LOGOUT MODULE END .........................................--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;userManagementAction&quot; class=&quot;com.petrol.admin.action.UserManagementAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;petrolService&quot; ref=&quot;petrolService&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;mapTestAction&quot; class=&quot;com.petrol.admin.action.MapTestAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;jasperReportAction&quot; class=&quot;com.petrol.admin.action.JasperReportAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;productsAction&quot; class=&quot;com.petrol.admin.action.ProductsAction&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;gridDataAction&quot; class=&quot;com.petrol.admin.action.GridDataProvider&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;productDataProviderAction&quot; class=&quot;com.petrol.admin.action.ProductsDataProvider&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ................... ACTION *** END............................... --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- SERVICE *** BEGIN --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;petrolUserService&quot; class=&quot;com.petrol.service.PetrolUserService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;customersDao&quot; ref=&quot;customersDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;userTypeDao&quot; ref=&quot;userTypeDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;userDao&quot; ref=&quot;userDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getAllCustomersService&quot; class=&quot;com.petrol.service.GetAllCustomersService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;customersDao&quot; ref=&quot;customersDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;petrolBillItemsService&quot; class=&quot;com.petrol.service.PetrolBillItemsService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;billItemsDao&quot; ref=&quot;billItemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;petrolItemsService&quot; class=&quot;com.petrol.service.PetrolItemsService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;itemsDao&quot; ref=&quot;itemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;petrolBillsService&quot; class=&quot;com.petrol.service.PetrolBillsService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;billsDao&quot; ref=&quot;billsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;billItemsDao&quot; ref=&quot;billItemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;stocksDao&quot; ref=&quot;stocksDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;itemsDao&quot; ref=&quot;itemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;customersDao&quot; ref=&quot;customersDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getAllInvoicesService&quot; class=&quot;com.petrol.service.GetAllInvoicesService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;invoicesDao&quot; ref=&quot;invoicesDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;petrolStocksService&quot; class=&quot;com.petrol.service.PetrolStocksService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;stocksDao&quot; ref=&quot;stocksDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;itemsDao&quot; ref=&quot;itemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getAllStocksService&quot; class=&quot;com.petrol.service.GetAllStocksService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;stocksDao&quot; ref=&quot;stocksDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;itemsDao&quot; ref=&quot;itemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;productSubmitService&quot; class=&quot;com.petrol.service.ProductSubmitService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;getBillItemsService&quot; class=&quot;com.petrol.service.GetBillItemsService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;billItemsDao&quot; ref=&quot;billItemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- hehehheh --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- &amp;lt;bean id=&quot;petrolService&quot; class=&quot;com.petrol.service.PetrolService&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;singleton=&quot;false&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;sessionFactory&quot; ref=&quot;ieSessionFactory&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;property name=&quot;billItemsDao&quot; ref=&quot;billItemsDao&quot;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/bean&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- SERVICE *** END --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ...........DAO *** BEGIN................................ --&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;billItemsDao&quot; class=&quot;com.petrol.dao.BillItemsDao&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;itemsDao&quot; class=&quot;com.petrol.dao.ItemsDao&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;customersDao&quot; class=&quot;com.petrol.dao.CustomersDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;billsDao&quot; class=&quot;com.petrol.dao.BillsDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;stocksDao&quot; class=&quot;com.petrol.dao.StocksDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;invoicesDao&quot; class=&quot;com.petrol.dao.InvoicesDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;userTypeDao&quot; class=&quot;com.petrol.dao.UserTypeDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;bean id=&quot;userDao&quot; class=&quot;com.petrol.dao.UserDao&quot;&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!-- ..... DAO *** END...... --&amp;gt;&lt;br /&gt;
&amp;lt;/beans&amp;gt;&lt;br /&gt;
&lt;div&gt;
*********************************************************************&lt;/div&gt;
&lt;div&gt;
********************************************************************&lt;/div&gt;
&lt;div&gt;
web.xml&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;id=&quot;WebApp_ID&quot; version=&quot;2.5&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;display-name&amp;gt;Idea Exchange&amp;lt;/display-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;context-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;param-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG&amp;lt;/param-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;param-value&amp;gt;/WEB-INF/petrolProjectTiles-defs.xml&amp;lt;/param-value&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/context-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;filter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;filter-name&amp;gt;pp&amp;lt;/filter-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;filter-class&amp;gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&amp;lt;/filter-class&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/filter&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;listener&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;listener-class&amp;gt;org.springframework.web.context.ContextLoaderListener&amp;lt;/listener-class&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/listener&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;listener&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;listener-class&amp;gt;org.apache.struts2.tiles.StrutsTilesListener&amp;lt;/listener-class&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/listener&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;filter-mapping&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;filter-name&amp;gt;pp&amp;lt;/filter-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;servlet&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;servlet-name&amp;gt;Captcha&amp;lt;/servlet-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;servlet-class&amp;gt;com.petrol.commons.PetrolCaptcha&amp;lt;/servlet-class&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;init-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;description&amp;gt;passing height&amp;lt;/description&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;param-name&amp;gt;height&amp;lt;/param-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;param-value&amp;gt;30&amp;lt;/param-value&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/init-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;init-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;description&amp;gt;passing height&amp;lt;/description&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;param-name&amp;gt;width&amp;lt;/param-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;param-value&amp;gt;120&amp;lt;/param-value&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/init-param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/servlet&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;servlet-name&amp;gt;Captcha&amp;lt;/servlet-name&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;url-pattern&amp;gt;/Captcha.jpeg&amp;lt;/url-pattern&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;session-config&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;session-timeout&amp;gt;30&amp;lt;/session-timeout&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/session-config&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;welcome-file-list&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/web-app&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
**************************************************************&lt;/div&gt;
&lt;div&gt;
*************************************************************&lt;/div&gt;
&lt;div&gt;
tiles.xml&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;!DOCTYPE tiles-definitions PUBLIC&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;http://tiles.apache.org/dtds/tiles-config_2_0.dtd&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;tiles-definitions&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;baseLayout&quot; template=&quot;/baseLayout.jsp&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;header&quot; value=&quot;/petrolheader.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;logout&quot; value=&quot;/logoutmenu.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;menu&quot; value=&quot;/petrolmenu.jsp&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/body.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;footer&quot; value=&quot;/petrolfooter.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;home&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/Welcome.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;register&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/register.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;menu&quot; value=&quot;/body.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;bills&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/bills.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;stocks&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/stocks.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;items&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/items.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;viewsales&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewbillitems.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;success&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/success.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;failure&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/failure.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;login&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/login.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;billItems&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/billitems.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;customers&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/customers.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;viewcustomer&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewcustomer.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;precustomer&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/createcustomer.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;precustomertransactions&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/customertransactions.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;getBillItems&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewbillitems.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;prebillcreation&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/Copy of billitems.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;getallstocks&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/stocks.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;addstocks&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/addstocks.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;editstock&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/addstocks.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;viewstock&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewstock.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;createinvoice&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/createinvoice.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;preinvoicetransaction&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/invoicetransactions.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;viewinvoices&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewiteminvoices.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;prestocktransaction&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/stocktransactions.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;viewstocktransactions&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/viewstocktransactions.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;getallitems&quot; extends=&quot;baseLayout&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/allitems.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;definition name=&quot;preregister&quot; template=&quot;/baseLayout.jsp&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;put-attribute name=&quot;header&quot; value=&quot;/petrolheader.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;put-attribute name=&quot;body&quot; value=&quot;/userregister.jsp&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;put-attribute name=&quot;menu&quot; value=&quot;/body.jsp&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;put-attribute name=&quot;logout&quot; value=&quot;/body.jsp&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;put-attribute name=&quot;footer&quot; value=&quot;/petrolfooter.jsp&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/tiles-definitions&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
*****************************************************&lt;/div&gt;
&lt;div&gt;
*****************************************************&lt;/div&gt;
&lt;div&gt;
struts.xml&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;!DOCTYPE struts PUBLIC&lt;/div&gt;
&lt;div&gt;
&quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;/div&gt;
&lt;div&gt;
&quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;struts&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;constant name=&quot;struts.devMode&quot; value=&quot;true&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;constant name=&quot;struts.convention.action.packages&quot; value=&quot;com.jgeppert.struts2.jquery.showcase&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;package name=&quot;default &quot; namespace=&quot;/&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;extends=&quot;struts-default,json-default&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;result-types&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result-type name=&quot;tiles&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;class=&quot;org.apache.struts2.views.tiles.TilesResult&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result-type name=&quot;jasper&quot; class=&quot;org.apache.struts2.views.jasperreports.JasperReportsResult&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/result-types&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;interceptors&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor name=&quot;loginInterceptor&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; class=&quot;com.petrol.admin.action.PetrolLoginInterceptor&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/interceptor&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;interceptor-stack name=&quot;petrolInterceptorsStack&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;alias&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;params&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;servletConfig&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;exception&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;prepare&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;i18n&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;chain&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;modelDriven&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;fileUpload&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;checkbox&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;staticParams&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;params&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;conversionError&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;validation&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param name=&quot;excludeMethods&quot;&amp;gt;input,back,cancel&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/interceptor-ref&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;!-- &amp;lt;interceptor-ref name=&quot;workflow&quot;&amp;gt; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;param name=&quot;excludeMethods&quot;&amp;gt;input,back,cancel,browse&amp;lt;/param&amp;gt; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/interceptor-ref&amp;gt; --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;interceptor-ref name=&quot;loginInterceptor&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/interceptor-stack&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/interceptors&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;default-interceptor-ref name=&quot;petrolInterceptorsStack&quot;&amp;gt;&amp;lt;/default-interceptor-ref&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;global-results&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;redirecthome&quot; type=&quot;redirect&quot;&amp;gt;index.jsp&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/global-results&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- ADMIN MODULE - BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preRegister&quot; method=&quot;prepareRegister&quot; class=&quot;loginAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;preregister&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot;&amp;gt;/login.jsp&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;userregister&quot; class=&quot;userRegisterAction&quot; method=&quot;registerUser&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;home&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;buyer&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;getAllCustomers.action&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;error&quot; type=&quot;tiles&quot;&amp;gt;preregister&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;owner&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;getAllCustomers.action&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- ADMIN MODULE - END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- LOGIN MODULE - BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;login&quot; method=&quot;login&quot; class=&quot;loginAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result type=&quot;redirectAction&quot; name=&quot;owner&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;getAllCustomers.action&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;buyer&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;getAllCustomers.action&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;changepassword&quot; type=&quot;tiles&quot;&amp;gt;changepassword&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;home&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;error&quot; type=&quot;tiles&quot;&amp;gt;login&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- LOGIN MODULE - END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;CUSTOMER MODULE - BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getAllCustomers&quot; method=&quot;getAllCustomers&quot; class=&quot;getAllCustomersAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;customers&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preCreateCustomer&quot; method=&quot;preCreateCusomer&quot; class=&quot;viewCustomerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;precustomer&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;register&quot; method=&quot;register&quot; class=&quot;registerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllCustomers.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;viewCustomer&quot; method=&quot;viewCustomer&quot; class=&quot;viewCustomerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewcustomer&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;editCustomer&quot; method=&quot;viewCustomer&quot; class=&quot;viewCustomerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;precustomer&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;deleteCustomer&quot; method=&quot;deleteCustomer&quot; class=&quot;viewCustomerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllCustomers.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;updateCustomer&quot; method=&quot;updateCustomer&quot; class=&quot;registerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllCustomers.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- CUSTOMER MODULE - END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;CUSTOMER TRANSACTION MODULE - BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preCustomerTransactions&quot; method=&quot;preCustomerTransactions&quot; class=&quot;viewCustomerAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;precustomertransactions&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;customerBillSearch&quot; method=&quot;getBillByCustomer&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;class=&quot;billItemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewsales&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;pdfAction&quot; method=&quot;generateCustomerPdf&quot; class=&quot;pdfAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;test-stream&quot; type=&quot;stream&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;inputName&quot;&amp;gt;fileStream&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentType&quot;&amp;gt;application/pdf&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentDisposition&quot;&amp;gt;filename=&quot;test.pdf&quot;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;CUSTOMER TRANSACTION MODULE - END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- PRODUCTS MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getAllItems&quot; method=&quot;allItems&quot; class=&quot;getItemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;getallitems&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;prepareItems&quot; method=&quot;prepareItems&quot; class=&quot;itemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;items&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;items&quot; method=&quot;items&quot; class=&quot;itemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllItems.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;items&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;error&quot; type=&quot;tiles&quot;&amp;gt;items&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;prepareStocks&quot; method=&quot;prepareStocks&quot; class=&quot;stocksAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;addstocks&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;generateStocks&quot; method=&quot;generateStocks&quot; class=&quot;stocksAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllStocks&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getAllStocks&quot; method=&quot;getAllStocks&quot; class=&quot;getAllStocksAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;getallstocks&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;viewItemStock&quot; method=&quot;viewItemStock&quot; class=&quot;viewStockAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewstock&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;editItemStock&quot; method=&quot;viewItemStock&quot; class=&quot;viewStockAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;items&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;updateItem&quot; method=&quot;updateItem&quot; class=&quot;itemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllItems.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;deleteItemStock&quot; method=&quot;deleteItemStock&quot; class=&quot;viewStockAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllItems.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;viewStock&quot; method=&quot;viewStock&quot; class=&quot;viewStockAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewstock&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- PRODUCTS MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- PRODUCTS TRANSACTION MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preStockTransaction&quot; method=&quot;preStockTransaction&quot; class=&quot;stocksAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;prestocktransaction&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getItems&quot; method=&quot;getAllItems&quot; class=&quot;itemsPriceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;itemStockSearch&quot; method=&quot;getStockByItem&quot; class=&quot;stocksAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewstocktransactions&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;stockspdfAction&quot; method=&quot;generateStocksPdf&quot; class=&quot;pdfAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;test-stream&quot; type=&quot;stream&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;inputName&quot;&amp;gt;fileStream&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentType&quot;&amp;gt;application/pdf&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentDisposition&quot;&amp;gt;filename=&quot;test.pdf&quot;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- PRODUCTS TRANSACTION MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- BILL MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preBillCreation&quot; method=&quot;preBillCreation&quot; class=&quot;billsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;prebillcreation&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getCustomers&quot; method=&quot;getCustomers&quot; class=&quot;getCustomersAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getBillNumber&quot; method=&quot;getBillNumber&quot; class=&quot;getBillNumberAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;generateBill&quot; method=&quot;generateBill&quot; class=&quot;billsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getBillItems&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;error&quot; type=&quot;tiles&quot;&amp;gt;prebillcreation&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getBillItems&quot; method=&quot;getBillItemsByDate&quot; class=&quot;getBillItemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;getBillItems&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;getItemsAction&quot; method=&quot;allItems&quot; class=&quot;getItemsAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;priceAction&quot; method=&quot;priceByItem&quot; class=&quot;priceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;productsubmit&quot; method=&quot;productSubmit&quot; class=&quot;productSubmitAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;productdelete&quot; method=&quot;productDelete&quot; class=&quot;productSubmitAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;json&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;excludeProperties&quot;&amp;gt;.*application,validate &amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- BILL MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;INVOICE MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preCreateInvoice&quot; method=&quot;preCreateInvoice&quot; class=&quot;invoiceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;createinvoice&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;invoiceregister&quot; method=&quot;invoiceRegister&quot; class=&quot;invoiceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;redirectAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;actionName&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;getAllCustomers.action&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;INVOICE MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;INVOICE TRANSACTION MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;preInvoiceTransaction&quot; method=&quot;preInvoiceTransaction&quot; class=&quot;invoiceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;preinvoicetransaction&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;input&quot; type=&quot;tiles&quot;&amp;gt;failure&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;itemInvoiceSearch&quot; method=&quot;getInvoicesByItem&quot;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;class=&quot;invoiceAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;viewinvoices&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;invoicepdfAction&quot; method=&quot;generateInvoicePdf&quot; class=&quot;pdfAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;test-stream&quot; type=&quot;stream&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;inputName&quot;&amp;gt;fileStream&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentType&quot;&amp;gt;application/pdf&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;param name=&quot;contentDisposition&quot;&amp;gt;filename=&quot;test.pdf&quot;&amp;lt;/param&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- &amp;nbsp;INVOICE TRANSACTION MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- LOGOUT MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;action name=&quot;logout&quot; method=&quot;logOut&quot; class=&quot;loginAction&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;result name=&quot;success&quot;&amp;gt;/index.jsp&amp;lt;/result&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/action&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- LOGOUT MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- TESTING MODULE BEGIN --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;!-- TESTING MODULE END --&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/package&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/struts&amp;gt;&lt;/div&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://lkreddy.blogspot.com/feeds/7522222824704355492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2014/11/spring-struts2-and-hibernate-integration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7522222824704355492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7522222824704355492'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2014/11/spring-struts2-and-hibernate-integration.html' title='Spring &amp; Struts2 and Hibernate Integration'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-7617548432670714750</id><published>2013-12-07T06:24:00.001-08:00</published><updated>2013-12-07T06:24:05.096-08:00</updated><title type='text'>Apache is not running from XAMPP Control Panel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1 id=&quot;post-headline&quot; style=&quot;background-color: #f4f1e9; color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 1.5em; margin: 5px 0px 3px; padding: 0px;&quot;&gt;
How to Change the Apache Port in XAMPP&lt;/h1&gt;
&lt;div class=&quot;the_content&quot; style=&quot;background-color: #f4f1e9; margin: 0px; padding: 0px;&quot;&gt;
&lt;div id=&quot;nrelate_flyout_placeholder&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;
&lt;div class=&quot;c1&quot; style=&quot;background-color: cornsilk; border-style: solid; border-width: 1px; color: black; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; margin: 1em; padding: 1em;&quot;&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
These instructions are for XAMPP 1.7.3 running on Windows XP.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
They should be similar for other configuration combinations, but no guarantee is made.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
These instructions should also work for an Apache Server install that is not part of a XAMPP install (specific details regarding file locations and restarting of the Apache Server will differ).&lt;/div&gt;
&lt;div class=&quot;c3&quot; style=&quot;background-color: #dce3ff; border-style: solid; border-width: 1px; margin: 1em; padding: 1em;&quot;&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;NOTE:&lt;/strong&gt;&amp;nbsp;XAMPP 1.7.4 and XAMPP 1.7.7 display&amp;nbsp;&lt;u style=&quot;margin: 0px; padding: 0px;&quot;&gt;misleading&lt;/u&gt;&amp;nbsp;port information in the XAMPP Control Panel.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;u style=&quot;margin: 0px; padding: 0px;&quot;&gt;Regardless&lt;/u&gt;&amp;nbsp;of which port you specify Apache to listen to, the XAMPP Control Panel will always display:&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;span class=&quot;i1&quot; style=&quot;background-color: #dcffe6; color: black; font-weight: bold; margin: 0px; padding: 2px;&quot;&gt;&lt;code style=&quot;font-family: &#39;Courier New&#39;, Courier, &#39;Nimbus Mono L&#39;, monospace; margin: 0px; padding: 0px;&quot;&gt;Apache started [Port 80]&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
This is WRONG!!!! This is a HARDCODED string in XAMPP 1.7.4 and 1.7.7. It does not reflect the actual port Apache is listening to.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
Yet another reason why you should not be using XAMPP 1.7.4 or 1.7.7.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
By default, Apache Server listens on port 80, but this can be changed.&lt;/div&gt;
&lt;h2 style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; margin: 10px 0px; padding: 0px;&quot;&gt;
Why Change the Port?&lt;/h2&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
Perhaps certain ports are blocked by your network admin or ISP (although, I would not recommend running XAMPP as a publicly accessible server).&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
Perhaps port 80 is already being used by some other application (like IIS, Skype, Kaspersky) and you don’t want to or are not allowed to shut it down or change it.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
Apache Server is not starting and you are using XAMPP 1.7.4 (I recommend XAMPP 1.7.3). XAMPP 1.7.4 removed a useful port debugging tool, so changing the Apache Server port is one way of checking to see if you have a port conflict – change the port and if Apache Server starts working, then you know some other application is using port 80. You should try several ports, just in case you are&amp;nbsp;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;lucky&lt;/em&gt;&amp;nbsp;and manage to pick ports used by other applications. Some ports to try are 2375, 4173, 5107, 9260, 20010 – these ports, among others, are all&amp;nbsp;&lt;a href=&quot;http://www.iana.org/assignments/port-numbers&quot; style=&quot;color: #cc3300; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_top&quot;&gt;listed&lt;/a&gt;&amp;nbsp;as unassigned (but that doesn’t mean someone else isn’t using them).&lt;/div&gt;
&lt;h2 style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; margin: 10px 0px; padding: 0px;&quot;&gt;
How to Change the Port&lt;/h2&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
Edit the&amp;nbsp;&lt;span class=&quot;i1&quot; style=&quot;background-color: #dcffe6; color: black; font-weight: bold; margin: 0px; padding: 2px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;httpd.conf&lt;/em&gt;&lt;/span&gt;&amp;nbsp;file to change the port Apache listens on.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;(1) Locate&lt;/strong&gt;&amp;nbsp;the file&amp;nbsp;&lt;u style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;httpd.conf&lt;/em&gt;&lt;/u&gt;. This file should be found in&amp;nbsp;&lt;span class=&quot;i1&quot; style=&quot;background-color: #dcffe6; color: black; font-weight: bold; margin: 0px; padding: 2px;&quot;&gt;C:\xampp\apache\conf&lt;/span&gt;&amp;nbsp;(or whichever directory you installed XAMPP in – mine is on my D-drive because that is where I installed XAMPP).&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;centered&quot; height=&quot;430&quot; src=&quot;http://i1.wp.com/complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-1.png?w=586&quot; style=&quot;border: 1px solid rgb(201, 187, 160); display: block; margin: 10px auto; max-width: 586px; padding: 1px; text-align: center;&quot; width=&quot;509&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;(2) Open&lt;/strong&gt;&amp;nbsp;the file using a text editor or programmer’s editor (I use&amp;nbsp;&lt;a href=&quot;http://notepad-plus-plus.org/&quot; style=&quot;color: #cc3300; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_top&quot;&gt;notepad++&lt;/a&gt;).&amp;nbsp;&lt;span class=&quot;i3&quot; style=&quot;background-color: #ffdcf4; color: black; font-weight: bold; margin: 0px; padding: 2px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;DO NOT&lt;/strong&gt;&amp;nbsp;use a word processor (like Word) to open the file, it will badly mess it up.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;(3a) Locate&lt;/strong&gt;&amp;nbsp;the line that says&amp;nbsp;&lt;span class=&quot;i2&quot; style=&quot;background-color: #dce3ff; color: black; font-weight: bold; margin: 0px; padding: 2px;&quot;&gt;&lt;code style=&quot;font-family: &#39;Courier New&#39;, Courier, &#39;Nimbus Mono L&#39;, monospace; margin: 0px; padding: 0px;&quot;&gt;Listen 80&lt;/code&gt;&lt;/span&gt;. It is line #47 in the XAMPP 1.7.3 install.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;centered&quot; height=&quot;133&quot; src=&quot;http://i2.wp.com/complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-2.png?w=586&quot; style=&quot;border: 1px solid rgb(201, 187, 160); display: block; margin: 10px auto; max-width: 586px; padding: 1px; text-align: center;&quot; width=&quot;480&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;(3b) Change&lt;/strong&gt;&amp;nbsp;the port number (80) to a different number (for this tutorial, I changed it to 1234).&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;(3c) Save&lt;/strong&gt;&amp;nbsp;the file.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;img src=&quot;http://i1.wp.com/complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-3.png?w=586&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, &#39;Nimbus Sans L&#39;, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;b&gt;WSASocket failed to open the inherited socket&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The very simple solution is to uncheck the “Enable LMHOSTS Lookup” box in the TCP/IP protocol setup (under WINS setting). Here are the steps to do this:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;Open “Control Panel” then “Network Connections.”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;Right-click on “Local Area Connection” and select “Properties.”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;Double-click on the “Internet Protocol (TCP/IP)” line to open the “Properties.”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;On the “General” tab, click the “Advanced” button.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;Select the “WINS” tab and uncheck the “Enable LMHOSTS Lookup” box.”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;img src=&quot;http://i1.wp.com/complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-3.png?w=586&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Helvetica, Arial, Nimbus Sans L, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;Now, check the Apache test page at http://localhost/. This time, it should work!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 15px; padding: 0px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/7617548432670714750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2013/12/apache-is-not-running-from-xampp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7617548432670714750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7617548432670714750'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2013/12/apache-is-not-running-from-xampp.html' title='Apache is not running from XAMPP Control Panel'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-3919489414976909821</id><published>2013-04-28T23:44:00.002-07:00</published><updated>2013-04-29T01:49:34.961-07:00</updated><title type='text'>Sending Android Push Notification in My Phonegap Application</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;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;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First of all you need to create you application project in Google Api Console,&lt;br /&gt;
&lt;br /&gt;
i will show some steps here how to create the application in Google Api Console,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;background-color: white; color: #555555; font-family: &#39;Open Sans Condensed&#39;, sans-serif; font-size: 26px; margin: 10px 0px 10px 10px;&quot;&gt;
Registering with Google Cloud Messaging&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Maven Pro&#39;, sans-serif; font-size: 14px; line-height: 20.75px; text-align: justify;&quot;&gt;
&lt;strong&gt;1&lt;/strong&gt;. Goto&amp;nbsp;&lt;a class=&quot;ref-link&quot; href=&quot;https://code.google.com/apis/console&quot; style=&quot;color: #739c01; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;Google APIs Console page&lt;/a&gt;&amp;nbsp;and create a new project. (If you haven’t created already otherwise it will take you to dashboard)&lt;/div&gt;
&lt;div class=&quot;image&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 20.75px; margin: 20px 0px; text-align: center;&quot;&gt;
&lt;img alt=&quot;android gcm registering in google api console&quot; class=&quot;alignnone size-full wp-image-2291&quot; height=&quot;450&quot; src=&quot;http://www.androidhive.info/wp-content/uploads/2012/10/gcm_create_project.png&quot; style=&quot;border-color: rgb(247, 247, 247); border-style: solid; border-width: 1px 6px 6px; outline: rgb(238, 238, 238) solid 1px;&quot; title=&quot;android gcm registering in google api console&quot; width=&quot;580&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Maven Pro&#39;, sans-serif; font-size: 14px; line-height: 20.75px; text-align: justify;&quot;&gt;
&lt;strong&gt;2&lt;/strong&gt;. After creating project you can see the&amp;nbsp;&lt;strong&gt;project id in the url&lt;/strong&gt;. Note down the project id which will be used as&amp;nbsp;&lt;em style=&quot;background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #ea1f00; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; font-style: normal; font-weight: bold; padding: 2px 4px;&quot;&gt;SENDER ID&lt;/em&gt;&amp;nbsp;in android project. (Example: in #project:460866929976 after semicolon 460866929976 is the sender id)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 20.75px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  xml&quot; id=&quot;highlighter_330702&quot; style=&quot;background-color: rgb(249, 249, 249) !important; border: 1px solid rgb(230, 230, 230); font-size: 1em !important; margin: 20px auto; overflow-x: auto !important; overflow-y: hidden !important; padding: 10px; position: relative !important;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: #dedede; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 591px;&quot;&gt;&lt;tbody style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-color: red; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 591px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; clear: both; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-color: rgb(249, 249, 249) !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;xml plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;a href=&quot;https://code.google.com/apis/console/&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;https://code.google.com/apis/console/&lt;/a&gt;#project:460866929976&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;image&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 20.75px; margin: 20px 0px; text-align: center;&quot;&gt;
&lt;img alt=&quot;android gcm sender id&quot; class=&quot;alignnone size-full wp-image-2300&quot; height=&quot;229&quot; src=&quot;http://www.androidhive.info/wp-content/uploads/2012/10/gcm_sender_id.png&quot; style=&quot;border-color: rgb(247, 247, 247); border-style: solid; border-width: 1px 6px 6px; outline: rgb(238, 238, 238) solid 1px;&quot; title=&quot;android gcm sender id&quot; width=&quot;580&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Maven Pro&#39;, sans-serif; font-size: 14px; line-height: 20.75px; text-align: justify;&quot;&gt;
&lt;strong&gt;3&lt;/strong&gt;. After that click on&amp;nbsp;&lt;em style=&quot;background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #ea1f00; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; font-style: normal; font-weight: bold; padding: 2px 4px;&quot;&gt;Services&lt;/em&gt;&amp;nbsp;on the left panel and turn on&amp;nbsp;&lt;em style=&quot;background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #ea1f00; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; font-style: normal; font-weight: bold; padding: 2px 4px;&quot;&gt;Google Cloud Messaging for Android&lt;/em&gt;.&lt;/div&gt;
&lt;div class=&quot;image&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 20.75px; margin: 20px 0px; text-align: center;&quot;&gt;
&lt;img alt=&quot;android gcm google api console&quot; class=&quot;alignnone size-full wp-image-2306&quot; height=&quot;452&quot; src=&quot;http://www.androidhive.info/wp-content/uploads/2012/10/gcm_enable_service.png&quot; style=&quot;border-color: rgb(247, 247, 247); border-style: solid; border-width: 1px 6px 6px; outline: rgb(238, 238, 238) solid 1px;&quot; title=&quot;android gcm google api console&quot; width=&quot;580&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Maven Pro&#39;, sans-serif; font-size: 14px; line-height: 20.75px; text-align: justify;&quot;&gt;
&lt;strong&gt;4&lt;/strong&gt;. Once you are done, click on API Access and note down the&amp;nbsp;&lt;em style=&quot;background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #ea1f00; font-family: Monaco, Menlo, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; font-style: normal; font-weight: bold; padding: 2px 4px;&quot;&gt;API Key&lt;/em&gt;. This API key will be used when sending requests to GCM server.&lt;/div&gt;
&lt;div class=&quot;image&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 12px; line-height: 20.75px; margin: 20px 0px; text-align: center;&quot;&gt;
&lt;img alt=&quot;android google api key&quot; class=&quot;alignnone size-full wp-image-2310&quot; height=&quot;452&quot; src=&quot;http://www.androidhive.info/wp-content/uploads/2012/10/gcm_api_key.png&quot; style=&quot;border-color: rgb(247, 247, 247); border-style: solid; border-width: 1px 6px 6px; outline: rgb(238, 238, 238) solid 1px;&quot; title=&quot;android google api key&quot; width=&quot;580&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
now i want to develop one samplepushnotification application&lt;br /&gt;
&lt;br /&gt;
my application structure is like this&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/AVvXsEiqQ3eUg78LH9e7Fiuz6Z9nWa04Y8GyUODQ1O45pE3dfHia-q3LmXiorQ7oM6xrsdjm48_2bB5XU4CV0LAcqjEkliXrlTSvsAPRHJQqrhT1DlCDJ1P2gtSNCU3MJEzAWs-zp-0sG6RhoGA/s1600/structure.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqQ3eUg78LH9e7Fiuz6Z9nWa04Y8GyUODQ1O45pE3dfHia-q3LmXiorQ7oM6xrsdjm48_2bB5XU4CV0LAcqjEkliXrlTSvsAPRHJQqrhT1DlCDJ1P2gtSNCU3MJEzAWs-zp-0sG6RhoGA/s640/structure.png&quot; width=&quot;273&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;GCMIntentService.java&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;/*&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Copyright 2012 Google Inc.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * you may not use this file except in compliance with the License.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * You may obtain a copy of the License at&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *   http://www.apache.org/licenses/LICENSE-2.0&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Unless required by applicable law or agreed to in writing, software&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * See the License for the specific language governing permissions and&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * limitations under the License.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sampleandroidpushnotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONArray&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.IntentService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.Notification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.NotificationManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.PendingIntent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Context&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.util.Log&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.widget.RemoteViews&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.google.android.gcm.GCMBaseIntentService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * {@link IntentService} responsible for handling GCM messages.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;GCMIntentService&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; GCMBaseIntentService &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@SuppressWarnings&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hiding&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; String TAG &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;GCMIntentService&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; String EXTRA_MESSAGE &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;sendingMessageFromGCMIntent&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; String TestFlag &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;fromGCMIntenet&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; String globalmessage&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; Integer newi&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getGlobalmessage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; globalmessage&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setGlobalmessage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String globalmessage&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  GCMIntentService&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;globalmessage&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; globalmessage&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;GCMIntentService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;xxxxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Issues a notification to inform the user that server has sent a message.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 
 
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;generateNotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context context&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String message&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; NOTIFICATION_ID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; when &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;currentTimeMillis&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  NotificationManager notificationManager &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;NotificationManager&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; context
    &lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getSystemService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;NOTIFICATION_SERVICE&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  Notification notification &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Notification&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;drawable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ic_launcher&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; when&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  
  Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;gcm service&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  
  String title &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; context&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;app_name&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   i&lt;span style=&quot;color: #303030;&quot;&gt;++;&lt;/span&gt;
 
   Intent notificationIntent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;context&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;TestActivity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
   notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;EXTRA_MESSAGE&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; message&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
   Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;msg&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;coming&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
   TestFlag &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;afterNoti&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
   
   &lt;span style=&quot;color: grey;&quot;&gt;// set intent so it does not start a new activity&lt;/span&gt;
   notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setFlags&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_ACTIVITY_CLEAR_TOP&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;|&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_ACTIVITY_SINGLE_TOP&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   PendingIntent intent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; PendingIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;context&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
     notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; PendingIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_UPDATE_CURRENT&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setLatestEventInfo&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;context&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; title&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; intent&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: grey;&quot;&gt;/*notification.flags |= Notification.FLAG_AUTO_CANCEL;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;   notification.defaults |= Notification.DEFAULT_SOUND;*/&lt;/span&gt;
   notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addFlags&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_ACTIVITY_NEW_TASK&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;|&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_ACTIVITY_CLEAR_TOP&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;|&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_ACTIVITY_SINGLE_TOP&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
   RemoteViews contentView &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; RemoteViews&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;context&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getPackageName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt; R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;custom_notification_layout&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   contentView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setImageViewResource&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;image&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;drawable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ic_launcher&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   contentView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setTextViewText&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;notification_title&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Sample PushNotification&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         contentView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setTextViewText&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; message&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;contentView&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; contentView&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: grey;&quot;&gt;// notification.flags |= Notification.FLAG_NO_CLEAR; //Do not clear the notification&lt;/span&gt;
         notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;defaults&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;|=&lt;/span&gt; Notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;DEFAULT_LIGHTS&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;// LED&lt;/span&gt;
         notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;defaults&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;|=&lt;/span&gt; Notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;DEFAULT_VIBRATE&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;//Vibration&lt;/span&gt;
         notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;defaults&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;|=&lt;/span&gt; Notification&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;DEFAULT_SOUND&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;// Sound&lt;/span&gt;

   notificationManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;notify&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;NOTIFICATION_ID&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notification&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onError&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context arg0&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String arg1&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onMessage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context arg0&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Intent arg1&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;GCM&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;RECIEVED A MESSAGE&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Get the data from intent and send to notificaion bar&lt;/span&gt;
  generateNotification&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;arg0&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; arg1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getStringExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;message&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onRegistered&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context arg0&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String reggId&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;
   JSONObject json&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        JSONArray answerArray &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; JSONArray&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    JSONObject answerObject &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; JSONObject&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     answerObject&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;regId&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; reggId&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;JSONException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
     e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    answerArray&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;answerObject&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onUnregistered&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Context arg0&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String arg1&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;

 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 

 

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
in the above java file observe&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;GCMIntentService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;xxxxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;instead of XXXXXXX you just put your sender ID&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;LKRActivity.java&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;/pre&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sampleandroidpushnotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.DroidGap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.Menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;LKRActivity&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; DroidGap &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;loadUrl&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file:///android_asset/www/index.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreateOptionsMenu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Menu menu&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  getMenuInflater&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;inflate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_main&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; menu&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;MainActivity.java&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sampleandroidpushnotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.InputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.HttpEntity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.HttpResponse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.client.ClientProtocolException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.client.HttpClient&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.client.methods.HttpGet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.impl.client.DefaultHttpClient&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.protocol.BasicHttpContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.http.protocol.HttpContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.Activity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.util.Log&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.Menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.google.android.gcm.GCMRegistrar&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;MainActivity&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Activity &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  String regId &lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; String TAG &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Push Notification Demo Activity&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; String SENDER_ID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     
     String notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     String notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

     &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         setContentView&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_main&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         
         notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getStringExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationTitle&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getStringExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

         GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;checkDevice&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;checkManifest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         regId &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getRegistrationId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;regId&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
          GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;register&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
          regId &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getRegistrationId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
           Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;TAG&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Already registered : &quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;regId&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    ExecuteRest&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;ClientProtocolException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
    e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;IOException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
    e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

     &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreateOptionsMenu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Menu menu&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
         getMenuInflater&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;inflate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_main&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; menu&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
     
     
     
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;ExecuteRest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; ClientProtocolException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException&lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
      Intent notificationIntent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getApplicationContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt;TestActivity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    
    notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;gcmId&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; regId&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationTitle&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    startActivity&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;notificationIntent&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getASCIIContentFromEntity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpEntity entity&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; IllegalStateException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   InputStream in &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; entity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   StringBuffer out &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; StringBuffer&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; n &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;n &lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[]&lt;/span&gt; b &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;4096&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;];&lt;/span&gt;
    n &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; in&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;b&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;n &lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
     out&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;b&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; n&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; out&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
in the above java file observe this two lines&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; String SENDER_ID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;pre&gt;GCMRegistrar&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;register&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;instead of XXXXXXX you just put your sender ID&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;Push.java&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sampleandroidpushnotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.Vector&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.communication.exceptions.CommunicationException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.communication.exceptions.KeystoreException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.devices.Device&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.devices.Devices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.devices.exceptions.InvalidDeviceTokenFormatException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.devices.implementations.basic.BasicDevice&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.feedback.AppleFeedbackServer&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.feedback.AppleFeedbackServerBasicImpl&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.feedback.FeedbackServiceManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.AppleNotificationServer&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.AppleNotificationServerBasicImpl&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.NewsstandNotificationPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.Payload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.PayloadPerDevice&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.PushNotificationManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.PushNotificationPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.PushedNotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.PushedNotifications&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.transmission.NotificationThread&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.transmission.NotificationThreads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javapns.notification.transmission.PushQueue&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &amp;lt;p&amp;gt;Main class for easily interacting with the Apple Push Notification System&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &amp;lt;p&amp;gt;This is the best starting point for pushing simple or custom notifications,&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * or for contacting the Feedback Service to cleanup your list of devices.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &amp;lt;p&amp;gt;The &amp;lt;b&amp;gt;JavaPNS&amp;lt;/b&amp;gt; library also includes more advanced options such as&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * multithreaded transmission, special payloads, and more.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * See the library&#39;s documentation at &amp;lt;a href=&quot;http://code.google.com/p/javapns/&quot;&amp;gt;http://code.google.com/p/javapns/&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * for more information.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @author Sylvain Pedneault&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @see NotificationThreads&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;Push&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;Push&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a simple alert to one or more devices.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param message the alert message to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PushNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a simple badge number to one or more devices.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param badge the badge number to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;badge&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; badge&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PushNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;badge&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;badge&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a simple sound name to one or more devices.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param sound the sound name (stored in the client app) to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sound&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String sound&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PushNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sound&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;sound&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a notification combining an alert, a badge and a sound. &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param message the alert message to push (set to null to skip).&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param badge the badge number to push (set to -1 to skip).&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param sound the sound name to push (set to null to skip).&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;combined&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; badge&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String sound&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PushNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;combined&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; badge&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; sound&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a content-available notification for Newsstand.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;contentAvailable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;NewsstandNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;contentAvailable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a special test notification with an alert message containing useful debugging information.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PushNotificationPayload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a preformatted payload to a list of devices.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payload a simple or complex payload to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;payload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Payload payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a preformatted payload to a list of devices.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payload a simple or complex payload to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Payload payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  PushedNotifications notifications &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushedNotifications&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payload &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; notifications&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  PushNotificationManager pushManager &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushNotificationManager&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   AppleNotificationServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleNotificationServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;initializeConnection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Device&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; deviceList &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;asDevices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;evaluateEfficiency&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;deviceList&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setMaxRetained&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;deviceList&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Device device &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; deviceList&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     BasicDevice&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;validateTokenFormat&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;device&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getToken&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
     PushedNotification notification &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sendNotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;device&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;notification&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;InvalidDeviceTokenFormatException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushedNotification&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;device&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;finally&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;stopConnection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; notifications&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a preformatted payload to a list of devices using multiple simulatenous threads (and connections).&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payload a simple or complex payload to push.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param numberOfThreads the number of parallel threads to use to push the notifications&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param devices a list or an array of tokens or devices: {@link java.lang.String String[]}, {@link java.util.List}&amp;lt;{@link java.lang.String}&amp;gt;, {@link javapns.devices.Device Device[]}, {@link java.util.List}&amp;lt;{@link javapns.devices.Device}&amp;gt;, {@link java.lang.String} or {@link javapns.devices.Device}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws Exception thrown if any critical exception occurs&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;payload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Payload payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object devices&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;numberOfThreads &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; sendPayload&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  AppleNotificationServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleNotificationServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Device&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; deviceList &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;asDevices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;devices&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  NotificationThreads threads &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotificationThreads&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; deviceList&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;start&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;waitForAllThreads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;InterruptedException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getPushedNotifications&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Build and start an asynchronous queue for sending notifications later without opening and closing connections.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * The returned queue is not started, meaning that underlying threads and connections are not initialized.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * The queue will start if you invoke its start() method or one of the add() methods.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Once the queue is started, its underlying thread(s) and connection(s) will remain active until the program ends.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param numberOfThreads the number of parallel threads to use to push the notifications&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a live queue to which you can add notifications to be sent asynchronously&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushQueue &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;queue&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  AppleNotificationServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleNotificationServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  PushQueue queue &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; numberOfThreads &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotificationThread&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotificationThreads&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; queue&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a different preformatted payload for each device.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payloadDevicePairs a list or an array of PayloadPerDevice: {@link java.util.List}&amp;lt;{@link javapns.notification.PayloadPerDevice}&amp;gt;, {@link javapns.notification.PayloadPerDevice PayloadPerDevice[]} or {@link javapns.notification.PayloadPerDevice}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;payloads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayloads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a different preformatted payload for each device using multiple simulatenous threads (and connections).&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param numberOfThreads the number of parallel threads to use to push the notifications&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payloadDevicePairs a list or an array of PayloadPerDevice: {@link java.util.List}&amp;lt;{@link javapns.notification.PayloadPerDevice}&amp;gt;, {@link javapns.notification.PayloadPerDevice PayloadPerDevice[]} or {@link javapns.notification.PayloadPerDevice}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws Exception thrown if any critical exception occurs&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;payloads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;numberOfThreads &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; sendPayloads&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  AppleNotificationServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleNotificationServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;PayloadPerDevice&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; payloadPerDevicePairs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;asPayloadsPerDevices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  NotificationThreads threads &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotificationThreads&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payloadPerDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; numberOfThreads&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;start&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;waitForAllThreads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;InterruptedException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; threads&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getPushedNotifications&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * Push a different preformatted payload for each device.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param payloadDevicePairs a list or an array of PayloadPerDevice: {@link java.util.List}&amp;lt;{@link javapns.notification.PayloadPerDevice}&amp;gt;, {@link javapns.notification.PayloadPerDevice PayloadPerDevice[]} or {@link javapns.notification.PayloadPerDevice}&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of pushed notifications, each with details on transmission results and error (if any)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; PushedNotifications &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendPayloads&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Object payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  PushedNotifications notifications &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushedNotifications&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payloadDevicePairs &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; notifications&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  PushNotificationManager pushManager &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushNotificationManager&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   AppleNotificationServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleNotificationServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;initializeConnection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;PayloadPerDevice&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; pairs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;asPayloadsPerDevices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;payloadDevicePairs&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   Devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;evaluateEfficiency&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;pairs&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setMaxRetained&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;pairs&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PayloadPerDevice ppd &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; pairs&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    Device device &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; ppd&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getDevice&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    Payload payload &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; ppd&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getPayload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     PushedNotification notification &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sendNotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;device&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;notification&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     notifications&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushedNotification&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;device&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; payload&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;finally&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    pushManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;stopConnection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; notifications&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &amp;lt;p&amp;gt;Retrieve a list of devices that should be removed from future notification lists.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &amp;lt;p&amp;gt;Devices in this list are ones that you previously tried to push a notification to,&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * but to which Apple could not actually deliver because the device user has either&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * opted out of notifications, has uninstalled your application, or some other conditions.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &amp;lt;p&amp;gt;Important: Apple&#39;s Feedback Service always resets its list of inactive devices&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * after each time you contact it.  Calling this method twice will not return the same&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * list of devices!&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &amp;lt;p&amp;gt;Please be aware that Apple does not specify precisely when a device will be listed&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * by the Feedback Service.  More specifically, it is unlikely that the device will&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * be  listed immediately if you uninstall the application during testing.  It might&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * get listed after some number of notifications couldn&#39;t reach it, or some amount of&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * time has elapsed, or a combination of both.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &amp;lt;p&amp;gt;Further more, if you are using Apple&#39;s sandbox servers, the Feedback Service will&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * probably not list your device if you uninstalled your app and it was the last one&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * on your device that was configured to receive notifications from the sandbox.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * See the library&#39;s wiki for more information.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param keystore a keystore containing your private key and the certificate signed by Apple ({@link java.io.File}, {@link java.io.InputStream}, byte[], {@link java.security.KeyStore} or {@link java.lang.String} for a file path)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param password the keystore&#39;s password.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param production true to use Apple&#39;s production servers, false to use the sandbox servers.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return a list of devices that are inactive.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws KeystoreException thrown if an error occurs when loading the keystore&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @throws CommunicationException thrown if an unrecoverable error occurs while trying to communicate with Apple servers&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Device&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; feedback&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Object keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; CommunicationException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeystoreException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Device&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; devices &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Vector&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Device&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;();&lt;/span&gt;
  FeedbackServiceManager feedbackManager &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; FeedbackServiceManager&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  AppleFeedbackServer server &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; AppleFeedbackServerBasicImpl&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keystore&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; password&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; production&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  devices&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addAll&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;feedbackManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getDevices&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;server&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; devices&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;TestActivity.java&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;example&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sampleandroidpushnotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.ArrayList&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.annotation.TargetApi&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.Activity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.StrictMode&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.Menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.widget.TextView&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.google.android.gcm.server.Message&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.google.android.gcm.server.MulticastResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.google.android.gcm.server.Sender&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.pushnotifications.NotificationSuccessActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@TargetApi&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;TestActivity&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Activity &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
 String notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 String notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@TargetApi&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
 
 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        setContentView&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_test&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        
      TextView  myText &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; TextView&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getApplicationContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
        myText&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setText&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Success fully registered&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        
        StrictMode&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ThreadPolicy&lt;/span&gt; policy &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; StrictMode&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ThreadPolicy&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Builder&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;permitAll&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;build&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

        StrictMode&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setThreadPolicy&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;policy&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt; 
        Sender sender &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Sender&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     String   regid&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getExtras&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;gcmId&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     
     notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getExtras&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationTitle&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     
     notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getExtras&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  Message message &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Message&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Builder&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addData&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;message&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
    notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;build&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

  

   ArrayList&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; oneDevice &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayList&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;();&lt;/span&gt;
   oneDevice&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;regid&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: grey;&quot;&gt;// MulticastResult result = sender.send(message, oneDevice,&lt;/span&gt;
   &lt;span style=&quot;color: grey;&quot;&gt;// 1);&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    MulticastResult result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; sender&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;send&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; oneDevice&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    sender&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;send&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;message&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; oneDevice&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;IOException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
    e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Message sent to One Device&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
   startActivity&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;TestActivity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; NotificationSuccessActivity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

 
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreateOptionsMenu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Menu menu&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        getMenuInflater&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;inflate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_test&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; menu&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
observe the above java file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;Sender sender &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Sender&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;XXXXXXXXX&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;instead of XXXXXXX you just put your API Key&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;NotificationSuccessActivity.java&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;pushnotifications&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.DroidGap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.Menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.example.sampleandroidpushnotification.R&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;NotificationSuccessActivity&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; DroidGap &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;loadUrl&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file:///android_asset/www/success.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreateOptionsMenu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Menu menu&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  getMenuInflater&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;inflate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;activity_main&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; menu&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre style=&quot;line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;PushNotificationPlugin.java&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;pushnotifications&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.api.Plugin&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.api.PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.api.PluginResult.Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONArray&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.example.sampleandroidpushnotification.MainActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;PushNotificationPlugin&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Plugin &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; String ACTION_SEND_NOTIFICATION &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PushNotification&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; PluginResult &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; JSONArray arg1&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String callbackId&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  PluginResult result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Status&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;ACTION_SEND_NOTIFICATION&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    String notificationTitle &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; arg1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    String notificationMessage &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; arg1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    sendNotification&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Status&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;JSONException ex&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Status&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;JSON_EXCEPTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
      ex&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getMessage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; result&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendNotification&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: grey;&quot;&gt;//intent = new Intent().setClass(this.cordova.getActivity(), org.apache.cordova.DroidGap.class);&lt;/span&gt;
   Intent intent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt; MainActivity&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;


            intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationTitle&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notificationTitle&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;   
            intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; notificationMessage&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;  
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;startActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;intent&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
index.html&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt; Push Notification &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt; 
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery-1.8.2.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery.mobile-1.2.0.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;cordova-2.3.0.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;pushnotification.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; onDeviceReady () {
   $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#send&#39;&lt;/span&gt;).bind(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;click&#39;&lt;/span&gt;, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
   &lt;span style=&quot;color: grey;&quot;&gt;//alert(&#39;notificationTitle: &#39; + $(&#39;#notificationTitle&#39;).val() + &#39; notificationMessage: &#39; + $(&#39;#notificationMessage&#39;).val());&lt;/span&gt;
   &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins.pushnotification.send($(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#notificationTitle&#39;&lt;/span&gt;).val(),
                       $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#notificationMessage&#39;&lt;/span&gt;).val(),
                       &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
   alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;notificationMessage sent successfully&#39;&lt;/span&gt;); 
   },
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (e) {
        alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;notificationMessage Failed:&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; e);
        }
   );
   });
   
   $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#send_by_lkr&#39;&lt;/span&gt;).bind(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;click&#39;&lt;/span&gt;, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
    &lt;span style=&quot;color: grey;&quot;&gt;//alert(&#39;notificationTitle: &#39; + $(&#39;#notificationTitle&#39;).val() + &#39; notificationMessage: &#39; + $(&#39;#notificationMessage&#39;).val());&lt;/span&gt;
    &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins.pushnotification.send_by_lkr($(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#notificationTitle&#39;&lt;/span&gt;).val(),
                        $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#notificationMessage&#39;&lt;/span&gt;).val(),
                        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
    alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;notificationMessage sent successfully&#39;&lt;/span&gt;); 
    },
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (e) {
         alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;notificationMessage Failed:&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; e);
         }
    );
    });
        }
        &lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.addEventListener(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;deviceready&quot;&lt;/span&gt;, onDeviceReady, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;);
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;link&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/css&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery.mobile-1.2.0.min.css&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;content=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;width=device-width; height=device-height; user-scalable=no&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startPage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;page&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-theme=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;a&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;header&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;PushNotification Demo&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;content&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;label for=&quot;notificationTitle&quot;&amp;gt;Notification Title:&amp;lt;/label&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;input type=&quot;tel&quot; id=&quot;notificationTitle&quot; name=&quot;notificationTitle&quot; placeholder=&quot;Notificatio Title&quot;/&amp;gt; --&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;label&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;for=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;notificationMessage:&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textarea&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;notificationMessage&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt; 
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;send&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;button&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;Send&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;a href=&quot;#&quot; id=&quot;send_by_lkr&quot; data-role=&quot;button&quot;&amp;gt;send_by_lkr&amp;lt;/a&amp;gt;  --&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
pushnotification.js&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; PushNotificationPlugin &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {};

PushNotificationPlugin.prototype.send &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (notificationTitle, notificationMessage) {
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; PhoneGap.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;,&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt; , &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;PushNotificationPlugin&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PushNotification&quot;&lt;/span&gt;, [notificationTitle, notificationMessage]);
};

PushNotificationPlugin.prototype.send_by_lkr &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(notificationTitle, notificationMessage) {
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;._onEvent, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;._onError, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PushNotificationPlugin&quot;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PushNotification&quot;&lt;/span&gt;, [notificationTitle, notificationMessage]);
};

&lt;span style=&quot;color: grey;&quot;&gt;/*PhoneGap.addConstructor(function() {&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; alert(&quot;helllo&quot;);&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    PhoneGap.addPlugin(&quot;pushnotification&quot;, new PushNotificationPlugin());&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;});*/&lt;/span&gt;

cordova.addConstructor(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() {
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.pushnotification &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PushNotificationPlugin();
 &lt;span style=&quot;color: grey;&quot;&gt;// backwards compatibility &lt;/span&gt;
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins &lt;span style=&quot;color: #303030;&quot;&gt;||&lt;/span&gt; {};
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins.pushnotification &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.pushnotification;
});

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Method called when the child browser has an event.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
PushNotificationPlugin.prototype._onEvent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(data) {
    &lt;span style=&quot;color: grey;&quot;&gt;/*if (data.type == PushNotificationPlugin.CLOSE_EVENT &amp;amp;&amp;amp; typeof window.plugins.childBrowser.onClose === &quot;function&quot;) {&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;        window.plugins.childBrowser.onClose();&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    }&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    if (data.type == ChildBrowser.LOCATION_CHANGED_EVENT &amp;amp;&amp;amp; typeof window.plugins.childBrowser.onLocationChange === &quot;function&quot;) {&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;        window.plugins.childBrowser.onLocationChange(data.location);&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    }*/&lt;/span&gt;
 
 alert(data&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;   success&quot;&lt;/span&gt;);
};

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Method called when the child browser has an error.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
PushNotificationPlugin.prototype._onError &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(data) {
    &lt;span style=&quot;color: grey;&quot;&gt;/*if (typeof window.plugins.childBrowser.onError === &quot;function&quot;) {&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;        window.plugins.childBrowser.onError(data);&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    }*/&lt;/span&gt;
 alert(data&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot; error&quot;&lt;/span&gt;);
};
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
success.html&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt; Push Notification &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt; 
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery-1.8.2.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery.mobile-1.2.0.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;cordova-2.3.0.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;pushnotification.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;link&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/css&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jquery.mobile-1.2.0.min.css&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;content=&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;width=device-width; height=device-height; user-scalable=no&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startPage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;page&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-theme=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;a&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;header&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;PushNotification Demo&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;data-role=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;content&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt; notificaion success fully sent&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;a href=&quot;#&quot; id=&quot;send_by_lkr&quot; data-role=&quot;button&quot;&amp;gt;send_by_lkr&amp;lt;/a&amp;gt;  --&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
config.xml&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!--&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       Licensed to the Apache Software Foundation (ASF) under one&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       or more contributor license agreements.  See the NOTICE file&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       distributed with this work for additional information&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       regarding copyright ownership.  The ASF licenses this file&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       to you under the Apache License, Version 2.0 (the&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       &quot;License&quot;); you may not use this file except in compliance&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       with the License.  You may obtain a copy of the License at&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;         http://www.apache.org/licenses/LICENSE-2.0&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;       Unless required by applicable law or agreed to in writing,&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       software distributed under the License is distributed on an&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       KIND, either express or implied.  See the License for the&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       specific language governing permissions and limitations&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       under the License.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;--&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cordova&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!--&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    access elements control the Android whitelist.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    Domains are assumed blocked unless set otherwise&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;access&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;origin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://127.0.0.1*&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- allow local pages --&amp;gt;&lt;/span&gt;


    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;https://example.com&quot; /&amp;gt; allow any secure requests to example.com --&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;https://example.com&quot; subdomains=&quot;true&quot; /&amp;gt; such as above, but including subdomains, such as www --&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;.*&quot;/&amp;gt; Allow all domains, suggested development use only --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;log&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;level=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;DEBUG&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;preference&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;useBrowserHistory&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugins&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;App&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.App&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Geolocation&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.GeoBroker&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Device&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Device&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Accelerometer&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.AccelListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Compass&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.CompassListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Media&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.AudioHandler&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Camera&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.CameraLauncher&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Contacts&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.ContactManager&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;File&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.FileUtils&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;NetworkStatus&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.NetworkManager&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt; 
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Notification&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Notification&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Storage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Storage&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Temperature&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.TempListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;FileTransfer&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.FileTransfer&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Capture&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Capture&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Battery&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.BatteryListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PushNotificationPlugin&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.pushnotifications.PushNotificationPlugin&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/plugins&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/cordova&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
manifest.xml&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;manifest&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns:android=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;package=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.example.sampleandroidpushnotification&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionCode=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionName=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-sdk&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:minSdkVersion=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;8&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:targetSdkVersion=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.INTERNET&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_NETWORK_STATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;permission&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.example.sampleandroidpushnotification.permission.C2D_MESSAGE&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:protectionLevel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;signature&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.GET_ACCOUNTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.BROADCAST_STICKY&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.WAKE_LOCK&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.google.android.c2dm.permission.RECEIVE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.example.sampleandroidpushnotification.permission.C2D_MESSAGE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.GET_ACCOUNTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.USE_CREDENTIALS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.VIBRATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.android.vending.BILLING&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;application&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:icon=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@drawable/ic_launcher&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:theme=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@style/AppTheme&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;.LKRActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/title_activity_main&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.action.MAIN&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;category&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;

        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;receiver&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.google.android.gcm.GCMBroadcastReceiver&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:permission=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.google.android.c2dm.permission.SEND&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.google.android.c2dm.intent.RECEIVE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.google.android.c2dm.intent.REGISTRATION&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;category&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.example.sampleandroidpushnotification&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/receiver&amp;gt;&lt;/span&gt;

        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;service&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.example.sampleandroidpushnotification.GCMIntentService&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;.TestActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/title_activity_test&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
            
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;.MainActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/title_activity_main&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        
       &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.pushnotifications.NotificationSuccessActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/title_activity_main&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt; 
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/application&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/manifest&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Note:::&lt;br /&gt;
&lt;br /&gt;
you have gcm.jar, gcm-server.jar,JavaPNS_2.3_Beta_2.jar,json-simple-1.1.jar,&lt;br /&gt;
&lt;br /&gt;
the above jar files are there in your libs folder&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/3919489414976909821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2013/04/sending-android-push-notification-in-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3919489414976909821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3919489414976909821'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2013/04/sending-android-push-notification-in-my.html' title='Sending Android Push Notification in My Phonegap Application'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqQ3eUg78LH9e7Fiuz6Z9nWa04Y8GyUODQ1O45pE3dfHia-q3LmXiorQ7oM6xrsdjm48_2bB5XU4CV0LAcqjEkliXrlTSvsAPRHJQqrhT1DlCDJ1P2gtSNCU3MJEzAWs-zp-0sG6RhoGA/s72-c/structure.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-3736659326364243802</id><published>2013-02-21T21:46:00.000-08:00</published><updated>2013-02-21T22:49:31.699-08:00</updated><title type='text'>Integrating Jasper Reports With Struts2-jasper Plugin</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;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;
For integrating your jasper report into the web application with struts2-jasper-plugin,&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
you need to do the following things&lt;br /&gt;
&lt;br /&gt;
struts.xml&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;&quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;&quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;struts&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.devMode&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;constant name=&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.action.excludePattern&quot;&lt;/span&gt; value=&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/servlets/.*&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;&lt;/b&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;package&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;default &quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;namespace=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #0000c0;&quot;&gt;extends=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts-default,json-default,&lt;span style=&quot;color: orange;&quot;&gt;jasperreport-default&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result-types&amp;gt;&lt;/span&gt;
   &lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;&amp;lt;result-type name=&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jasper&quot;&lt;/span&gt; class=&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.struts2.views.jasperreports.JasperReportsResult&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;&lt;/b&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result-types&amp;gt;&lt;/span&gt;
  
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myJasperTest&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.jasper.admin.action.JasperAction&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;success&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jasper&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;location&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;/WEB-INF/classes/jasper/our_compiled_template.jasper&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
             &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;dataSource&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;myList&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
             &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;format&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;HTML&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
             &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;imageServletUrl&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;/servlets/image?image=&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
         &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/package&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/struts&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
in the above struts.xml observe orange color line, these lines are very important for struts-jasper-plugin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
JasperAction.java&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;jasper&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;admin&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.ArrayList&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletRequest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.struts2.interceptor.ServletRequestAware&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;net.sf.jasperreports.engine.JasperCompileManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.opensymphony.xwork2.ActionSupport&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @author KONDA REDDY&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;JasperAction&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; ActionSupport &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;implements&lt;/span&gt; ServletRequestAware&lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/** List to use as our JasperReports dataSource. */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Person&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; myList&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; HttpServletRequest request &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    
    &lt;span style=&quot;color: grey;&quot;&gt;/* (non-Javadoc)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @see org.apache.struts2.interceptor.ServletRequestAware#setServletRequest(javax.servlet.http.HttpServletRequest)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setServletRequest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpServletRequest request&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;request&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; request&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

        &lt;span style=&quot;color: grey;&quot;&gt;// Create some imaginary persons.&lt;/span&gt;
        Person p1 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Person&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Long&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;KONDA REDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;LINGAMDINNE&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        Person p2 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Person&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Long&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;PRASAD REDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;LINGAMDINNE&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        Person p3 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Person&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Long&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;VENKATA JAYA SAI DEEP KUMAR REDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;ANNAPUREDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        Person p4 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Person&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Long&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;KRANTHI KUMAR REDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;ANNAPUREDDY&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

        &lt;span style=&quot;color: grey;&quot;&gt;// Store people in our dataSource list (normally they would come from a database).&lt;/span&gt;
        myList &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayList&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Person&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;();&lt;/span&gt;
        myList&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;p1&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        myList&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;p2&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        myList&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;p3&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        myList&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;p4&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        
        String dir &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; request&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getRealPath&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

        &lt;span style=&quot;color: grey;&quot;&gt;// Normally we would provide a pre-compiled .jrxml file&lt;/span&gt;
        &lt;span style=&quot;color: grey;&quot;&gt;// or check to make sure we don&#39;t compile on every request.&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            JasperCompileManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;compileReportToFile&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;dir&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/WEB-INF/classes/jasper/our_jasper_template.jrxml&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; dir&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/WEB-INF/classes/jasper/our_compiled_template.jasper&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; ERROR&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; SUCCESS&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;Person&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; getMyList&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; myList&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Person.java&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;jasper&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;admin&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @author KONDA REDDY&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;Person&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; Long id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; String name&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; String lastName&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;Person&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param name&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param lastName&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;Person&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String name&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String lastName&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; name&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastName&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; lastName&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param id&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param name&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param lastName&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;Person&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Long id&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String name&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String lastName&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; name&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastName&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; lastName&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return the id&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; Long &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param id the id to set&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Long id&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return the name&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; name&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param name the name to set&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String name&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;name&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; name&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @return the lastName&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getLastName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; lastName&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @param lastName the lastName to set&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setLastName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String lastName&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastName&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; lastName&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
our_jasper_template.jrxml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- Created with Jaspersoft Studio version last--&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;jasperReport&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://jasperreports.sourceforge.net/jasperreports&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jasper_test&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;pageWidth=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;595&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;pageHeight=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;842&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;columnWidth=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;555&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;leftMargin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rightMargin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;topMargin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;bottomMargin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;d22f49ae-9929-44f6-8c5c-ee34a0587e14&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.jaspersoft.studio.data.defaultdataadapter&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;One Empty Record&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;style&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Title&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;forecolor=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#FFFFFF&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;fontName=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;fontSize=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;50&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;isBold=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;pdfFontName=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Times-Bold&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;field&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;name&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;java.lang.String&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;field&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lastName&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;java.lang.String&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;65&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;frame&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;19675ab3-ade7-4b13-b4f8-6af91e4d3bcf&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;mode=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Opaque&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;555&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;65&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;forecolor=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#006699&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;backcolor=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#006699&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;staticText&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;19325fe6-91bb-4925-8637-30b76da773cb&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;style=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Title&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;555&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;65&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;textAlignment=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Right&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;font&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;size=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;54&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;isBold=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textElement&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[Konda Reddy]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/staticText&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/frame&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/band&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;pageHeader&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/pageHeader&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;columnHeader&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;staticText&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;6b8becc8-fd1a-441c-ad9f-e02c1acb220a&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;font&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;isUnderline=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textElement&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[NAME]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/staticText&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;staticText&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;5aabd0db-f280-48fa-a018-2e6055e8c701&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;360&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement&amp;gt;&lt;/span&gt;
     &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;font&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;isUnderline=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textElement&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[LASTNAME]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/staticText&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/band&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/columnHeader&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;detail&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textField&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;3265c8f6-f7e5-482d-b555-af4db49f206b&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textFieldExpression&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[$F{name}]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textFieldExpression&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textField&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textField&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;57a43440-4996-4ef4-87da-525f76f87da5&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;360&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;180&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textFieldExpression&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[$F{lastName}]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textFieldExpression&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textField&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/band&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/detail&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;columnFooter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/columnFooter&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;pageFooter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;staticText&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;9c36d27e-b869-41d6-9424-f3900f7626c8&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;40&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;text&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[Page:]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/staticText&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textField&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;reportElement&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;uuid=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;d0ae07db-5f4d-458b-beb2-b49566c42e88&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;x=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;40&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;y=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;100&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textElement/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;textFieldExpression&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;![CDATA[$V{PAGE_NUMBER}]]&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textFieldExpression&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/textField&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/band&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/pageFooter&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;band&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;splitType=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/jasperReport&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
web.xml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;web-app&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns:xsi=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;starter&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;2.4&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://java.sun.com/xml/ns/j2ee&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;LKREDDY&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;

   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;action2&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-class&amp;gt;&lt;/span&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-class&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- END SNIPPET: filter --&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-mapping&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;action2&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/*&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/span&gt;
    
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;ImageServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-class&amp;gt;&lt;/span&gt;net.sf.jasperreports.j2ee.servlets.ImageServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;
 
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;ImageServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/servlets/image&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- Welcome file lists --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;welcome-file-list&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;welcome-file&amp;gt;&lt;/span&gt;index.jsp&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/welcome-file&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;session-config&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;session-timeout&amp;gt;&lt;/span&gt;30&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/session-timeout&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/session-config&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
index.jsp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;&amp;lt;&lt;/span&gt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;
 pageEncoding=&quot;ISO-8859-1&quot;%&amp;gt;
&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;&amp;lt;&lt;/span&gt;%@ taglib uri=&quot;/struts-tags&quot; prefix=&quot;s&quot;%&amp;gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;http-equiv=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Content-Type&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;content=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/html; charset=ISO-8859-1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;language=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;JavaScript&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; calcHeight() {
  &lt;span style=&quot;color: grey;&quot;&gt;//find the height of the internal page&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; the_height &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.getElementById(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;the_iframe&#39;&lt;/span&gt;).contentWindow.&lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.body.scrollHeight;
  &lt;span style=&quot;color: grey;&quot;&gt;//change the height of the iframe&lt;/span&gt;
  &lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.getElementById(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;the_iframe&#39;&lt;/span&gt;).height &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; the_height;
 }
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Insert title here&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;s:url&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jasperList&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;action=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;myJasperTest&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/s:url&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;s:a&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;%{jasperList}&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;jasperList&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/s:a&amp;gt;&lt;/span&gt;

 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;iframe&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;the_iframe&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;onLoad=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;calcHeight();&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&lt;span style=&quot;line-height: 125%;&quot;&gt;myJasperTest&lt;/span&gt;&lt;span style=&quot;line-height: 125%;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; line-height: 125%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #0000c0; line-height: 125%;&quot;&gt;scrolling=&lt;/span&gt;&lt;span style=&quot;line-height: 125%;&quot;&gt;&quot;NO&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; line-height: 125%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #0000c0; line-height: 125%;&quot;&gt;frameborder=&lt;/span&gt;&lt;span style=&quot;line-height: 125%;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; line-height: 125%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #0000c0; line-height: 125%;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;line-height: 125%;&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #007000; line-height: 125%;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;  An iframe capable browser is required to view this report. &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/3736659326364243802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2013/02/integrating-jasper-reports-with-struts2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3736659326364243802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3736659326364243802'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2013/02/integrating-jasper-reports-with-struts2.html' title='Integrating Jasper Reports With Struts2-jasper Plugin'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-2341416262962448389</id><published>2012-12-11T21:34:00.000-08:00</published><updated>2012-12-11T21:34:00.702-08:00</updated><title type='text'>Sending An e-mail with attachment in my Phonegap Android Application</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;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;div&gt;
EmailActivity.java&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;androidemail&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.DroidGap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;EmailActivity&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; DroidGap &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;loadUrl&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file:///android_asset/www/index.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
WebIntent.java&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;borismus&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;webintent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.File&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileNotFoundException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.OutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.HashMap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.Map&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.DroidGap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.api.Plugin&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.cordova.api.PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONArray&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.graphics.Bitmap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.net.Uri&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Environment&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.text.Html&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.View&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * WebIntent is a PhoneGap plugin that bridges Android intents and web&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * applications:&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * 1. web apps can spawn intents that call native Android applications. 2.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * (after setting up correct intent filters for PhoneGap applications), Android&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * intents can be handled by PhoneGap web applications.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @author boris@borismus.com&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;WebIntent&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Plugin &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; String onNewIntentCallback &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Executes the request and returns PluginResult.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param action&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *            The action to execute.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param args&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *            JSONArray of arguments for the plugin.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param callbackId&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *            The callback id used when calling back into JavaScript.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @return A PluginResult object with a status and message.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; PluginResult &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; JSONArray args&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String callbackId&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startActivity&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                &lt;span style=&quot;color: grey;&quot;&gt;// Parse the arguments&lt;/span&gt;
                JSONObject obj &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getJSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                String type &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                Uri uri &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; Uri&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                JSONObject extras &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;extras&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getJSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;extras&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                Map&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; extrasMap &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; HashMap&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;();&lt;/span&gt;

                &lt;span style=&quot;color: grey;&quot;&gt;// Populate the extras if any exist&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;extras &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    JSONArray extraNames &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;names&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt; extraNames&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                        String key &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extraNames&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;i&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                        String value &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                        extrasMap&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; value&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                startActivity&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;action&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; uri&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; type&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; extrasMap&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hasExtra&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
                Intent i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;DroidGap&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getIntent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                String extraName &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;hasExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;extraName&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;getExtra&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
                Intent i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;DroidGap&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getIntent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                String extraName &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;hasExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;extraName&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getStringExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;extraName&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ERROR&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;getUri&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                Intent i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;DroidGap&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getIntent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                String uri &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getDataString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; uri&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;onNewIntent&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onNewIntentCallback&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; callbackId&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                PluginResult result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;NO_RESULT&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                result&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setKeepCallback&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; result&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;sendBroadcast&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; 
            &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                &lt;span style=&quot;color: grey;&quot;&gt;// Parse the arguments&lt;/span&gt;
                JSONObject obj &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getJSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

                JSONObject extras &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;extras&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getJSONObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;extras&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                Map&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; extrasMap &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; HashMap&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;();&lt;/span&gt;

                &lt;span style=&quot;color: grey;&quot;&gt;// Populate the extras if any exist&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;extras &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    JSONArray extraNames &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;names&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt; extraNames&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                        String key &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extraNames&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;i&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                        String value &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                        extrasMap&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; value&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

                sendBroadcast&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;obj&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;action&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; extrasMap&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;INVALID_ACTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;JSONException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;JSON_EXCEPTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onNewIntent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent intent&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onNewIntentCallback&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            PluginResult result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getDataString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
            result&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setKeepCallback&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;success&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;result&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onNewIntentCallback&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;startActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Uri uri&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String type&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Map&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        Intent i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;uri &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; uri&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
        
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;type &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; uri &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setDataAndType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;uri&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; type&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;//Fix the crash problem with android 2.3.6&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;type &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;type&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
        
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String key &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;keySet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            String value &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: grey;&quot;&gt;// If type is text html, the extra text must sent as HTML&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;EXTRA_TEXT&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; type&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/html&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Html&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;fromHtml&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;value&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;EXTRA_STREAM&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
             &lt;span style=&quot;color: grey;&quot;&gt;// image naming and path  to include sd card&lt;/span&gt;
                String mPath &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Environment&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getExternalStorageDirectory&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/abc.png&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;   

                &lt;span style=&quot;color: grey;&quot;&gt;// create bitmap screen capture&lt;/span&gt;
                Bitmap bitmap&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                View v1 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ctx&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getCurrentFocus&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                v1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setDrawingCacheEnabled&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                bitmap &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Bitmap&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;createBitmap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;v1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getDrawingCache&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
                v1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setDrawingCacheEnabled&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

                OutputStream fout &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                File imageFile &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; File&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mPath&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    fout &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; FileOutputStream&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;imageFile&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                    bitmap&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;compress&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bitmap&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;CompressFormat&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;JPEG&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; fout&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                    fout&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;flush&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                    fout&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;FileNotFoundException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
                    e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;IOException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;
                    e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
             
                &lt;span style=&quot;color: grey;&quot;&gt;// allowes sharing of images as attachments.&lt;/span&gt;
                &lt;span style=&quot;color: grey;&quot;&gt;// value in this case should be a URI of a file&lt;/span&gt;
                
                System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;image path is:&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;mPath&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;streammmmmmm:&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;EXTRA_STREAM&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Uri&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;value&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;EXTRA_EMAIL&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: grey;&quot;&gt;// allows to add the email address of the receiver&lt;/span&gt;
                i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;EXTRA_EMAIL&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;[]&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt; value &lt;span style=&quot;color: #303030;&quot;&gt;});&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                i&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; value&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;startActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;i&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;sendBroadcast&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Map&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;String&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        Intent intent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
        intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setAction&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String key &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;keySet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            String value &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; extras&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;key&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; value&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

        &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;DroidGap&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;cordova&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;sendBroadcast&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;intent&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
index.html&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Cordova&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;cordova-2.0.0.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;webintent.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;


 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; gomail(){
 alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;mail going&quot;&lt;/span&gt;);
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; extras &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; {};
   extras[WebIntent.EXTRA_SUBJECT] &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;subject&quot;&lt;/span&gt;;
   extras[WebIntent.EXTRA_TEXT] &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;body&quot;&lt;/span&gt;;
   extras[WebIntent.EXTRA_STREAM]&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file:///mnt/sdcard/abc.png&quot;&lt;/span&gt;;
   WebIntent.prototype.startActivity({ 
       action&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; WebIntent.ACTION_SEND,
       type&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;application/octet-stream&#39;&lt;/span&gt;, 
       extras&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; extras 
     }, 
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() {
      alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;success&quot;&lt;/span&gt;);
     }, 
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() {
       alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;Failed to send email via Android Intent&#39;&lt;/span&gt;);
     }
   ); 
}
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
 

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
  
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Email sending&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;onclick=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;gomail();&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;emailll&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
  
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;   
  
 
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
webintent.js&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * cordova Web Intent plugin&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Copyright (c) Boris Smus 2010&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; WebIntent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() { 

};

WebIntent.ACTION_SEND &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.action.SEND&quot;&lt;/span&gt;;
WebIntent.ACTION_VIEW&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.action.VIEW&quot;&lt;/span&gt;;
WebIntent.EXTRA_TEXT &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.extra.TEXT&quot;&lt;/span&gt;;
WebIntent.EXTRA_SUBJECT &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.extra.SUBJECT&quot;&lt;/span&gt;;
WebIntent.EXTRA_STREAM &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.extra.STREAM&quot;&lt;/span&gt;;
WebIntent.EXTRA_EMAIL &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.extra.EMAIL&quot;&lt;/span&gt;;

WebIntent.prototype.startActivity &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(params, success, fail) {
 alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;webintent&quot;&lt;/span&gt;);
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        success(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        fail(args);
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;startActivity&#39;&lt;/span&gt;, [params]);
};

WebIntent.prototype.hasExtra &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(params, success, fail) {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        success(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        fail(args);
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;hasExtra&#39;&lt;/span&gt;, [params]);
};

WebIntent.prototype.getUri &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(success, fail) {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        success(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        fail(args);
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;getUri&#39;&lt;/span&gt;, []);
};

WebIntent.prototype.getExtra &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(params, success, fail) {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        success(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        fail(args);
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;getExtra&#39;&lt;/span&gt;, [params]);
};


WebIntent.prototype.onNewIntent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(callback) {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
  callback(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;onNewIntent&#39;&lt;/span&gt;, []);
};

WebIntent.prototype.sendBroadcast &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(params, success, fail) {
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; cordova.exec(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        success(args);
    }, &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(args) {
        fail(args);
    }, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WebIntent&#39;&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;sendBroadcast&#39;&lt;/span&gt;, [params]);
};

cordova.addConstructor(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() {
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.webintent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; WebIntent();
 
 &lt;span style=&quot;color: grey;&quot;&gt;// backwards compatibility &lt;/span&gt;
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins &lt;span style=&quot;color: #303030;&quot;&gt;||&lt;/span&gt; {};
 &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.plugins.webintent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.webintent;
});
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
config.xml&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!--&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       Licensed to the Apache Software Foundation (ASF) under one&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       or more contributor license agreements.  See the NOTICE file&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       distributed with this work for additional information&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       regarding copyright ownership.  The ASF licenses this file&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       to you under the Apache License, Version 2.0 (the&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       &quot;License&quot;); you may not use this file except in compliance&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       with the License.  You may obtain a copy of the License at&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;         http://www.apache.org/licenses/LICENSE-2.0&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;       Unless required by applicable law or agreed to in writing,&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       software distributed under the License is distributed on an&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       KIND, either express or implied.  See the License for the&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       specific language governing permissions and limitations&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;       under the License.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;--&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cordova&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!--&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    access elements control the Android whitelist.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;    Domains are assumed blocked unless set otherwise&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;access&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;origin=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://127.0.0.1*&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- allow local pages --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;https://example.com&quot; /&amp;gt; allow any secure requests to example.com --&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;https://example.com&quot; subdomains=&quot;true&quot; /&amp;gt; such as above, but including subdomains, such as www --&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!-- &amp;lt;access origin=&quot;.*&quot;/&amp;gt; Allow all domains, suggested development use only --&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;log&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;level=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;DEBUG&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;preference&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;useBrowserHistory&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugins&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;App&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.App&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Geolocation&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.GeoBroker&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Device&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Device&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Accelerometer&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.AccelListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Compass&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.CompassListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Media&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.AudioHandler&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Camera&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.CameraLauncher&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Contacts&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.ContactManager&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;File&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.FileUtils&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;NetworkStatus&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.NetworkManager&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Notification&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Notification&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Storage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Storage&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Temperature&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.TempListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;FileTransfer&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.FileTransfer&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Capture&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.Capture&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Battery&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.BatteryListener&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;SplashScreen&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;org.apache.cordova.SplashScreen&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;plugin&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;WebIntent&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.borismus.webintent.WebIntent&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/plugins&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/cordova&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
AndroidManifest.xml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;manifest&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns:android=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;package=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.androidemail&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionCode=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionName=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-sdk&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:minSdkVersion=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;8&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:targetSdkVersion=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;15&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;supports-screens&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:anyDensity=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:largeScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:normalScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:resizeable=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:smallScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.VIBRATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_COARSE_LOCATION&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_FINE_LOCATION&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.READ_PHONE_STATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.INTERNET&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.RECEIVE_SMS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.RECORD_AUDIO&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.MODIFY_AUDIO_SETTINGS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.READ_CONTACTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.WRITE_CONTACTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_NETWORK_STATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.GET_ACCOUNTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.BROADCAST_STICKY&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;application&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:icon=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@drawable/ic_launcher&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:theme=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@style/AppTheme&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;.EmailActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/title_activity_email&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.action.MAIN&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;category&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
                
                
                
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/application&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/manifest&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/2341416262962448389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/12/sending-e-mail-with-attachment-in-my.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2341416262962448389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2341416262962448389'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/12/sending-e-mail-with-attachment-in-my.html' title='Sending An e-mail with attachment in my Phonegap Android Application'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-5089132022136424445</id><published>2012-08-13T00:27:00.002-07:00</published><updated>2012-08-13T00:27:12.370-07:00</updated><title type='text'>File Uploading Using Java(Servlet)</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;
index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;http-equiv=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Content-Type&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;content=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/html; charset=UTF-8&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;jQuery File Upload Example&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;link&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;theme&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;link&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;fileupload/jquery.fileupload-ui.css&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;form&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_upload&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;action=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;upload&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;method=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;POST&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;enctype=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;multipart/form-data&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;p&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;drop_zone_1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;input&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_1&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_1&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;multiple&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;p&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;drop_zone_2&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;input&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_2&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_2&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;multiple&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;p&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;drop_zone_3&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;input&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_3&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;file_3&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;multiple&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;button&amp;gt;&lt;/span&gt;Upload&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
    
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;table&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;files_1&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;style=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;background:yellow;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;table&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;files_2&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;style=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;background:blue;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;table&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;files_3&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;style=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;background:orange;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;


&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;fileupload/jquery.fileupload.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;fileupload/jquery.fileupload-ui.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/*global $ */&lt;/span&gt;
  $(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; initFileUpload &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (suffix) {
        $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#file_upload&#39;&lt;/span&gt;).fileUploadUI({
            namespace&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;file_upload_&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; suffix,
            fileInputFilter&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#file_&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; suffix,
            dropZone&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#drop_zone_&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; suffix),
            uploadTable&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#files_&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; suffix),
            downloadTable&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;#files_&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; suffix),
            buildUploadRow&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (files, index) {
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; files[index].name &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;\/td&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
                        &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;td class=&quot;file_upload_progress&quot;&amp;gt;&amp;lt;div&amp;gt;&amp;lt;\/div&amp;gt;&amp;lt;\/td&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
                        &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;td class=&quot;file_upload_cancel&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
                        &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;button class=&quot;ui-state-default ui-corner-all&quot; title=&quot;Cancel&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
                        &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;span class=&quot;ui-icon ui-icon-cancel&quot;&amp;gt;Cancel&amp;lt;\/span&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
                        &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;\/button&amp;gt;&amp;lt;\/td&amp;gt;&amp;lt;\/tr&amp;gt;&#39;&lt;/span&gt;);
            },
            buildDownloadRow&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; (file) {
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; $(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; file.name &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;\/td&amp;gt;&amp;lt;\/tr&amp;gt;&#39;&lt;/span&gt;);
            }
        });
    };
    initFileUpload(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;);
    initFileUpload(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;2&lt;/span&gt;);
    initFileUpload(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;3&lt;/span&gt;);
});  
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt; 

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
UploadServlet.java&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.ByteArrayOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.File&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileNotFoundException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.InputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.PrintWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.ServletContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.ServletException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServlet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletRequest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletResponse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.fileupload.FileItem&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.fileupload.FileUploadException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.fileupload.disk.DiskFileItemFactory&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.fileupload.servlet.ServletFileUpload&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.commons.fileupload.util.Streams&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;UploadServlet&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; HttpServlet &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
	&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; serialVersionUID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1L&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

	&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 *      response)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 */&lt;/span&gt;
	&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;doGet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpServletRequest request&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
			HttpServletResponse response&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; ServletException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
		PrintWriter writer &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
		writer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;call POST with multipart form data&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
	&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

	&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 *      response)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 * &lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;	 */&lt;/span&gt;
	&lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@SuppressWarnings&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;unchecked&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
	&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;doPost&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpServletRequest request&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
			HttpServletResponse response&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; ServletException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
		&lt;span style=&quot;color: grey;&quot;&gt;// System.out.println(&quot;path is :::::&quot; + request.getContextPath());&lt;/span&gt;
		&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(!&lt;/span&gt;ServletFileUpload&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;isMultipartContent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;request&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
			&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;IllegalArgumentException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
					&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Request is not multipart, please &#39;multipart/form-data&#39; enctype for your form.&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
		&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

		ServletFileUpload uploadHandler &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; ServletFileUpload&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
				&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;DiskFileItemFactory&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
		PrintWriter writer &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
		response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setContentType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/plain&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
		&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
			List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;FileItem&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; items &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; uploadHandler&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;parseRequest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;request&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
			&lt;span style=&quot;color: grey;&quot;&gt;// System.out.println(&quot;path is:&quot;);&lt;/span&gt;
			&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;FileItem item &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; items&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
				&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;isFormField&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
					&lt;span style=&quot;color: grey;&quot;&gt;// Normal field&lt;/span&gt;
					String name &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getFieldName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
					String value &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Streams&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;asString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
					&lt;span style=&quot;color: grey;&quot;&gt;// System.out.println(&quot;value is:&quot; + value);&lt;/span&gt;
				&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
					String filePath &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;E:/BabysFirstear_Media/&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
					File file&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; 
					&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(!&lt;/span&gt;item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;isFormField&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
				        String fieldName &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getFieldName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
				        String fileName &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
				        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;fileName &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
				        	System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;You forgot to choose a file.&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
				        &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; isInMemory &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;isInMemory&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
				        &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; sizeInBytes &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getSize&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
				        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt; fileName&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastIndexOf&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
				          file &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; File&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;filePath &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; fileName&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;substring&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;fileName&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastIndexOf&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)));&lt;/span&gt;
				        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt; 
				          file &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; File&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;filePath &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; fileName&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;substring&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;fileName&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lastIndexOf&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)+&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
				        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
				        item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;file&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
				        System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Uploaded Filename: &quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; filePath &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; fileName &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;, sizeInBytes = &quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; sizeInBytes&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
				      &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
					
					
										
						
						  System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;item name is:::&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
						  item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;//item.write(file);&lt;/span&gt;
						  writer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;{\&quot;name\&quot;:\&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
						  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\&quot;,\&quot;type\&quot;:\&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getContentType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;
						  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\&quot;,\&quot;size\&quot;:\&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; item&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getSize&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;\&quot;}&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;// assume we only get one file at a time&lt;/span&gt;
						 
				&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
			&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

		&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;FileUploadException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
			&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;RuntimeException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;e&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
		&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
			&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;RuntimeException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;e&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
		&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;finally&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
			writer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

		&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

	&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
web.xml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE web-app PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt; &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt; &quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot; &amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Struts 2 Web Application&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;UploadServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-class&amp;gt;&lt;/span&gt;com.lkr.file.UploadServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;UploadServlet&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/upload&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;


	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;welcome-file-list&amp;gt;&lt;/span&gt;
		&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;welcome-file&amp;gt;&lt;/span&gt;index.jsp&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/welcome-file&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;/span&gt;



&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/5089132022136424445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/08/file-uploading-using-javaservlet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/5089132022136424445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/5089132022136424445'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/08/file-uploading-using-javaservlet.html' title='File Uploading Using Java(Servlet)'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-1256951992450553188</id><published>2012-06-15T02:29:00.001-07:00</published><updated>2012-06-15T02:29:54.954-07:00</updated><title type='text'>Eclipse: Writing Better, Faster Java Documentation</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;font-family: arial,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #000099;&quot;&gt;JAutodoc:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: arial,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #000099;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
I&#39;ve started using &lt;a href=&quot;http://jautodoc.sourceforge.net/&quot;&gt;JAutodoc&lt;/a&gt;,
 which is an Eclipse plugin for automatically adding Javadoc to your 
source code. It helps generate the initial Javadoc for methods which 
don&#39;t have them and can even complete existing Javadoc by adding missing
 parameters and return types. I have found this plugin very useful in 
writing documentation fast.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: arial,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let&#39;s say you have the following method which adds two ints:
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; x&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; y&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; x &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; y&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: arial,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To invoke JAutodoc, all you have to do is hit &lt;b&gt;Ctrl+Alt+J&lt;/b&gt; inside the method and the following Javadoc template will be automatically generated, which you can then complete.
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Adds the.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @param x the x&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @param y the y&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * @return the int&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; x&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; y&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; x &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; y&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Later on, if you decide to change this method by adding another parameter to it, you can press &lt;b&gt;Ctrl+Alt+J&lt;/b&gt; again and JAutoDoc will add the new parameter to the Javadoc but leave the rest of it unchanged.&lt;br /&gt;
&lt;br /&gt;

&lt;b&gt;&lt;span style=&quot;color: #000099;&quot;&gt;Enabling Eclipse Javadoc warnings:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
I&#39;ve also found it useful to turn on Eclipse warnings for missing or malformed Javadoc comments. You can do this by going to &lt;b&gt;Window &amp;gt; Preferences&lt;/b&gt; and then selecting &lt;b&gt;Java &amp;gt; Compiler &amp;gt; Javadoc&lt;/b&gt;.
 Tick the box for processing Javadoc comments and select your desired 
severity levels. I&#39;ve got mine set to Warnings for everything. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/1256951992450553188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/eclipse-writing-better-faster-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1256951992450553188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1256951992450553188'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/eclipse-writing-better-faster-java.html' title='Eclipse: Writing Better, Faster Java Documentation'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-4400620218752230355</id><published>2012-06-15T02:08:00.001-07:00</published><updated>2012-06-25T04:41:17.905-07:00</updated><title type='text'>Difference between String and StringBuffer Class</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;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;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;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Java provides the StringBuffer and String classes, and the String 
class is used to manipulate character strings that cannot be changed. 
Simply stated, objects of type String are read only and immutable. The 
StringBuffer class is used to represent characters that can be modified.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The significant performance difference between these two classes is 
that StringBuffer is faster than String when performing simple 
concatenations. In String manipulation code, character strings are 
routinely concatenated. Using the String class, concatenations are 
typically performed as follows:&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;String str &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; String &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Konda&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
str &lt;span style=&quot;color: #303030;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Reddy!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you were to use StringBuffer to perform the same concatenation, you would need code that looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;StringBuffer str &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; StringBuffer &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Konda &quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
str&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Reddy!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Programmers usually assume that the first example above is more 
efficient (Just like me before some days !!!) because they think that 
the second example, which uses the append method for concatenation, is 
more costly than the first example, which uses the + operator to 
concatenate two String objects.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The + operator appears innocent, but the code generated produces some
 surprises. Using a StringBuffer for concatenation can in fact produce 
code that is significantly faster than using a String. To discover why 
this is the case, we must examine the generated bytecode from our two 
examples. The bytecode for the example using String looks like this:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#7&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;3&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;dup&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;ldc&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#2&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;6&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokespecial&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#12&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;9&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;astore_1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#8&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;13&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;dup&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;14&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;aload_1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;15&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokestatic&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#23&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;18&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokespecial&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#13&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;21&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;ldc&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;23&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokevirtual&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#15&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;26&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokevirtual&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#22&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;29&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;astore_1&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
The bytecode at locations 0 through 9 is executed for the first line of code, namely:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;String str &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; String&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Konda &quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Then, the bytecode at location 10 through 29 is executed for the concatenation:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;str &lt;span style=&quot;color: #303030;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Reddy!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&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; Things get interesting here. The bytecode generated for the 
concatenation creates a StringBuilder object, then invokes its append 
method: the temporary StringBuilder object is created at location 10, and
 its append method is called at location 23. Because the String class is
 immutable, a StringBuilder must be used for concatenation.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After the concatenation is performed on the StringBuilder object, it 
must be converted back into a String. This is done with the call to the 
toString method at location 26. This method creates a new String object 
from the temporary StringBuilder object. The creation of this temporary 
StringBuilder object and its subsequent conversion back into a String 
object are very expensive.&lt;br /&gt;
&lt;br /&gt;
In summary, the two lines of code above result in the creation of three objects:&lt;br /&gt;
&lt;br /&gt;
A String object at location 0&lt;br /&gt;
A StringBuilder object at location 10&lt;br /&gt;
A String object at location 26&lt;br /&gt;
&lt;br /&gt;
Now, let’s look at the bytecode generated for the example using StringBuffer:&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#8&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;3&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;dup&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;ldc&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#2&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;6&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokespecial&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#13&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;9&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;astore_1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;aload_1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;11&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;ldc&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#1&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;13&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;invokevirtual&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;#15&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;16&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;pop&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
The bytecode at locations 0 to 9 is executed for the first line of code:&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;StringBuffer str &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; StringBuffer&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;“&lt;/span&gt;Konda &lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
The bytecode at location 10 to 16 is then executed for the concatenation:&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;str&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Reddy!!&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notice that, as is the case in the first example, this code invokes 
the append method of a StringBuffer object. Unlike the first example, 
however, there is no need to create a temporary StringBuilder and then 
convert it into a String object. This code creates only one object, the 
StringBuffer, at location 0.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In conclusion, StringBuffer concatenation is significantly faster 
than String concatenation. Obviously, StringBuffers should be used in 
this type of operation when possible. If the functionality of the String
 class is desired, consider using a StringBuffer for concatenation and 
then performing one conversion to String.&lt;br /&gt;
&lt;br /&gt;
I found this useful piece of information in sun website…&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/4400620218752230355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/difference-between-string-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/4400620218752230355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/4400620218752230355'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/difference-between-string-and.html' title='Difference between String and StringBuffer Class'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-306693622675500231</id><published>2012-06-15T00:03:00.001-07:00</published><updated>2012-06-15T00:03:49.625-07:00</updated><title type='text'>Hibernate Caching Tutorial</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;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;(1) Why Need ?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; While working with Hibernate web applications we will face so many 
problems in its performance due to database traffic. That to when the 
database traffic is very heavy . Actually hibernate is well used just 
because of its high performance only. So some techniques are necessary 
to maintain its performance. Caching is the best technique to solve this
 problem. In this article we will discuss about, how we can improve the 
performance of Hibernate web applications using caching.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The performance of Hibernate web applications is improved using 
caching by optimizing the database applications. The cache actually 
stores the data already loaded from the database, so that the traffic 
between our application and the database will be reduced when the 
application want to access that data again. Maximum the application will
 works with the data in the cache only. Whenever some another data is 
needed, the database will be accessed. Because the time needed to access
 the database is more when compared with the time needed to access the 
cache. So obviously the access time and traffic will be reduced between 
the application and the database. Here the cache stores only the data 
related to current running application. In order to do that, the cache 
must be cleared time to time whenever the applications are changing.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hibernate uses two different caches for objects: first-level cache and second-level cache..&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.1) First-level cache&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First-level&lt;/b&gt; cache always Associates with the &lt;b&gt;Session object&lt;/b&gt;. &lt;b&gt;Hibernate uses this cache by default&lt;/b&gt;. Here, it processes one transaction after another one, means wont process one transaction many times. Mainly it reduces the &lt;b&gt;number of SQL&lt;/b&gt;
 queries it needs to generate within a given transaction. That is 
instead of updating after every modification done in the transaction, it
 updates the transaction only at the end of the transaction.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.2) Second-level cache&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Second-level&lt;/b&gt; cache always associates with the &lt;b&gt;Session Factory object&lt;/b&gt;. While running the transactions, in between it loads the objects at the &lt;b&gt;Session Factory level&lt;/b&gt;,
 so that those objects will available to the entire application, don’t 
bounds to single user. Since the objects are already loaded in the 
cache, whenever an object is returned by the query, at that time no need
 to go for a database transaction. In this way the second level cache 
works. Here we can use &lt;b&gt;query level cache&lt;/b&gt; also. Later we will discuss about it.&lt;br /&gt;
&lt;br /&gt;
(&lt;b&gt;2) Way to Implement It&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hibernate &lt;/b&gt;supports &lt;b&gt;four&lt;/b&gt; open-source &lt;b&gt;cache implementations&lt;/b&gt; named &lt;b&gt;EHCache (Easy Hibernate Cache), OSCache (Open Symphony Cache), Swarm Cache&lt;/b&gt;, and &lt;b&gt;JBoss Tree Cache&lt;/b&gt;. Each cache has different &lt;b&gt;performance, memory use, and configuration possibilities&lt;/b&gt;.&lt;br /&gt;
&lt;h3&gt;





2.1) 2.1 EHCache (Easy Hibernate Cache) (org.hibernate.cache.EhCacheProvider)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;It is &lt;b&gt;fast&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;lightweight&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Easy-to-use&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Supports &lt;b&gt;read-only&lt;/b&gt; and &lt;b&gt;read/write&lt;/b&gt; caching.&lt;/li&gt;
&lt;li&gt;Supports &lt;b&gt;memory-based&lt;/b&gt; and &lt;b&gt;disk-based&lt;/b&gt; caching.&lt;/li&gt;
&lt;/ul&gt;
Does not support &lt;b&gt;clustering&lt;/b&gt;.&lt;br /&gt;
&lt;h3&gt;





2.2)OSCache (Open Symphony Cache) (org.hibernate.cache.OSCacheProvider)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;It is a &lt;b&gt;powerful&lt;/b&gt; .&lt;/li&gt;
&lt;li&gt;&lt;b&gt;flexible&lt;/b&gt; package&lt;/li&gt;
&lt;li&gt;supports &lt;b&gt;read-only&lt;/b&gt; and &lt;b&gt;read/write&lt;/b&gt; caching.&lt;/li&gt;
&lt;li&gt;Supports &lt;b&gt;memory-      based&lt;/b&gt; and &lt;b&gt;disk-based&lt;/b&gt; caching.&lt;/li&gt;
&lt;li&gt;Provides basic      support for &lt;b&gt;clustering&lt;/b&gt; via either &lt;b&gt;JavaGroups or JMS.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;





2.3)SwarmCache (org.hibernate.cache.SwarmCacheProvider)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;is a &lt;b&gt;cluster-based&lt;/b&gt; caching.&lt;/li&gt;
&lt;li&gt;supports &lt;b&gt;read-only&lt;/b&gt; or &lt;b&gt;nonstrict read/write&lt;/b&gt; caching .&lt;/li&gt;
&lt;li&gt;appropriate      for applications those have &lt;b&gt;more read&lt;/b&gt; operations than &lt;b&gt;write&lt;/b&gt; operations.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;





2.4)JBoss TreeCache (org.hibernate.cache.TreeCacheProvider)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;is a &lt;b&gt;powerful      replicated&lt;/b&gt; and &lt;b&gt;transactional&lt;/b&gt; cache.&lt;/li&gt;
&lt;/ul&gt;
useful when we need a true &lt;b&gt;transaction-capable&lt;/b&gt; caching architecture .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(3) Caching Strateties&lt;/b&gt;&lt;br /&gt;
Important thing to remembered while studying this one is &lt;b&gt;none of the cache providers&lt;/b&gt; support all of the &lt;b&gt;cache concurrency strategies.&lt;/b&gt;&lt;br /&gt;
&lt;h3&gt;





3.1) Read-only&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Useful for      data that is &lt;b&gt;read frequently but never updated&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;It is &lt;b&gt;Simple&lt;/b&gt; .&lt;/li&gt;
&lt;li&gt;Best performer      among the all.&lt;/li&gt;
&lt;/ul&gt;
Advantage if this one is, It is &lt;b&gt;safe&lt;/b&gt; for using in a &lt;b&gt;cluster&lt;/b&gt;. Here is an example for using the read-only cache strategy.&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;class&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;abc.mutable &quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;mutable=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true &quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cache&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;usage=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;read-only&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;/class&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;



3.2) Read-Write&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Used when our &lt;b&gt;data&lt;/b&gt; needs to be &lt;b&gt;updated&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;It’s having      more overhead than &lt;b&gt;read-only&lt;/b&gt; caches.&lt;/li&gt;
&lt;li&gt;When &lt;b&gt;Session.close()&lt;/b&gt; or &lt;b&gt;Session.disconnect()&lt;/b&gt; is called the transaction should be      completed in an environment where JTA is no used.&lt;/li&gt;
&lt;li&gt;It is never      used if &lt;b&gt;serializable transaction isolation level&lt;/b&gt; is required.&lt;/li&gt;
&lt;li&gt;In a JTA      environment, for obtaining the JTA &lt;b&gt;TransactionManager&lt;/b&gt; we must      specify the property &lt;b&gt;hibernate.transaction.manager_lookup_class&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;To use it in a      &lt;b&gt;cluster&lt;/b&gt; the cache implementation must support &lt;b&gt;locking&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
Here is an example for using the read-write cache stringategy.&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;class&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;abc.xyz&quot;&lt;/span&gt; &lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;....&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cache&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;usage=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;read-write&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
….
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;set&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;yuv&quot;&lt;/span&gt; &lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;...&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cache&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;usage=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;read-write&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
….
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/set&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;


3.3) Nonstrict read-write&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Needed if the      application needs to &lt;b&gt;update data rarely&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;we must      specify &lt;b&gt;hibernate.transaction.manager_lookup_class &lt;/b&gt;to use this in a      JTA environment .&lt;/li&gt;
&lt;li&gt;The      transaction is completed when &lt;b&gt;Session.close()&lt;/b&gt; or &lt;b&gt;Session.disconnect()&lt;/b&gt; is called In other environments (except JTA) .&lt;/li&gt;
&lt;/ul&gt;
Here is an example for using the nonstrict read-write cache stringategy.&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;                                      
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;class&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;abc.xyz&quot;&lt;/span&gt; &lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;....&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;cache&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;usage=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot; nonstringict-read-write&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
….
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;

3.4) Transactional&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;It supports      only transactional cache providers such as &lt;b&gt;JBoss TreeCache&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;only used in &lt;b&gt;JTA      environment&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;(4)&amp;nbsp; Configuration &lt;/b&gt;&lt;br /&gt;
For &lt;b&gt;configuring cache&lt;/b&gt; the &lt;b&gt;hibernate.cfg.xml&lt;/b&gt; file is used. A typical configuration file is shown below.&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;session-factory&amp;gt;&lt;/span&gt;
               ...
               &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;property&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hibernate.cache.provider_class&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
                       org.hibernate.cache.EHCacheProvider
               &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
               ...
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/session-factory&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
The name in &lt;strong&gt;&amp;lt;property&amp;gt; &lt;/strong&gt;tag must be &lt;strong&gt;hibernate.cache.provider_class&lt;/strong&gt; for activating &lt;strong&gt;second-level cache&lt;/strong&gt;. We can use &lt;strong&gt;hibernate.cache.use_second_level_cache&lt;/strong&gt; property, which allows you to &lt;strong&gt;activate&lt;/strong&gt; and &lt;strong&gt;deactivate&lt;/strong&gt; the &lt;strong&gt;second-level cache&lt;/strong&gt;. By &lt;strong&gt;default&lt;/strong&gt;, the &lt;strong&gt;second-level cache&lt;/strong&gt; is activated and uses the &lt;strong&gt;EHCache&lt;/strong&gt;.&lt;br /&gt;

&lt;strong&gt;(5) Advantages&lt;/strong&gt;&lt;br /&gt;

&lt;h3&gt;
5.1) Performance&lt;/h3&gt;
&lt;strong&gt;Hibernate &lt;/strong&gt;provides some &lt;strong&gt;metrics&lt;/strong&gt; for measuring the performance of caching, which are all described in the &lt;strong&gt;Statistics interface API&lt;/strong&gt;, in three categories:&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;Metrics      related to the &lt;strong&gt;general Session usage&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Metrics      related to the &lt;strong&gt;entities, collections, queries,&lt;/strong&gt; and &lt;strong&gt;cache&lt;/strong&gt; as      a whole.&lt;/li&gt;
&lt;li&gt;Detailed      metrics related to a &lt;strong&gt;particular entity, collection, query&lt;/strong&gt; or &lt;strong&gt;cache      region&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
5.2) About Caching&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;All objects      those are passed to methods &lt;strong&gt;save(), update()&lt;/strong&gt; or &lt;strong&gt;saveOrUpdate()&lt;/strong&gt; or those you get from &lt;strong&gt;load(), get(), list(), iterate()&lt;/strong&gt; or &lt;strong&gt;scroll()&lt;/strong&gt; will be saved into cache.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;flush()&lt;/strong&gt; is used to      synchronize the object with database and &lt;strong&gt;evict()&lt;/strong&gt; is used to delete      it from cache.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;contains()&lt;/strong&gt; used to find      whether the object belongs to the cache or not.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Session.clear()&lt;/strong&gt; used to      delete all objects from the cache .&lt;/li&gt;
&lt;li&gt;Suppose the      query wants to force a &lt;strong&gt;refresh&lt;/strong&gt; of its &lt;strong&gt;query cache region&lt;/strong&gt;, we      should call &lt;strong&gt;Query.setCacheMode(CacheMode.REFRESH)&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;(6) Conclusion&lt;/strong&gt;&lt;br /&gt;

&lt;strong&gt;Caching&lt;/strong&gt; is good one and &lt;strong&gt;hibernate&lt;/strong&gt; found a good way to implement it for improving its performance in &lt;strong&gt;web applications&lt;/strong&gt;
 especially when more database traffic occurs. If we implement it very 
correctly, we will get our applications to be running at their &lt;strong&gt;maximum capacities&lt;/strong&gt;.
 I will cover more about the caching implementations in my coming 
articles. Try to get full coding guidelines before going to implement 
this.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/306693622675500231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/hibernate-caching-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/306693622675500231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/306693622675500231'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/hibernate-caching-tutorial.html' title='Hibernate Caching Tutorial'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-1242823996735322048</id><published>2012-06-10T21:22:00.004-07:00</published><updated>2012-10-28T22:43:59.075-07:00</updated><title type='text'>Red5 Streaming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;How to install Red5 Streaming
server in windows7&lt;br /&gt;
Here I am showing Red5
installation with step by steps&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;First download the Red5 executable file from the
official Red5 server, here I downloaded Red5 0.8 version &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Then go to that file location install that file , here
I show some installation steps&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA2PJ_zkNmT6awfkmRnT6_Ou1c2ZGIVhvm_OlPjKuZzxWcUmPIuqH8z8jSTQep14RR16B7sJSCzM1FTicHGyB2-_b4hN0yrhIzuku_X7qWuFJMfTDc_TF2coGCgQ8LkU4uDcK8wbQhdHU/s1600/First.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center; text-indent: -0.25in;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA2PJ_zkNmT6awfkmRnT6_Ou1c2ZGIVhvm_OlPjKuZzxWcUmPIuqH8z8jSTQep14RR16B7sJSCzM1FTicHGyB2-_b4hN0yrhIzuku_X7qWuFJMfTDc_TF2coGCgQ8LkU4uDcK8wbQhdHU/s640/First.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&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/AVvXsEh1R6YBnGM2RD5JyEaRRmSE2-fSFh3jFOxzlWHBmsyvrIFti66MiWZeWlEgLTp2eF3nf1TWXdNxu1XjTUH0szMwlfu7VOtD9S1yWGRwFNgaTbQHxZT_Ht0WI3UL6ORhzLACl1g-p5apnNA/s1600/second.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1R6YBnGM2RD5JyEaRRmSE2-fSFh3jFOxzlWHBmsyvrIFti66MiWZeWlEgLTp2eF3nf1TWXdNxu1XjTUH0szMwlfu7VOtD9S1yWGRwFNgaTbQHxZT_Ht0WI3UL6ORhzLACl1g-p5apnNA/s640/second.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=1879839730027925249&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEiPiaKk3C8mCmEprmKJBWmwGogtaDz1Mlt6UgJpoOwDvrkVzfUIYpbYHMPGi9zixz3WPx6GzOI1l5RcCn2JXmw2LU9OEQOkX7_AaAfRsjzeM7578ATNgSI0z63erlG96OfLECOoahRqj24/s1600/third.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPiaKk3C8mCmEprmKJBWmwGogtaDz1Mlt6UgJpoOwDvrkVzfUIYpbYHMPGi9zixz3WPx6GzOI1l5RcCn2JXmw2LU9OEQOkX7_AaAfRsjzeM7578ATNgSI0z63erlG96OfLECOoahRqj24/s640/third.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-no-proof: yes;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id=&quot;_x0000_t75&quot; coordsize=&quot;21600,21600&quot;
 o:spt=&quot;75&quot; o:preferrelative=&quot;t&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; filled=&quot;f&quot;
 stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;/&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;/&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;/&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;/&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;/&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;/&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;/&gt;
 &lt;/v:formulas&gt;
 &lt;v:path o:extrusionok=&quot;f&quot; gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot;/&gt;
 &lt;o:lock v:ext=&quot;edit&quot; aspectratio=&quot;t&quot;/&gt;
&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; type=&quot;#_x0000_t75&quot;
 style=&#39;width:468pt;height:263.25pt;visibility:visible&#39;&gt;
 &lt;v:imagedata src=&quot;file:///C:\Users\Home\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;
  o:title=&quot;&quot;/&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEjCIXut26W8BBCv3SFrV_I3ONgTAaY_K4Aj67gazB2psK1OkljSW33ZPOs2gSZ2In5nXjHbskLQ6tM65trI3GElAUIScS8coCtK41utfotFqzh6VXnamLLP_wRcS4G__lqYlYWcwFWkJVE/s1600/fourth.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCIXut26W8BBCv3SFrV_I3ONgTAaY_K4Aj67gazB2psK1OkljSW33ZPOs2gSZ2In5nXjHbskLQ6tM65trI3GElAUIScS8coCtK41utfotFqzh6VXnamLLP_wRcS4G__lqYlYWcwFWkJVE/s640/fourth.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEiYS1yWVcBhVYt_BeNgn28ih-a7NepvJEKLPF2x0Q7ymv1uzCB4jyekeFHiCF3DAqqQhyphenhyphen7AZ1AFIhyofaYrFN4CvRF6TiGgZJVDHos9Zzx8OrTrp3pcQwf7D2xvGLkn70TvkeS6IszqCA4/s1600/fifth.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYS1yWVcBhVYt_BeNgn28ih-a7NepvJEKLPF2x0Q7ymv1uzCB4jyekeFHiCF3DAqqQhyphenhyphen7AZ1AFIhyofaYrFN4CvRF6TiGgZJVDHos9Zzx8OrTrp3pcQwf7D2xvGLkn70TvkeS6IszqCA4/s640/fifth.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEjLc5Gsvuc74hBedP4Najedtfj3aDFKli2pjgY5UA1xgk3OmcoXdMzFCFPI42Z5S9QBp0EP5dqCnG4O3p-ejf0epzXdmTdosr828fRqdfTA_uifvxwSFoBft67gXlE28XTAsRp2YwTQn90/s1600/sixth.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLc5Gsvuc74hBedP4Najedtfj3aDFKli2pjgY5UA1xgk3OmcoXdMzFCFPI42Z5S9QBp0EP5dqCnG4O3p-ejf0epzXdmTdosr828fRqdfTA_uifvxwSFoBft67gXlE28XTAsRp2YwTQn90/s640/sixth.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEj5Ok3kkinpZjRZoIRn0bNGy_Ms_AIYXDvY_cWSrZvZselZjauzgE3C7XuJSBXbq64nR54zawrJFVDIFIbgZnjrL0OpzfyU9w0Up-uEqvLAmGMolHiC21pI8ICmMCSChrrbWMsR-rEA5Uc/s1600/seventh.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Ok3kkinpZjRZoIRn0bNGy_Ms_AIYXDvY_cWSrZvZselZjauzgE3C7XuJSBXbq64nR54zawrJFVDIFIbgZnjrL0OpzfyU9w0Up-uEqvLAmGMolHiC21pI8ICmMCSChrrbWMsR-rEA5Uc/s640/seventh.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;After finishing
installation Restart the system(not mandatory) and open the browser . in
browser type &lt;a href=&quot;http://localhost:5080/&quot;&gt;http://localhost:5080&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;And then press
enter it will show the following image, if it not showed check weather your
server is running or not&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&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/AVvXsEjjfrrhh1nNhQ4F5HIiERniL6Oc9uw_B8I8fjMyAQVUmNIfSKJ_QRUoU3tNiEQ4gV9wJhuAxzIzQq9khMICysPm4J944H7BM-gsCJnTkAVBmEAdq2hWx7_a8_d5LiakVsiNS_KMrfM9MVQ/s1600/red5_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjfrrhh1nNhQ4F5HIiERniL6Oc9uw_B8I8fjMyAQVUmNIfSKJ_QRUoU3tNiEQ4gV9wJhuAxzIzQq9khMICysPm4J944H7BM-gsCJnTkAVBmEAdq2hWx7_a8_d5LiakVsiNS_KMrfM9MVQ/s640/red5_1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;And
then install some demo applications&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Here
I am installing oflaDemo&amp;nbsp; application&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/AVvXsEjOHqvWDBo1vA2CvKhBA9_fwR64vJ9bFAEyN7D2Ih4Cp8cQIqF4YEaTHGL12ABuUgml6XAlZ77RBigLJ4oOg-vTgHMkEutdjoWuQIYfd69nnq2-go4IbRo4GcdsbuygRKyp7r9BMjwJsiE/s1600/red5_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOHqvWDBo1vA2CvKhBA9_fwR64vJ9bFAEyN7D2Ih4Cp8cQIqF4YEaTHGL12ABuUgml6XAlZ77RBigLJ4oOg-vTgHMkEutdjoWuQIYfd69nnq2-go4IbRo4GcdsbuygRKyp7r9BMjwJsiE/s640/red5_2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;After
installing the oflaDemo application type the following url in browser &lt;a href=&quot;http://localhost:5080/demos/&quot;&gt;http://localhost:5080/demos/&lt;/a&gt; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Here
you will find out the all applications&amp;nbsp; ,
go to the oflaDemo application and click view demo link&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEgKAS_LgOB4ygLvmefv343oIsaUNqk7A1CvlLIVNVbF8AjhvBvGt_N0R5uRcYM1uNjb2pc-KFZ44AeyeqJLeAQ6wDAuBG5_pRv9aHYFv5nwnZV5TVJTsmKDufDau2KENWztDuaBJgJqfcA/s1600/red5_3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKAS_LgOB4ygLvmefv343oIsaUNqk7A1CvlLIVNVbF8AjhvBvGt_N0R5uRcYM1uNjb2pc-KFZ44AeyeqJLeAQ6wDAuBG5_pRv9aHYFv5nwnZV5TVJTsmKDufDau2KENWztDuaBJgJqfcA/s640/red5_3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
9)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;When
you click the view demo link it will open the following window&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&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/AVvXsEggxdv88WkXJWXL2y0F-sjG1xQTZYc3h_kenMDYlAjvRd3mHxnZ9k7_hiT0MneprnyEQ_ywxl1zR3Za5EBYodB3kxCUygZi2MJ0HrdmkmXFEVxy4z8-wH6KTFD7razHD2z2UIopTHCG4QI/s1600/red5_4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggxdv88WkXJWXL2y0F-sjG1xQTZYc3h_kenMDYlAjvRd3mHxnZ9k7_hiT0MneprnyEQ_ywxl1zR3Za5EBYodB3kxCUygZi2MJ0HrdmkmXFEVxy4z8-wH6KTFD7razHD2z2UIopTHCG4QI/s640/red5_4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
10)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;The
click the connect button&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
11)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Here
observe yellow color changed to green color that means your demo application is
successfully installed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
12)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Then
finally see the preinstalled video’s in the oflaDemo application&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
13)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;That’s
it you are successfully installed Red5 Server in your system&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/AVvXsEjHygt3F_qQrdqRlf_HSgoGGr8PKVGDZxfjYSDuqC2PICKGbAtJu4YVVMTvmaTYP1xorsQl1pUc_VZvZOPxL1ZWbfihy5qwRTXnUyHGERJYvU30bOSwkU47Dit5dZ8QyVwV53yDKb6vNuE/s1600/red5_5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHygt3F_qQrdqRlf_HSgoGGr8PKVGDZxfjYSDuqC2PICKGbAtJu4YVVMTvmaTYP1xorsQl1pUc_VZvZOPxL1ZWbfihy5qwRTXnUyHGERJYvU30bOSwkU47Dit5dZ8QyVwV53yDKb6vNuE/s640/red5_5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&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/AVvXsEgc_OdHPyN5Qw0zEiLOdeyLbrxzyNsQfSR2PYZqbeCgRPxfiBGfUa9eOAOFdcGqnRkn7yfITdWiSKV_tagK8Ul9uTwG2sMiFCr0NFsGdHeb0QWCYA59ds9z1xmiCokIuWd8xO6pdTz4Zsg/s1600/red5_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc_OdHPyN5Qw0zEiLOdeyLbrxzyNsQfSR2PYZqbeCgRPxfiBGfUa9eOAOFdcGqnRkn7yfITdWiSKV_tagK8Ul9uTwG2sMiFCr0NFsGdHeb0QWCYA59ds9z1xmiCokIuWd8xO6pdTz4Zsg/s640/red5_6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Then you want to publish any stream from red5 server type
the following url &lt;a href=&quot;http://localhost:5080/demos/publisher.html&quot;&gt;http://localhost:5080/demos/publisher.html&lt;/a&gt;
the following window will be opened.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
And then choose your camera for video and choose your audio
device for audio… then click the connect button . here I don’t have webcam and
headset for that I am not connecting….&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/AVvXsEhTsnl-QFOwK0J1EWMxdHcrVa22wDZpH0wZlZZ2S-6BJRH3xYE0aM4kK1n7Q-x1DvoQAbZk9YjqKUKfozuA5zjtpdj7sTkLzqtW5i4zc50S_ttVPoUtSfsz2tqH6VK8a31FkqT2K4BErXo/s1600/red5_7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTsnl-QFOwK0J1EWMxdHcrVa22wDZpH0wZlZZ2S-6BJRH3xYE0aM4kK1n7Q-x1DvoQAbZk9YjqKUKfozuA5zjtpdj7sTkLzqtW5i4zc50S_ttVPoUtSfsz2tqH6VK8a31FkqT2K4BErXo/s640/red5_7.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Then go to the video tab and choose your video and audio
devices&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Then go to the publish tab give the name what do u want for
your stream, this name will be used to display the stream in your browser&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
And then click the publish button, that’s it you
successfully published rtmp stream with your stream name,&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/AVvXsEjdYxwt-5pOpzJ1ZcczGHNHwisrBexUL7v-GV77fVoCtvyIBBYgxmZn3e2R091-QT2VoUHr4-y3g172Pmrrutnfs-ArkhGB6KiTkr7lbUQ1s8QP7EQpZ89DAHzVHez7c3WZ-T8lFjyKcKw/s1600/red5_8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdYxwt-5pOpzJ1ZcczGHNHwisrBexUL7v-GV77fVoCtvyIBBYgxmZn3e2R091-QT2VoUHr4-y3g172Pmrrutnfs-ArkhGB6KiTkr7lbUQ1s8QP7EQpZ89DAHzVHez7c3WZ-T8lFjyKcKw/s640/red5_8.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red; font-size: 16pt;&quot;&gt;Getting the above rtmp stream in web application&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here I am using struts2 application for that am displaying
this rtmp stream in a jsp page,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The jsp&amp;nbsp; page will be
look like this&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: #bf5f3f; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;%@&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: #3f7f7f;&quot;&gt;page&lt;/span&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;java&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;contentType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/html; charset=ISO-8859-1&quot;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;pageEncoding&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;ISO-8859-1&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #bf5f3f;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: teal;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;PUBLIC&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&lt;/span&gt; &lt;span style=&quot;color: #3f7f5f;&quot;&gt;&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: #bf5f3f; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;%@&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: #3f7f7f;&quot;&gt;taglib&lt;/span&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;uri&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;/struts-tags&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;prefix&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;s&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #bf5f3f;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;http-equiv&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Content-Type&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/html; charset=ISO-8859-1&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;Insert title here&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;/i&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;swfobject.js&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;player&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;Unfortunately you don&#39;t
have Adobe Flash-Player....&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://get.adobe.com/flashplayer/&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Click Here to get the
Adobe Flash-Player.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;var&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; flashvars = {&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file:your stream
name,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; streamer:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;rtmp://localhost/oflaDemo/&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bufferlength:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;2&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backcolor:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;#000000&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frontcolor:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;#166EBA&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; screencolor:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;#999999&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lightcolor:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;#990000&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autostart:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;true&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repeat:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;none&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stretching:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; playlist:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;bottom&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; playlistsize:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;160&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;var&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; params = {
allowfullscreen:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;true&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;, allowscriptaccess:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;always&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;, wmode:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;transparent&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; };&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;var&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; attributes = { id:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;player1&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;, name:&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;player1&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; };&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp; swfobject.embedSWF(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;player.swf&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;player&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;384&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;468&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;9.0.0&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&#39;false&#39;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;,flashvars, params,
attributes);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: Consolas; font-size: 10pt;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/1242823996735322048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/normal-0-false-false-false-en-us-x-none.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1242823996735322048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1242823996735322048'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/normal-0-false-false-false-en-us-x-none.html' title='Red5 Streaming'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA2PJ_zkNmT6awfkmRnT6_Ou1c2ZGIVhvm_OlPjKuZzxWcUmPIuqH8z8jSTQep14RR16B7sJSCzM1FTicHGyB2-_b4hN0yrhIzuku_X7qWuFJMfTDc_TF2coGCgQ8LkU4uDcK8wbQhdHU/s72-c/First.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-7074697327518507710</id><published>2012-06-10T21:17:00.002-07:00</published><updated>2012-06-10T21:19:19.537-07:00</updated><title type='text'>HTML5 video tag in my Phone gap Android application</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;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;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here I am successfully running HTML5 &amp;lt;video&amp;gt; tag in my
Phone gap Android application…&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
First thing here I succeeded in Android 3.2 version&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
There are two ways for running video by using &amp;lt;video&amp;gt;
tag&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;By
using StrobeMediaPlayer&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Without
any Player&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: red; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Using
StrobeMediaPlayer&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: red; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: red; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
For that I followed these steps.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Download
the StrobeMediaPlayer from the internet&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Findout
the lib folder in ur downloaded zip file, that lib folder contains two folders
(jquery , jscolor) and required js and css files&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Then
add the lib folder in ur www folder&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Required js files:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;1)&lt;/span&gt;Profiles.js(Required)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;2)&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;devicedetection.js(Required)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;3)jquery-1.5.1.min.js(Required)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;4)jquery-ui-1.8.14.custom.min.js(optional)
it displays video time&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;5)jquery.strobemediaplaybackhtml5.js(Required)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;6)StrobeMediaPlayer.js(Required)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;index.html&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;meta&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;http-equiv=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Content-Type&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;content=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/html; charset=UTF-8&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Device Detection Test&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;style &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/css&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;body&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;sans-serif&lt;/span&gt;;
}

&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.movie&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #6000e0; font-weight: bold;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;clear&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;both&lt;/span&gt;;
}

&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.movie&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.thumb&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;left&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;margin-right&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #6000e0; font-weight: bold;&quot;&gt;10px&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;cursor&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;pointer&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;solid&lt;/span&gt; &lt;span style=&quot;color: #6000e0; font-weight: bold;&quot;&gt;1px&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;blue&lt;/span&gt;;
}

&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.movie&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.details&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #6000e0; font-weight: bold;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #6000e0; font-weight: bold;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&lt;/span&gt;;
}

&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.movie&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.details&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.title&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;bold&lt;/span&gt;;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;cursor&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;pointer&lt;/span&gt;;
}

&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.movie&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.details&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;.desc&lt;/span&gt; {
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;normal&lt;/span&gt;;
}
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;link&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/css&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;rel=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000c0;&quot;&gt;href=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/jquery.strobemediaplaybackhtml5.css&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/profiles.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/devicedetection.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/jquery/jquery-1.5.1.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/jquery-ui-1.8.14.custom.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/jquery.strobemediaplaybackhtml5.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;src=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;lib/StrobeMediaPlayer.js&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; movies &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; [
   {
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;flashvars&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {
     &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;poster&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://www.osmf.org/dev/1.6gm/images/poster1.png&quot;&lt;/span&gt;,
     &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;src&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://players.edgesuite.net/videos/big_buck_bunny/bbb_448x252.mp4&quot;&lt;/span&gt;
    },
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;element&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;clipContainer0&quot;&lt;/span&gt;
   }, ];
 $(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;() {
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; (i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;; i &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt; movies.length; i&lt;span style=&quot;color: #303030;&quot;&gt;++&lt;/span&gt;) {
   strobeMediaPlayback.flashvars(movies[i][&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;flashvars&quot;&lt;/span&gt;]);
   strobeMediaPlayback.draw(movies[i][&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;element&quot;&lt;/span&gt;]);
  }
 });
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;Strobe Media Playback&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;movie0&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;movie&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;thumb&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;clipContainer0&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;details&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;p&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;Video One&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;p&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;desc&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;Video one description.&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;----------------------END OF index.html
--------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;Then add these two classes in your
source folder&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: Consolas; font-size: 10pt;&quot;&gt;1)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;phonegap&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;plugins&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;aVideo&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONArray&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.json.JSONException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;vPlayer.VideoPlayer&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.content.Intent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.util.Log&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.phonegap.api.Plugin&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.phonegap.api.PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;AVideo&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Plugin &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Executes the request and returns PluginResult.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param action        The action to execute.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param args          JSONArry of arguments for the plugin.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param callbackId    The callback id used when calling back into JavaScript.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @return              A PluginResult object with a status and message.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; PluginResult &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; JSONArray args&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; String callbackId&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt; status &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OK&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        String result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;showVideo&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                result &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;showVideo&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;args&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
                &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;result&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
                    status &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ERROR&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;status&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; result&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;JSONException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;PluginResult&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;PluginResult&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;Status&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;JSON_EXCEPTION&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Identifies if action to be executed returns a value and should be run synchronously.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param action    The action to execute&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @return          T=returns value&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;isSynch&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String action&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Called by AccelBroker when listener is to be shut down.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Stop listener.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onDestroy&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;//--------------------------------------------------------------------------&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;// LOCAL METHODS&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;//--------------------------------------------------------------------------&lt;/span&gt;

    &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * Display a video with the specified name.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     *&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @param videoName     The video to load.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     * @return              &quot;&quot; if ok, or error message.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;     */&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;showVideo&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;String videoName&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;logicmax&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; videoName&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            Intent intent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
                intent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Intent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setClass&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ctx&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; VideoPlayer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
               
                intent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putExtra&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Nme&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; videoName&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
                
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ctx&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;startActivity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;intent&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
            &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;android&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ActivityNotFoundException&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
            Log&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;logicmax&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;error&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
            
        &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;--------------------------END OF
AVIDEO.JAVA-----------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10pt;&quot;&gt;2)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; vPlayer&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;nl.webkrackt.test.R&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.app.Activity&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.media.MediaPlayer&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.net.Uri&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.os.Bundle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.KeyEvent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.Window&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.view.WindowManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.widget.MediaController&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;android.widget.VideoView&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;VideoPlayer&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; Activity &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;implements&lt;/span&gt;   MediaPlayer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OnErrorListener&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; MediaPlayer&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;OnCompletionListener&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; VideoView mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; String Chemin&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; videoPosition&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  
 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onCreate&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;savedInstanceState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   
  requestWindowFeature&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Window&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FEATURE_NO_TITLE&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  getWindow&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addFlags&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;WindowManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;LayoutParams&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_FULLSCREEN&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  getWindow&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addFlags&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;WindowManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;LayoutParams&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FLAG_KEEP_SCREEN_ON&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  
  setContentView&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lv&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  mVideoView &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;VideoView&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;findViewById&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;R&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;videoView&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setOnErrorListener&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
     mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setOnCompletionListener&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

        Bundle returnData &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; getLastNonConfigurationInstance&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;returnData &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
      Bundle Params &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; getIntent&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getExtras&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
      String pth &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; Params&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Nme&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
      &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;pth&lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
       Chemin &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.resource://&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;getPackageName&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/raw/&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; pth&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
      &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt;
       &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;finish&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
       
       MediaController mediaController &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; MediaController&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
       mediaController&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setAnchorView&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
       mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setVideoURI&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Uri&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Chemin&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
       mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setMediaController&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mediaController&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
       mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;requestFocus&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
       &lt;span style=&quot;color: grey;&quot;&gt;//mVideoView.start();&lt;/span&gt;
     
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
             Chemin &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; returnData&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;LOCATION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             videoPosition &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; returnData&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getInt&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;POSITION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             MediaController mediaController &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; MediaController&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             mediaController&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setAnchorView&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;          
       mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setMediaController&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mediaController&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setVideoURI&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Uri&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Chemin&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
             mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;seekTo&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;videoPosition&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
             
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onKeyDown&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; keyCode&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; KeyEvent event&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keyCode &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; KeyEvent&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;KEYCODE_BACK&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
         finish&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onKeyDown&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;keyCode&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; event&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onPause&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onPause&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;synchronized&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;pause&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;     
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onResume&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onResume&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;

   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;synchronized&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
      mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;start&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;  
      setVisible&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;      
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

  
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; Object &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onRetainNonConfigurationInstance&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;         
         videoPosition &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getCurrentPosition&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
         Bundle data &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Bundle&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
         data&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;LOCATION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Chemin&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         data&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putInt&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;POSITION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; videoPosition&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; data&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  
  &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onSaveInstanceState&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Bundle outState&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;onSaveInstanceState&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;outState&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    videoPosition &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; mVideoView&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getCurrentPosition&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
          Bundle data &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Bundle&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
          data&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;LOCATION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; Chemin&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
          data&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;putInt&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;POSITION&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; videoPosition&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onError&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;MediaPlayer player&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; arg1&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; arg2&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;         
         finish&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
         &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
     &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;onCompletion&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;MediaPlayer mp&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
      finish&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10pt;&quot;&gt;-------------------*END OF
VIDEOPLAYER.JAVA*--------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;Then add these two line in your Activity class
after the super.loadUrl();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% silver; color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;WebSettings&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; settings = &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;appView&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getSettings();&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;settings.setPluginState(PluginState.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ON&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;4)Copy the below code and paste in
StrobeMediaPlayer.js&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; strobeMediaPlayback &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; () {
 alert(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;StrobeMediaPlayBack first&quot;&lt;/span&gt;);
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; settings &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; {
  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;tablet&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startSize&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;width&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;480&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;height&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;268&lt;/span&gt;},
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;wmode&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;direct&quot;&lt;/span&gt;
  },
  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;smartphone&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startSize&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;width&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;120&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;height&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;67&lt;/span&gt;},
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;wmode&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;direct&quot;&lt;/span&gt;
  },
  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;default&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startSize&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; {&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;width&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;480&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;height&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;268&lt;/span&gt;},
   &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;wmode&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;direct&quot;&lt;/span&gt;
  }
 };
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; flashvars &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; {};
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; getSettingByDeviceType(setting, deviceType, defaultValue) {
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; (deviceType &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;in&lt;/span&gt; settings) {
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; (settings[deviceType][setting] &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; settings[deviceType][setting] &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; defaultValue);
  }
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt; {
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; (settings[&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;default&quot;&lt;/span&gt;][setting] &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; settings[&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;default&quot;&lt;/span&gt;][setting] &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; defaultValue);
  }
 }
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; { 
  settings&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(object) {
   settings &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; $.extend(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;, settings, object);
  },
  flashvars&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(object) {
   flashvars &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; $.extend(&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;true&lt;/span&gt;, flashvars, object);
  },
  draw&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt;(element) {
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; (element &lt;span style=&quot;color: #303030;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; flashvars &lt;span style=&quot;color: #303030;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; flashvars[&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;src&quot;&lt;/span&gt;]) {
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; agent &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;window&lt;/span&gt;.location.hash.replace(&lt;span style=&quot;background-color: #fff0ff; color: black;&quot;&gt;/^#/&lt;/span&gt;, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;);

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; onDeviceDetection(device) {
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; startSize &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; getSettingByDeviceType(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;startSize&quot;&lt;/span&gt;, device.getProfile().type, &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;);
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; html5divs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;html5player&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;errorwindow&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;controls&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;icon playtoggle&quot;&amp;gt;Play/Pause&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;timestamp current&quot;&amp;gt;0:00&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;progress&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;a class=&quot;slider&quot;&amp;gt;&amp;lt;/a&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;tracks&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;seeking&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;  &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;played&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;buffered&quot;&amp;gt;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;timestamp duration&quot;&amp;gt;0:00&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;div class=&quot;icon fullview&quot;&amp;gt;Full View&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;video width=&quot;500&quot; height=&quot;400&quot; preload=&quot;none&quot; poster=&quot;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; flashvars[&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;poster&quot;&lt;/span&gt;] &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&quot;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;source src=&quot;http://players.edgesuite.net/videos/big_buck_bunny/bbb_448x252.mp4&quot; /&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;/video&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;&amp;lt;/div&amp;gt;&#39;&lt;/span&gt;;

$(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; element).html(html5divs);
$(&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;#&quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; element &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot; .html5player&quot;&lt;/span&gt;).strobemediaplaybackhtml5();
  }
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; DeviceDetection(agent).addCallback(onDeviceDetection).addProfiles(profiles).detect();
   }
  }
 }
}();
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;---------------------END OF
StrobeMediaPlayer.js---------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;5)AndroidManifest.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;manifest&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;xmlns:android=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;package=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;nl.webkrackt.test&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionCode=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;android:versionName=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;supports-screens&lt;/span&gt;
                &lt;span style=&quot;color: #0000c0;&quot;&gt;android:largeScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
                &lt;span style=&quot;color: #0000c0;&quot;&gt;android:normalScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
                &lt;span style=&quot;color: #0000c0;&quot;&gt;android:smallScreens=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
                &lt;span style=&quot;color: #0000c0;&quot;&gt;android:resizeable=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
                &lt;span style=&quot;color: #0000c0;&quot;&gt;android:anyDensity=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.CAMERA&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.VIBRATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_COARSE_LOCATION&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_FINE_LOCATION&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.READ_PHONE_STATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.INTERNET&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.RECEIVE_SMS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.RECORD_AUDIO&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.MODIFY_AUDIO_SETTINGS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.READ_CONTACTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.WRITE_CONTACTS&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;   
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;  
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.permission.ACCESS_NETWORK_STATE&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;uses-sdk&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:minSdkVersion=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;7&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;application&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:icon=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@drawable/icon&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;
        &lt;span style=&quot;color: #0000c0;&quot;&gt;android:hardwareAccelerated=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;.VideoTestActivity&quot;&lt;/span&gt;
            &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.action.MAIN&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;

                &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;category&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;android.intent.category.LAUNCHER&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
            &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
        &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.phonegap.DroidGap&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;
   &lt;span style=&quot;color: #0000c0;&quot;&gt;android:configChanges=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;orientation|keyboardHidden&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;activity&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;vPlayer.VideoPlayer&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;android:label=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;@string/app_name&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/application&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/manifest&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;-------------------&lt;span style=&quot;color: red;&quot;&gt;END OF
ANDROIDMANIFEST.XML&lt;/span&gt;-------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;Observe above xml file addded &lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;android:hardwareAccelerated=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;&quot;true&quot;&amp;nbsp;
attribute in ur &lt;span style=&quot;color: red;&quot;&gt;&amp;lt; application&amp;gt;&lt;/span&gt; tag&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-list: l1 level1 lfo1; text-autospace: none; text-indent: -.25in;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 14pt;&quot;&gt;1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240); color: red; font-size: 14pt;&quot;&gt;Without any Player&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;Here I don’t want to
use any player for running html5 video tag for that I do the following steps&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;1)change the
androidManifest.xml file&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-list: l0 level1 lfo2; text-autospace: none; text-indent: -.25in;&quot;&gt;
a)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;In
androidManifest.xml file i added the android:hardwareAccelerated=”true” for
&amp;lt;application&amp;gt; tag&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; mso-list: l0 level1 lfo2; text-autospace: none; text-indent: -.25in;&quot;&gt;
b)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;Added code for
doing PluginState True in Java file&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% rgb(255, 240, 240);&quot;&gt;The following code
is added in java file &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;after
the super.loadUrl();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0.0001pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0.0001pt 0.5in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% silver; color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;WebSettings&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; settings = &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;appView&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getSettings();&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;settings.setPluginState(PluginState.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ON&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0.0001pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/7074697327518507710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/here-i-am-successfully-running-html5.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7074697327518507710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7074697327518507710'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/here-i-am-successfully-running-html5.html' title='HTML5 video tag in my Phone gap Android application'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-900637478912709657</id><published>2012-06-08T06:02:00.001-07:00</published><updated>2012-06-08T06:02:42.621-07:00</updated><title type='text'>Enable the query cache in MySQL to improve performance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to get optimized and speedy response from your MySQL 
server then you need to add following two configurations directive to 
your MySQL server:&lt;br /&gt;
&lt;strong&gt;query_cache_size=SIZE&lt;/strong&gt;&lt;br /&gt; The amount of memory (SIZE) allocated for caching query results. The default value is 0, which disables the query cache.&lt;br /&gt;
query_cache_type=OPTION&lt;br /&gt; Set the query cache type. Possible options are as follows:&lt;br /&gt; 0 : Don&#39;t cache results in or retrieve results from the query cache.&lt;br /&gt; 1 : Cache all query results except for those that begin with SELECT S_NO_CACHE.&lt;br /&gt; 2 : Cache results only for queries that begin with SELECT SQL_CACHE&lt;br /&gt;
&lt;h2&gt;
Howto enable caching in MySQL&lt;/h2&gt;
You can setup caching as follows:&lt;br /&gt; &lt;code&gt;$ mysql -u root –p&lt;/code&gt;&lt;br /&gt; Output:&lt;br /&gt;
&lt;pre&gt;Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16 to server version: 4.1.15-Debian_1-log
Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the buffer.
mysql&amp;gt;&lt;/pre&gt;
Now setup cache size 16Mb:&lt;br /&gt;
&lt;pre&gt;mysql&amp;gt; SET GLOBAL query_cache_size = 16777216;&lt;/pre&gt;
Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;pre&gt;mysql&amp;gt; SHOW VARIABLES LIKE &#39;query_cache_size&#39;; &lt;/pre&gt;
Output:&lt;br /&gt;
&lt;pre&gt; +------------------+----------+
| Variable_name    | Value    |
+------------------+----------+
| query_cache_size | 16777216 |
+------------------+----------+&lt;/pre&gt;
You can setup them in /etc/my.cnf (Red Hat) or /etc/mysql/my.cnf (Debian) file:&lt;br /&gt; &lt;code&gt;# vi /etc/my.cnf&lt;/code&gt;&lt;br /&gt; Append config directives as follows:&lt;br /&gt;
&lt;pre&gt;query_cache_size = 268435456
query_cache_type=1
query_cache_limit=1048576&lt;/pre&gt;
In above example the maximum size of 
individual query results that can be cached set to 1048576 using 
query_cache_limit system variable. Memory size in Kb.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/900637478912709657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/06/enable-query-cache-in-mysql-to-improve.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/900637478912709657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/900637478912709657'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/06/enable-query-cache-in-mysql-to-improve.html' title='Enable the query cache in MySQL to improve performance'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-2108983211162172003</id><published>2012-05-13T23:11:00.000-07:00</published><updated>2012-05-13T23:11:04.083-07:00</updated><title type='text'>How to stream audio and video media online on a shoe-string budget</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;storycontent&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; There are many ways that one can stream audio and video materials 
online and we found a few ways that are cost effective and efficient 
enough to handle most of the online streaming activities.&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; Here we list some of the technologies that we used to put together a 
system that may help anyone with their audio and vide streaming needs 
with a low or no budget.  It will take some time, reading/researching 
and effort to accomplish it.  We will describe briefly how we 
accomplished our goal of setting up a system on a shoe string budget.  
You may be able to extract a few ideas/points and build or come up with 
your own way of doing the same thing.  It is possible to accomplish 
anything nowadays, as long as the Internet and Google is there.&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; The main system we have is a Pentium IV with 512MB RAM memory and 
40GB hard drive. We have DSL high-speed connection to the Internet. The 
system runs on ubuntu Linux operating system (almost all the software 
that we have used will run on Windows based system as well but MS 
Windows costs). In this system we have three streaming servers like 
“Shoutcast”, “Darwin” and “Red5” running at the same time (it is our 
test server, gets abused a lot). All these streaming servers are capable
 of streaming audio and/or video media effectively. The difference is 
mainly the format they use to broadcast the video signal.&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; Shoutcast server from www.shoutcast.com/ works with “NSV” (Nullsoft video) format.&lt;br /&gt;
Darwin streaming server from www.apple.com is for QuickTime and mpeg 
movies (“mov” &amp;amp; “mp4”). Red5 server http://osflash.org/red5 works 
with flash (“flv”) videos. On the audio side all these servers can 
stream mp3 files without any problem.&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; Depending on the need, a particular combination of the above can 
serve in any situation. For example a radio broadcasting station is 
possible with the following combination.&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; A Linux (or Windows) based computer system with a decent hardware 
specification as mentioned above running the Shoutcast streaming server 
as the main system. A Windows 2000 or XP system with software like 
Winamp player with necessary plug-in is all what is needed to setup a 
powerful radio broadcasting system.  Can say that this is the 
installation of this setup is the easiest of all.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This Windows based system should have a working sound card.  Adding and 
automation software like “Zarasoft” (no cost of course) can even 
automate the radio station when and if the DJ is missing. Call-in talk 
shows are possible with a phone system integrated into this setup. This 
option will need a little more homework and work.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If your need is to stream QuickTime or mpeg movies then the same 
Linux (or Windows) system with Darwin streaming server will be a good 
choice. Darwin streaming server is as same as the Apple’s commercial 
product QuickTime streaming server but available for free from Apple’s 
website.  Installing it and getting it up and running is not very 
difficult. A web based admin tool is available to manage the playlist 
files and other streaming media.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flash has a big advantage over the others. Mainly, according to some 
Internet source 98% of the web browsers are installed with flash plug-in
 to play flash videos.  It is a popular choice for many including movie 
producers for their online movie trailer streaming.  The open source 
flash software “Red5” is equivalent to Adobe’s commercial software Flash
 Communication server.  The combination Linux and Red5 (all for free of 
charge) has a few other features that are desirable in certain situation
 such as audio or video chat systems for an example.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All these combinations are capable of streaming real time events if 
needed. For fun and testing purposes we stream live local TV channels 
over the Internet for our friends who live in other countries.  That is,
 with a second Windows based source computer equipped with a TV tuner 
which connected to the cable TV and to the main streaming server on the 
LAN (Local Area Network), this can be easily achieved.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The Linux operating system comes with a web server (Apache) and 
servers like MySQL and PHP software.  With these amazing tools the audio
 and video streaming can be integrated into a website. This website can 
optionally hosted out side your home or office with an ISP (Internet 
Service Provider).&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We may have spent less than $200 for the setup with all the 
combinations mentioned here.  It took us about 3hours to finish the 
whole setup (took us 6-8 months initially to learn and reach this 
point).  All the software, that is the OS, the streaming server 
software, the web server software, sourcing software with appropriate 
plug-ins, the automation software, weather watcher/announcement 
software, audio editing software like “Audacity”, video encoding 
software like “Super” and screen casting (screen capture) software such 
“Camstudio” and Wink2 were all obtained for free. Thus we built our 
audio and video streaming system that streams online on a shoe-string 
budget.&lt;br /&gt;

Our “audio and video streaming online – beginner’s guide” is 
available at www.aduioandvideostreaming.com has little more information 
on the “ubuntu Linux/Shoutcast” combination. Have a look at the overview
 to get an idea of the ebook contents along with couple of video 
tutorials.&lt;br /&gt;

Thank you.&lt;br /&gt;

 &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/2108983211162172003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/05/how-to-stream-audio-and-video-media.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2108983211162172003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2108983211162172003'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/05/how-to-stream-audio-and-video-media.html' title='How to stream audio and video media online on a shoe-string budget'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-3547404132758540621</id><published>2012-05-10T21:17:00.000-07:00</published><updated>2012-05-10T21:17:34.528-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Java"/><title type='text'>Core Java Questions with answers</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;
1)&lt;b style=&quot;color: red;&quot;&gt;What is the purpose of serialization?&lt;/b&gt;&lt;br /&gt;
Answer: Serialization is the conversion of an object to a series of 
bytes, so that the object can be easily saved to persistent storage or 
streamed across a communication link. The byte stream can then be 
deserialised – converted into a replica of the original object.&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/447898/what-is-object-serialization&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/serial.html&quot;&gt;Example&lt;/a&gt;&lt;br /&gt;
2)&lt;b style=&quot;color: red;&quot;&gt;What is the difference between JDK and JRE?&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt; &lt;/b&gt;Answer: Java Development Kit (JDK) is the most widely used Java Software
 Development Kit. Java Runtime Environment (JRE) is an implementation of
 the Java Virtual Machine which executes Java programs.&lt;br /&gt;
&lt;a href=&quot;http://www.java-tips.org/java-se-tips/java.lang/what-is-the-difference-between-jdk-and-jre.html&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_Development_Kit&quot;&gt;JDK Wiki&lt;/a&gt; | &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_Virtual_Machine&quot;&gt;JVM Wiki&lt;/a&gt;&lt;b style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;3)&lt;/b&gt;&lt;b style=&quot;color: red;&quot;&gt;What is the difference between equals() and “==” ?&lt;/b&gt;&lt;br /&gt;
Answer: Equals is intended to check logical equality and == checks if both references point to same object. (Thanks Sandeep)&lt;br /&gt;
&lt;div class=&quot;wp_syntax&quot;&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;java&quot; style=&quot;font-family: monospace;&quot;&gt;a &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; b&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;        &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Compares references, not values.&lt;/span&gt;
a.&lt;span style=&quot;color: #006633;&quot;&gt;equals&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;b&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;  &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Compares values for equality.&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://leepoint.net/notes-java/data/expressions/22compareobjects.html&quot;&gt;Source&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;4)When will you use Comparator and Comparable interfaces?&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: java.util.Comparator and java.lang.Comparable&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;
java.util.Comparator compares some other class’s instances, while java.lang.Comparable compares itself with another object.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://lkamal.blogspot.com/2008/07/java-sorting-comparator-vs-comparable.html&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://lkamal.blogspot.com/2008/07/java-sorting-comparator-vs-comparable.html&quot;&gt;Example&lt;/a&gt; &lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;5)What is the wait/notify mechanism?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: This deals with concurrent programming. The wait() and notify() 
methods are designed to provide a mechanism to allow a thread to be 
block until a specific condition is met.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
However, java.util.concurrent should be used instead of wait() and notify() to reduce complexity.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/2536692/a-simple-scenario-using-wait-and-notify-in-java&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#wait%28%29&quot;&gt;Java API&lt;/a&gt; | &lt;a href=&quot;http://java.sun.com/developer/technicalArticles/J2SE/concurrency/&quot;&gt;Java Technical Article&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;6)What is the difference between checked and unchecked exceptions?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
In general, unchecked exceptions represent defects in the program (bugs), which are normally Runtime exceptions.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
Furthermore, checked exceptions represent invalid conditions in areas outside the immediate control of the program.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.javapractices.com/topic/TopicAction.do?Id=129&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;7)What is the difference between final, finally and finalize?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: “final” is the keyword to declare a constant &lt;/span&gt;&lt;b style=&quot;color: black;&quot;&gt;AND&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt; prevents a class from producing   subclasses. (Thanks Tom Ellis)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
“finally” is a block of code that always executes when the try block is 
finished, unless System.exit() was called. finalize() is an method that 
is invoked before an object is discarded by the garbage collector.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://allu.wordpress.com/2006/11/08/difference-between-final-finally-and-finalize/&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://www.javamex.com/tutorials/synchronization_final.shtml&quot;&gt;Final Usage&lt;/a&gt; |&lt;a href=&quot;http://www.javapractices.com/topic/TopicAction.do?Id=25&quot;&gt;Finally Usage&lt;/a&gt; | &lt;a href=&quot;http://www.java-tips.org/java-ee-tips/enterprise-java-beans/how-to-write-finalization-code-in.html&quot;&gt;Finalize()&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;8)What is the difference between web server and app server?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: A Web server exclusively handles HTTP requests, whereas an 
application server serves business logic to application programs through
 any number of protocols.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.javaworld.com/javaworld/javaqa/2002-08/01-qa-0823-appvswebserver.html&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;9)Explain the Struts1/Struts2/MVC application architecture?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: Struts was adopted by the Java developer community as a default web framework for developing web applications&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
The MVC(Model–view–controller) an application that consist of three 
distinct parts. The problem domain is represented by the Model. The 
output to the user is represented by the View. And, the input from the 
user is represented by Controller.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://struts.apache.org/1.x/userGuide/introduction.html&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;10)What is the difference between forward and sendredirect?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: Both method calls redirect you to new resource/page/servlet. The
 difference between the two is that sendRedirect always sends a header 
back to the client/browser, containing the data in which you wanted to 
be redirected.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.theserverside.com/discussions/thread.tss?thread_id=742#2279&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;11)How does a 3 tier application differ from a 2 tier one?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: Tiers are the physical units of separation or deployment, while layers are the logical units of separation.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
Imagine that you’re designing an e-commerce website. A 3 tier 
architecture would consist of web pages, a web server and a database, 
with the corresponding 3 layers being the “Presentation”, “Business 
Logic” and “Database” layers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
If you take the database tier and layer out then your have a 2 tier architecture.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/1621206/3-tier-architecture-vs-2-tier-architecture&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;12)How does the version control process works?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: Initiate, pull, branch, merge, commit, push.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;
(Init) Make your own repository. (Pull) Download an existing repository 
from a url. (Branch / Merge )Make revisions. Commit then push your 
modifications. &lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; class=&quot;aligncenter size-full wp-image-503&quot; height=&quot;299&quot; src=&quot;http://img200.imageshack.us/img200/7789/gitprocess.png&quot; title=&quot;git process&quot; width=&quot;526&quot; /&gt;&lt;/div&gt;
&lt;b style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;color: red;&quot;&gt; &lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;13)What is the difference between JAR and WAR files?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: JAR files (Java ARchive) allows aggregating many files into one, it is usually used to hold Java classes in a library.&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;
WAR files (Web Application aRchive) stores XML, java classes, and JavaServer pages for Web Application purposes.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://wiki.answers.com/Q/What_is_the_difference_between_Jar_and_Ear_and_War_files&quot;&gt;Source&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;14)What is a Left outer join?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer: &lt;/span&gt;&lt;i style=&quot;color: black;&quot;&gt;This deals with SQL.&lt;/i&gt;&lt;span style=&quot;color: black;&quot;&gt; Left outer join preserves the 
unmatched rows from the first (left) table, joining them with a NULL row
 in the shape of the second (right) table.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://db.apache.org/derby/docs/10.2/ref/rrefsqlj18922.html&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://en.wikipedia.org/wiki/Join_%28SQL%29&quot;&gt;Joins Wiki&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;15)What is the difference between UNION and UNION ALL?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;Answer:  &lt;/span&gt;&lt;i style=&quot;color: black;&quot;&gt;This deals with SQL.&lt;/i&gt;&lt;span style=&quot;color: black;&quot;&gt; UNION only selects distinct values, UNION ALL selects all values.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.1keydata.com/sql/sqlunionall.html&quot;&gt;Source&lt;/a&gt; | &lt;a href=&quot;http://www.tizag.com/sqlTutorial/sqlunion.php&quot;&gt;Example&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/3547404132758540621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/05/core-java-questions-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3547404132758540621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/3547404132758540621'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/05/core-java-questions-with-answers.html' title='Core Java Questions with answers'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-6421348162373035669</id><published>2012-04-25T21:11:00.000-07:00</published><updated>2012-04-25T21:13:41.245-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Java"/><title type='text'>Tuning Performance of Java Web Application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Best Practices to improve performance in Servlets&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Use init() method to cache static data&lt;br /&gt;
2. Use StringBuffer/StringBuilder rather than using + operator when you concatenate multiple strings&lt;br /&gt;
3. Use print() method rather than println() method&lt;br /&gt;
4. Use ServletOutputStream rather than PrintWriter to send binary data&lt;br /&gt;
5. Initialize the PrintWriter with proper size&lt;br /&gt;
6. Flush the data partly&lt;br /&gt;
7. Minimize code in the synchronized block&lt;br /&gt;
8. Set the content length&lt;br /&gt;
9. Release resources in destroy() method.&lt;br /&gt;
10. Implement getLastModified() method to use browser cache and server cache&lt;br /&gt;
11. Use application server caching facility&lt;br /&gt;
12. Use Mixed session mechanisms such as HttpSession with hidden fields&lt;br /&gt;
13. Remove HttpSession objects explicitly in your program whenever you finish the task&lt;br /&gt;
14. Reduce session time out value as much as possible&lt;br /&gt;
15. Use &#39;transient&#39; variables to reduce serialization overhead if your HttpSession tracking mechanism uses serialization process.&lt;br /&gt;
16. Disable servlet auto reloading feature.&lt;br /&gt;
17. Use thread pool for your servlet engine and define the size as per application requirement.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Best Practices to improve Performance in JSP&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
1. Use jspInit() method to cache static data&lt;br /&gt;
2. Use StringBuffer rather than using + operator when you concatenate multiple strings&lt;br /&gt;
3. Use print() method rather than println() method&lt;br /&gt;
4. Use ServletOutputStream instead of JSPWriter to send binary data&lt;br /&gt;
5. Initialize the &#39;out&#39; object (implicit object) with proper size in the page directive.&lt;br /&gt;
6. Flush the data partly&lt;br /&gt;
7. Minimize code in the synchronized block&lt;br /&gt;
8. Set the content length&lt;br /&gt;
9. Release resources in jspDestroy() method.&lt;br /&gt;
10. Give &#39;false&#39; value to the session in the page directive to avoid session object creation.&lt;br /&gt;
11. Use include directive instead of include action when you want to include the child page content in the translation phase.&lt;br /&gt;
12. Avoid giving unnecessary scope in the &#39;useBean&#39; action.&lt;br /&gt;
13. Do not use custom tags if you do not have reusability.&lt;br /&gt;
14. Use application server caching facility&lt;br /&gt;
15. Use Mixed session mechanisms such as &#39;session&#39; with hidden fields&lt;br /&gt;
16. Use &#39;session&#39; and &#39;application&#39; as cache.&lt;br /&gt;
17. Use caching tags provided by different organizations like openSymphony.com&lt;br /&gt;
18. Remove &#39;session&#39; objects explicitly in your program whenever you finish the task&lt;br /&gt;
19. Reduce session time out value as much as possible&lt;br /&gt;
20. Use &#39;transient&#39; variables to reduce serialization overhead if your session tracking mechanism uses serialization process.&lt;br /&gt;
21. Disable JSP auto reloading feature.&lt;br /&gt;
22. Use thread pool for your JSP engine and define the size of thread pool as per application requirement.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Best practices to improve performance in JDBC&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Get database connection from connection pool rather than getting it directly&lt;br /&gt;
2. Use batch transactions.&lt;br /&gt;
3. Choose right isolation level as per your requirement. TRANSACTION_READ_UNCOMMITED gives best performance for concurrent transaction based applications. TRANSACTION_NONE gives best performance for non-concurrent transaction based applications.&lt;br /&gt;
4. Your database server may not support all isolation levels, be aware of your database server features.&lt;br /&gt;
5. Use PreparedStatement when you execute the same statement more than once.&lt;br /&gt;
6. Use CallableStatement when you want result from multiple and complex statements for a single request.&lt;br /&gt;
7. Use batch update facility available in Statements.&lt;br /&gt;
8. Use batch retrieval facility available in Statements or ResultSet.&lt;br /&gt;
9. Set up proper direction for processing rows.&lt;br /&gt;
10. Use proper getXXX () methods.&lt;br /&gt;
11. Close ResultSet, Statement and Connection whenever you finish your work with them.&lt;br /&gt;
12. Write precise SQL queries.&lt;br /&gt;
13. Cache read-only and read-mostly tables data.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Performance improvement techniques in Object creation&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Avoid creating objects in a loop.&lt;br /&gt;
2. Use String literals instead of String objects (created using the &#39;new&#39; keyword) if the content is same.&lt;br /&gt;
3. Whenever you are done with an object make that reference null so that it is eligible for garbage collection.&lt;br /&gt;
4. Never keep inheriting chains long since it involves calling all the parent constructors all along the chain until the constructor for java.lang.Object is reached.&lt;br /&gt;
5. Use primitive data types rather than using wrapper classes.&lt;br /&gt;
6. Whenever possible avoid using class variables, use local variables since accessing local variables is faster than accessing class variables.&lt;br /&gt;
7. Another technique is Lazy object creation: i.e. delaying the memory allocation to an object till it is not being put into use. This way a lot of memory is saved till the object is actually put in to use.&lt;br /&gt;
Performance improvement techniques in Exceptions&lt;br /&gt;
1. In a catch block avoid using the generic class Exception. For each try block use specific catch blocks based on what can go wrong in your code.&lt;br /&gt;
2. Whenever you are using a throws clause always use the specific subclass of Exception like FileNotFoundException rather than using throws Exception.&lt;br /&gt;
3. Always use the finally block to release the resources like a database connection, closing a file or socket connection etc. This prevents resource leaks even if an exception occurs.&lt;br /&gt;
4. Do not use Exception handling in loops. It is better to place loops inside try/catch blocks than vice versa. Here is an code snippet that gives bench mark.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Performance improvement techniques in loops&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Always use an int data type as the loop index variable whenever possible because it is efficient when compared to using byte or short data types. because when we use byte or short data type as the loop index variable they involve implicit type cast to int data type.&lt;br /&gt;
2. When using arrays it is always efficient to copy arrays using System.arraycopy() than using a loop.&lt;br /&gt;
3. Always avoid anything that can be done outside of the loop like method calls, assigning values to variables, or testing for conditions.&lt;br /&gt;
4. Method calls are very costly and you only make it worse by putting them in a loop. So as far as possible avoid method calls in a loop.&lt;br /&gt;
5. It is better to avoid accessing array elements in a loop the better option would be to use a temporary variables inside the loop and modify the array values out of the loop. It is fast to use a variable in a loop than accessing an array element.&lt;br /&gt;
6. Try to compare the terminating condition with zero if you use non-JIT or HotSpot virtual machine, here is an example to prove the point. JIT or HotSpot virtual machines are optimized for general loops so you do not have to bother about the terminating condition.&lt;br /&gt;
&lt;br /&gt;
Reference: www.precisejava.com&lt;br /&gt;
&lt;br /&gt;
Tips For Measuring Application Performance&lt;br /&gt;
Here are some of important points which should be considered while measuring application performance.&lt;br /&gt;
&lt;br /&gt;
- Test systems should match production as closely as possible. Same hardware, OS, and software.&lt;br /&gt;
- Populate databases with the number of records expected in production.&lt;br /&gt;
An application may perform well with a small number of records in the database. Performance could degrade a great deal as the number of records in the table(s) increases&lt;br /&gt;
- Test HTTP requests with different request parameters.&lt;br /&gt;
Test with the extremes. A page which performs a search may perform well when the search criteria returns a small result set, but perform poorly when the search criteria returns a large result set.&lt;br /&gt;
- Simulate expected traffic over time including short term spikes.&lt;br /&gt;
A page which performs well with low request volume can cause the server to fail under higher request volume.&lt;br /&gt;
- Use Server load testing tools (like Apache Jakarta JMeter) to simulate heavy load.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Tomcat - Jboss Performance Tuning Tips&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Apache Tomcat is an implmentation of the Java Servlet and JavaServer Pages technologies.&lt;br /&gt;
In production Enviroment, number of resources which can all impact application overall performance. Here are some important point which can help to improve Tomcat Performance.&lt;br /&gt;
&lt;br /&gt;
Performance Tuning - Tomcat Configuration&lt;br /&gt;
&lt;br /&gt;
Configure server.xml parameters as following.&lt;br /&gt;
&lt;br /&gt;
-Set reloadable to false&lt;br /&gt;
&lt;br /&gt;
When reloadable is true Tomcat tries to detect web application class changes and automatically reload any classes which change. Setting this to false removes a lot of unnecessary overhead in production.&lt;br /&gt;
&lt;br /&gt;
-Set liveDeploy to false&lt;br /&gt;
&lt;br /&gt;
liveDeploy controls whether your webapps directory is periodically checked for new web application directories and war files. This is done using a background thread. Set this to false and use the manager application or ant deploy tasks instead.&lt;br /&gt;
&lt;br /&gt;
-Set debug to 0&lt;br /&gt;
&lt;br /&gt;
Disable all debug output, unnecessary logging just adds overhead.&lt;br /&gt;
&lt;br /&gt;
-Set swallowOutput to true&lt;br /&gt;
&lt;br /&gt;
This makes sure all output to stdout or stderr for a web application gets directed to the web application log rather than the console or catalina.out. This makes it easier to troubleshoot web application problems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Performance Tuning - Jasper 2 Configuration&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Configure web.xml parameters as following.&lt;br /&gt;
&lt;br /&gt;
-Set development to false&lt;br /&gt;
&lt;br /&gt;
Disables JSP page out of date checks on each request and enables JSP background recompiles. development is set to true by default.&lt;br /&gt;
&lt;br /&gt;
-Use JSP custom tag pooling&lt;br /&gt;
&lt;br /&gt;
Object pooling of classes which implement custom tags significantly improves performance of JSP pages which use custom tag libraries. JSP custom tag pooling is enabled by default.&lt;br /&gt;
&lt;br /&gt;
-Configure Jasper to fork javac compiles. (Do not set fork to true on MS Windows)&lt;br /&gt;
&lt;br /&gt;
The JVM compiler javac has known memory leaks. Eliminates JVM memory usage and GC overhead of javac by configuring Jasper to fork javac when compiling JSP pages.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/6421348162373035669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/04/tuning-performance-of-java-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/6421348162373035669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/6421348162373035669'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/04/tuning-performance-of-java-web.html' title='Tuning Performance of Java Web Application'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-917937487434530364</id><published>2012-04-25T20:57:00.000-07:00</published><updated>2012-04-25T20:58:05.812-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Struts2"/><title type='text'>Make Textbox hidden/visible based on the DropDown selection using JavaScript</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;b&gt;&lt;span style=&quot;color: #33ccff;&quot;&gt;SOLUTION:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #33ccff;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;the following function will help you to solve this ......&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;1
2
3
4
5
6
7
8&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; hideTextBox(dropDown1){
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; valFromDropDown &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; dropDown1.value;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt;(valFromDropDown &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WRITE&#39;&lt;/span&gt;){
&lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.forms[&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;].textBox1.style.visibility &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;;
} &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt;{
&lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.forms[&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;].textBox1.style.visibility &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;;
}
}
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
in the above example hideTextBox is the function name .....&lt;br /&gt;
and the input for this function is dropDown value selected......&lt;br /&gt;
in this example we are hiding the the text box if the drop down value is  &#39;WRITE&#39; else it will show the textbox......&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the following Example.jsp  page will  clearly explain you how to 
implement this and please ignore this Symobl(--)inside the every tag 
Starting. i put this (--) for displaying html tags only kindly ignore 
that symbol&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example.jsp(please ignore this(--)symbol and try it it will surely work&lt;br /&gt;
-------------------------------------------------------------------- &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;@&lt;/span&gt;taglib uri&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/includes/struts-html.tld&quot;&lt;/span&gt; prefix&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;html&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;@&lt;/span&gt;taglib uri&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/includes/struts-bean.tld&quot;&lt;/span&gt; prefix&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;bean&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;@&lt;/span&gt;taglib uri&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/includes/struts-logic.tld&quot;&lt;/span&gt; prefix&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;logic&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;%&amp;gt;&lt;/span&gt;



&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;script language&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; hideTextBox(dropDown1){
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;var&lt;/span&gt; valFromDropDown &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; dropDown1.value;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt;(valFromDropDown &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&#39;WRITE&#39;&lt;/span&gt;){
&lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.forms[&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;].textBox1.style.visibility &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;;
} &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;else&lt;/span&gt;{
&lt;span style=&quot;color: #007020;&quot;&gt;document&lt;/span&gt;.forms[&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;].textBox1.style.visibility &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;;
}
}

&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/script&amp;gt;&lt;/span&gt;




&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;table width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;100%&quot;&lt;/span&gt; border&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; cellspacing&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt; cellpadding&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;0&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;SelectProcess&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;select property&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;dropDown1&quot;&lt;/span&gt; onchange&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;javascript:hideTextBox(this)&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;option value&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;READ&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;Read
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;option value&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;WRITE&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;Write
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;html&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;option value&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;OVERWRITE&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;OverWrite
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/html:select&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/tr&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;tr&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;TextBox1&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;html&lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt;text property&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;textBox1&quot;&lt;/span&gt; maxlength&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;10&quot;&lt;/span&gt; size&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/td&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;20%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;td width&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;30%&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/table&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f0a0a0; color: #f00000;&quot;&gt;/html:html&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;from the above Example.jsp you can clearly understood how the function is implemented&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;note:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;you have to declare these property in the form bean this is the example used in struts Frame work.&lt;br /&gt;&lt;br /&gt;if you still having doubts write a comment on this.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/917937487434530364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/04/make-textbox-hiddenvisible-based-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/917937487434530364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/917937487434530364'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/04/make-textbox-hiddenvisible-based-on.html' title='Make Textbox hidden/visible based on the DropDown selection using JavaScript'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-7719751854177421947</id><published>2012-04-25T02:29:00.000-07:00</published><updated>2012-04-25T02:30:22.127-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Servlets"/><title type='text'>Download the CSV file using Servlets</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;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.DataInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.File&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.PrintWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.sql.Connection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.sql.DriverManager&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.sql.ResultSet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.sql.SQLException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.sql.Statement&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.ServletContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.ServletException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.ServletOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.annotation.WebServlet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServlet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletRequest&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletResponse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; * Servlet implementation class Csv&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt; */&lt;/span&gt;
&lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@WebServlet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/Csv1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;Csv1&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; HttpServlet &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; serialVersionUID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1L&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @see HttpServlet#HttpServlet()&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;Csv1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated constructor stub&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  *      response)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;doGet&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpServletRequest request&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   HttpServletResponse response&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; ServletException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// PrintWriter out = response.getWriter();&lt;/span&gt;
  Connection con &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  Statement stmt &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  ResultSet rs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   Class&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;forName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   con &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; DriverManager&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getConnection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
     &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;jdbc:mysql://localhost:3306/hibernate&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   stmt &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; con&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;createStatement&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   rs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; stmt&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;executeQuery&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;SELECT * FROM employee&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   String filename &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;d:\\csv\\myfile.csv&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
   FileWriter fw &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; FileWriter&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;filename&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Employee Code&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0040d0;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Employee Name&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0040d0;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;rs&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;next&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;())&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;rs&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0040d0;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;rs&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getObject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toString&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0040d0;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;flush&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
    &lt;span style=&quot;color: grey;&quot;&gt;// fw.close();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: grey;&quot;&gt;// out.println(&quot;&amp;lt;b&amp;gt;Csv file Successfully created.&amp;lt;/b&amp;gt;&quot;);&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;fw &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    fw&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;SQLException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;ServletException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Servlet Could not display records.&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;ClassNotFoundException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;ServletException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;JDBC Driver not found.&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; e&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;finally&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;rs &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     rs&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
     rs &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;stmt &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     stmt&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
     stmt &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;con &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
     con&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
     con &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;SQLException e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

  File f &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; File&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;d:\\csv\\myfile.csv&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; length &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
  ServletOutputStream op &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  ServletContext context &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; getServletConfig&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getServletContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  String mimetype &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; context&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getMimeType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;//&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Set the response and go!&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;//&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;//&lt;/span&gt;
  response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setContentType&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;mimetype &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;?&lt;/span&gt; mimetype
    &lt;span style=&quot;color: #303030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;application/octet-stream&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setContentLength&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; f&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
  response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setHeader&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Content-Disposition&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;attachment; filename=d:\\csv1.csv&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;//&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Stream to the requester.&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;//&lt;/span&gt;
  &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[]&lt;/span&gt; bbuf &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1024&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;];&lt;/span&gt;
  DataInputStream in &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; DataInputStream&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; FileInputStream&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;f&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;in &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;length &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; in&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;bbuf&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   op&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;bbuf&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; length&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

  in&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  op&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;flush&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  op&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: grey;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  *      response)&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;  */&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;doPost&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;HttpServletRequest request&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   HttpServletResponse response&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; ServletException&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; IOException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
web.xml

&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;csv1&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-class&amp;gt;&lt;/span&gt;Csv1&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;servlet-name&amp;gt;&lt;/span&gt;csv1&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/csv1&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;


&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/7719751854177421947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/04/download-csv-file-using-servlets.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7719751854177421947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/7719751854177421947'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/04/download-csv-file-using-servlets.html' title='Download the CSV file using Servlets'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-8643772730253074769</id><published>2012-04-12T21:34:00.000-07:00</published><updated>2012-04-12T21:36:13.134-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Struts2"/><title type='text'>How to write our own result type in struts2</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;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;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: red;&quot;&gt;Action Class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.service.UserService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.vo.User&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.opensymphony.xwork2.ActionSupport&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;GetImageAction&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; ActionSupport &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; serialVersionUID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1L&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; UserService userService&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; Long id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; User user&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; Long &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setId&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Long id&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; UserService &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getUserService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; userService&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setUserService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;UserService userService&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;userService&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; userService&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;

  System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;this is come from after display image jsp&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  user &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; userService&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getUserById&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;imageBytesResult&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getContentDisposition&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getBufferSize&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;4096&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Result Type Class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;javax.servlet.http.HttpServletResponse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.apache.struts2.ServletActionContext&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.opensymphony.xwork2.ActionInvocation&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.opensymphony.xwork2.Result&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;ImageBytesResult&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;implements&lt;/span&gt; Result &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;final&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; serialVersionUID &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1L&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


 &lt;span style=&quot;color: #505050; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;execute&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;ActionInvocation invocation&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  GetImageAction action &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;GetImageAction&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; invocation&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getAction&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  HttpServletResponse response &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; ServletActionContext&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getResponse&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;


  &lt;span style=&quot;color: grey;&quot;&gt;//response.setContentType(action.getContentType());&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;//response.setContentLength(action.getContentLength());&lt;/span&gt;
  response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;action&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getImageInBytes&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
  response&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;flush&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&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;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Service&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;service&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.dao.UserDAO&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.vo.User&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;UserService&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; UserDAO userDao&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; UserDAO &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getUserDao&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; userDao&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setUserDao&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;UserDAO userDao&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;userDao&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; userDao&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; User &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;User user&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; userDao&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;user&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;



 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;User&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; getAllUsers&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; userDao&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getAllUsers&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; User &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getUserById&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; userDao&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getUserById&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;DAO&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;dao&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.ByteArrayOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.InputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;org.hibernate.Transaction&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.lkr.vo.User&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;


&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;UserDAO&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; User &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;User user&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  Transaction tx&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;getSession&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;beginTransaction&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  getSession&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;user&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  
  tx&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;commit&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; user&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;User&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; getAllUsers&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  List&lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt;User&lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;&lt;/span&gt; allUsers &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; getSession&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;createQuery&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;from User&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;list&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; allUsers&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; User &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getUserById&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;long&lt;/span&gt; id&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  User user &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;User&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; getSession&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;User&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Long&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;id&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Convert BLOB to byte array&lt;/span&gt;
  user&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setImageInBytes&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;getImageInBytes&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;user&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  user&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setContentLength&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; user&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getImage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;());&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; user&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[]&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getImageInBytes&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;User user&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;


  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;user&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getImage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;];&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  ByteArrayOutputStream baos &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; ByteArrayOutputStream&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   InputStream is &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; user&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getImage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getBinaryStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[]&lt;/span&gt; buf &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1024&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;];&lt;/span&gt;
   &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;((&lt;/span&gt;i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; is&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;buf&lt;span style=&quot;color: #303030;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
    baos&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;buf&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
   is&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception ex&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   ex&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; baos&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;toByteArray&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;struts.xml&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    &quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    &quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;/span&gt;


&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;struts&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.devMode&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.custom.i18n.resources&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;global&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;constant&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts.objectFactory&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;value=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;spring&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;


 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;package&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;commonPackage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;namespace=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;extends=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts-default&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;


  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result-types&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result-type&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;imageBytesResult&quot;&lt;/span&gt;
    &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.action.ImageBytesResult&quot;&lt;/span&gt; &lt;span style=&quot;color: #007000;&quot;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result-types&amp;gt;&lt;/span&gt;


  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;addUserData&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.action.UserAction&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;input&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    WEB-INF/jsp/imageUploader.jsp
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;displayFullImage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.action.FullImageAction&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;input&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    WEB-INF/jsp/dispalyFullImage.jsp
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;


  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;getImage&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.action.GetImageAction&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;imageBytesResult&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;imageBytesResult&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;
 &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/package&amp;gt;&lt;/span&gt;


&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/struts&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
If you are directly getting Byte[] from the database then you don&#39;t need to convert Blob to Byte[] &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/8643772730253074769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/04/how-to-write-our-own-result-type-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/8643772730253074769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/8643772730253074769'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/04/how-to-write-our-own-result-type-in.html' title='How to write our own result type in struts2'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-2449956324926496381</id><published>2012-04-07T02:01:00.002-07:00</published><updated>2012-04-07T02:23:25.065-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Struts2"/><title type='text'>Creating Pdf By Using Struts2</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;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;pre&gt;&lt;b&gt;Struts Framework and Stream Result type configuration for the Action to send &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD11&quot;&gt;binary&lt;/span&gt; stream to the browser as PDF&lt;/b&gt;
&lt;b&gt;content type&lt;/b&gt;

In this example I shall be showing step by step ways to follow through various pieces of code to process or achieve
an objective of presenting binary content type to browser based client and this is presented to the client with the
same name as mentioned in struts.xml &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD4&quot;&gt;configuration file&lt;/span&gt;.
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Struts.xml&lt;/b&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    &quot;-//Apache Software Foundation//DTD Struts Configuration 2.0//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    &quot;http://struts.apache.org/dtds/struts-2.0.dtd&quot;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;struts&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;package&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stream-example&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;namespace=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;/sample-stream&quot;&lt;/span&gt;
                 &lt;span style=&quot;color: #0000c0;&quot;&gt;extends=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;struts-default&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;pdfAction&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;class=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;com.lkr.struts2.pdf.GeneratingPdfAction&quot;&lt;/span&gt; 
                        &lt;span style=&quot;color: #0000c0;&quot;&gt;method=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;generatingPdf&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
       &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;result&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;test-stream&quot;&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;stream&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;
         &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;inputName&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;fileStream&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;contentType&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;application/pdf&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
         &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;param&lt;/span&gt; &lt;span style=&quot;color: #0000c0;&quot;&gt;name=&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;contentDisposition&quot;&lt;/span&gt;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;gt;&lt;/span&gt;filename=&quot;test.pdf&quot;&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
       &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/result&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/package&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/struts&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD6&quot;&gt;Action class&lt;/span&gt; &quot;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;GeneratingPdfAction&lt;/span&gt;.java&quot; is having a &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;generatingPdf &lt;/span&gt;method that assigns an input stream to a private&lt;/pre&gt;
&lt;pre&gt;instance variable, this variable is mentioned as the inputName param value to the result tag.

In this example, the inputName param is having value as fileStream, that is defined as an instance variable&lt;/pre&gt;
&lt;pre&gt;in Action class.&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GeneratingPdfAction&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;package&lt;/span&gt; com&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;lkr&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;struts2&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;pdf&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.DataInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.FileOutputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.io.InputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.Date&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;java.util.List&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Anchor&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.BadElementException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.BaseColor&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Chapter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Document&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.DocumentException&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Element&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Font&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.ListItem&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Paragraph&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Phrase&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.Section&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.pdf.PdfPCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.pdf.PdfPTable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.itextpdf.text.pdf.PdfWriter&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;GeneratingPdfAction&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; InputStream fileStream&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; String FILE &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;c:/temp/FirstPdf.pdf&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; Font catFont &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Font&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;TIMES_ROMAN&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;BOLD&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; Font redFont &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Font&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;TIMES_ROMAN&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;NORMAL&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; BaseColor&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;RED&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; Font subFont &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Font&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;TIMES_ROMAN&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;BOLD&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; Font smallBold &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Font&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;FontFamily&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;TIMES_ROMAN&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
   Font&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;BOLD&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;setFileStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;InputStream arg&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  fileStream &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; arg&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; InputStream &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;getFileStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; fileStream&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;


 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;public&lt;/span&gt; String &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;generatingPdf&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; Exception &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   Document document &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Document&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   PdfWriter&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getInstance&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;document&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; FileOutputStream&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;FILE&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
   document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;open&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
   addMetaData&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;document&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   addTitlePage&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;document&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   addContent&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;document&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
   document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Exception e&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   e&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   fileStream &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; DataInputStream&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
     &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;FileInputStream&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;FILE&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;IOException ioEx&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   ioEx&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
  
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;test-stream&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 
 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;addMetaData&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Document document&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addTitle&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;My first PDF&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addSubject&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Using iText&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addKeywords&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Java, PDF, iText&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addAuthor&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Konda Reddy. Lingamdinne&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCreator&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Konda Reddy. Lingamdinne&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;addTitlePage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Document document&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; DocumentException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  Paragraph preface &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// We add one empty line&lt;/span&gt;
  addEmptyLine&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;preface&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Lets write a big header&lt;/span&gt;
  preface&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Title of the document&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; catFont&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  addEmptyLine&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;preface&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Will create: Report generated by: _name, _date&lt;/span&gt;
  preface&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Report generated by: &quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; System&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;getProperty&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;user.name&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;, &quot;&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Date&lt;span style=&quot;color: #303030;&quot;&gt;(),&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$&lt;/span&gt;
    smallBold&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  addEmptyLine&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;preface&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  preface&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;This document describes something which is very important &quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
    smallBold&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  addEmptyLine&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;preface&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  preface&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;
    &lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;This document is a preliminary version and not subject to your license agreement or any other agreement with vogella.de ;-).&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt;
    redFont&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;preface&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// Start a new page&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;newPage&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;addContent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Document document&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; DocumentException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  Anchor anchor &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Anchor&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;First Chapter&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; catFont&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  anchor&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;First Chapter&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Second parameter is the number of the chapter&lt;/span&gt;
  Chapter catPart &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Chapter&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;anchor&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  Paragraph subPara &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Subcategory 1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; subFont&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  Section subCatPart &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; catPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addSection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;subPara&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Hello&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  subPara &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Subcategory 2&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; subFont&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; catPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addSection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;subPara&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Paragraph 1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Paragraph 2&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Paragraph 3&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Add a list&lt;/span&gt;
  Paragraph paragraph &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;();&lt;/span&gt;
  addEmptyLine&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;paragraph&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;paragraph&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Add a table&lt;/span&gt;
  createTable&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Now add all this to the document&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;catPart&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Next section&lt;/span&gt;
  anchor &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Anchor&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Second Chapter&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; catFont&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  anchor&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setName&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Second Chapter&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Second parameter is the number of the chapter&lt;/span&gt;
  catPart &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Chapter&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;anchor&lt;span style=&quot;color: #303030;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  subPara &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Subcategory&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; subFont&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; catPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addSection&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;subPara&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;This is a very important message&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// Now add all this to the document&lt;/span&gt;
  document&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;catPart&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;createTable&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Section subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt;
   &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;throws&lt;/span&gt; BadElementException &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  PdfPTable table &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PdfPTable&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  &lt;span style=&quot;color: grey;&quot;&gt;// t.setBorderColor(BaseColor.GRAY);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// t.setPadding(4);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// t.setSpacing(4);&lt;/span&gt;
  &lt;span style=&quot;color: grey;&quot;&gt;// t.setBorderWidth(1);&lt;/span&gt;

  PdfPCell c1 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PdfPCell&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Phrase&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Table Header 1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  c1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setHorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Element&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ALIGN_CENTER&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;c1&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  c1 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PdfPCell&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Phrase&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Table Header 2&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  c1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setHorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Element&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ALIGN_CENTER&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;c1&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  c1 &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; PdfPCell&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Phrase&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;Table Header 3&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  c1&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setHorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Element&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;ALIGN_CENTER&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;c1&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;setHeaderRows&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;1.2&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;2.1&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;2.2&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;
  table&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;addCell&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;2.3&quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

  subCatPart&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;table&lt;span style=&quot;color: #303030;&quot;&gt;);&lt;/span&gt;

 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;addEmptyLine&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;Paragraph paragraph&lt;span style=&quot;color: #303030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; number&lt;span style=&quot;color: #303030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #303090; font-weight: bold;&quot;&gt;int&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; i &lt;span style=&quot;color: #303030;&quot;&gt;&amp;lt;&lt;/span&gt; number&lt;span style=&quot;color: #303030;&quot;&gt;;&lt;/span&gt; i&lt;span style=&quot;color: #303030;&quot;&gt;++)&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;{&lt;/span&gt;
   paragraph&lt;span style=&quot;color: #303030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;new&lt;/span&gt; Paragraph&lt;span style=&quot;color: #303030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;));&lt;/span&gt;
  &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #303030;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;web.xml&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;!DOCTYPE web-app&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    PUBLIC &quot;-//Sun Microsystems, &lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    Inc.//DTD Web Application 2.3//EN&quot;&lt;/span&gt;
&lt;span style=&quot;color: #507090;&quot;&gt;    &quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Struts 2 Stream Result type&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;sample-filter&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-class&amp;gt;&lt;/span&gt; 
    org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-class&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-mapping&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;filter-name&amp;gt;&lt;/span&gt;sample-filter&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-name&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;url-pattern&amp;gt;&lt;/span&gt;/*&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;
  &lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #007000;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre&gt;This example &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD5&quot;&gt;application&lt;/span&gt; creates PDF file and reads the &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD2&quot;&gt;PDF file&lt;/span&gt; from &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD10&quot;&gt;the path&lt;/span&gt; mentioned in the Action class and &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;generatingPdf&lt;/span&gt; method.
This result type definition in struts.xml file sends those to the client as downloadable file name.&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/2449956324926496381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/04/creating-pdf-by-using-struts2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2449956324926496381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/2449956324926496381'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/04/creating-pdf-by-using-struts2.html' title='Creating Pdf By Using Struts2'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-6636909599023557922</id><published>2012-03-30T03:36:00.000-07:00</published><updated>2012-04-06T22:55:23.568-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Core Java"/><title type='text'>Core Java Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;entry-content&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Can there be an abstract class with no abstract methods in it?&lt;/span&gt; - Yes
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Can an Interface be final? &lt;/span&gt;- No
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Can an Interface have an inner class?&lt;/span&gt; - Yes.
&lt;pre&gt; public interface abc
 {
  static int i=0; void dd();
  class a1
  {
   a1()
   {
    int j;
    System.out.println(&quot;inside&quot;);
   };
   public static void main(String a1[])
   {
    System.out.println(&quot;in interfia&quot;);
   }
  }
 }
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Can we define private and protected modifiers for variables in interfaces?&lt;/span&gt; - No
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Externalizable? &lt;/span&gt;- Externalizable is an Interface
 that extends Serializable Interface. And sends data into Streams in 
Compressed Format. It has two methods, writeExternal(ObjectOuput out) 
and readExternal(ObjectInput in)
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What modifiers are allowed for methods in an Interface?&lt;/span&gt; - Only public and abstract modifiers are allowed for methods in interfaces.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is a local, member and a class variable?&lt;/span&gt; - 
Variables declared within a method are “local” variables. Variables 
declared within the class i.e not within any methods are “member” 
variables (global variables). Variables declared within the class i.e 
not within any methods and are defined as “static” are class variables
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What are the different identifier states of a Thread?&lt;/span&gt; - 
The different identifiers of a Thread are: R - Running or runnable 
thread, S - Suspended thread, CW - Thread waiting on a condition 
variable, MW - Thread waiting on a monitor lock, MS - Thread suspended 
waiting on a monitor lock
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What are some alternatives to inheritance?&lt;/span&gt; - Delegation 
is an alternative to inheritance. Delegation means that you include an 
instance of another class as an instance variable, and forward messages 
to the instance. It is often safer than inheritance because it forces 
you to think about each message you forward, because the instance is of a
 known class, rather than a new class, and because it doesn’t force you 
to accept all the methods of the super class: you can provide only the 
methods that really make sense. On the other hand, it makes you write 
more code, and it is harder to re-use (because it is not a subclass).
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Why isn’t there operator overloading?&lt;/span&gt; - Because C++ has 
proven by example that operator overloading makes code almost impossible
 to maintain. In fact there very nearly wasn’t even method overloading 
in Java, but it was thought that this was too useful for some very basic
 methods like print(). Note that some of the classes like 
DataOutputStream have unoverloaded methods like writeInt() and 
writeByte().
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What does it mean that a method or field is “static”?&lt;/span&gt; - 
Static variables and methods are instantiated only once per class. In 
other words they are class variables, not instance variables. If you 
change the value of a static variable in a particular object, the value 
of that variable changes for all instances of that class. Static methods
 can be referenced with the name of the class rather than the name of a 
particular object of the class (though that works too). That’s how 
library methods like System.out.println() work. out is a static field in
 the java.lang.System class.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?&lt;/span&gt;
&lt;pre&gt; String hostname = InetAddress.getByName(&quot;192.18.97.39&quot;).getHostName();
&lt;/pre&gt;
&lt;/li&gt;
&lt;li style=&quot;color: red;&quot;&gt;Difference between JRE/JVM/JDK?
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Why do threads block on I/O?&lt;/span&gt; - Threads block on i/o 
(that is enters the waiting state) so that other threads may execute 
while the I/O operation is performed.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is synchronization and why is it important?&lt;/span&gt; - With 
respect to multithreading, synchronization is the capability to control 
the access of multiple threads to shared resources. Without 
synchronization, it is possible for one thread to modify a shared object
 while another thread is in the process of using or updating that 
object’s value. This often leads to significant errors.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Is null a keyword?&lt;/span&gt; - The null value is not a keyword.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Which characters may be used as the second character of an identifier,but not as the first character of an identifier?&lt;/span&gt;
 - The digits 0 through 9 may not be used as the first character of an 
identifier but they may be used after the first character of an 
identifier.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What modifiers may be used with an inner class that is a member of an outer class?&lt;/span&gt; - A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?&lt;/span&gt;
 - Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII
 character set uses only 7 bits, it is usually represented as 8 bits. 
UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 
uses 16-bit and larger bit patterns.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What are wrapped classes?&lt;/span&gt; - Wrapped classes are classes that allow primitive types to be accessed as objects.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What restrictions are placed on the location of a package statement within a source code file?&lt;/span&gt; - A package statement must appear as the first line in a source code file (excluding blank lines and comments).
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the difference between preemptive scheduling and time slicing?&lt;/span&gt;
 - Under preemptive scheduling, the highest priority task executes until
 it enters the waiting or dead states or a higher priority task comes 
into existence. Under time slicing, a task executes for a predefined 
slice of time and then reenters the pool of ready tasks. The scheduler 
then determines which task should execute next, based on priority and 
other factors.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is a native method?&lt;/span&gt; - A native method is a method that is implemented in a language other than Java.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What are order of precedence and associativity, and how are they used?&lt;/span&gt;
 - Order of precedence determines the order in which operators are 
evaluated in expressions. Associatity determines whether an expression 
is evaluated left-to-right or right-to-left
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the catch or declare rule for method declarations?&lt;/span&gt;
 - If a checked exception may be thrown within the body of a method, the
 method must either catch the exception or declare it in its throws 
clause.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;Can an anonymous class be declared as implementing an interface and extending a class?&lt;/span&gt; - An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.
&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;What is the range of the char type?&lt;/span&gt; - The range of the char type is 0 to 2^16 - 1.
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/6636909599023557922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/03/core-java-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/6636909599023557922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/6636909599023557922'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/03/core-java-interview-questions.html' title='Core Java Interview Questions'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-1127155145332295775</id><published>2012-03-30T03:04:00.001-07:00</published><updated>2012-03-30T03:05:48.419-07:00</updated><title type='text'>VideoFileReadingAndCoping</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;java5&quot; style=&quot;background-color: #f0f0f0; border: 1px solid #d0d0d0; color: #000066; font-family: monospace;&quot;&gt;
&lt;ol&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;package&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.lkr.properties&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.ByteArrayOutputStream&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.File&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.FileInputStream&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.FileNotFoundException&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.FileOutputStream&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;class&lt;/span&gt; VideoFileReadingAndCoping&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;void&lt;/span&gt; main&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt; args&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;File&lt;/span&gt;&lt;/a&gt; videofile = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;File&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;D:&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;video&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;MELT.MPG&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileInputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileInputStream&lt;/span&gt;&lt;/a&gt; fileInputStream = &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fileInputStream = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileInputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileInputStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;videofile&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileNotFoundException.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileNotFoundException&lt;/span&gt;&lt;/a&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;ByteArrayOutputStream&lt;/span&gt;&lt;/a&gt; out = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;ByteArrayOutputStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;fileInputStream.&lt;span style=&quot;color: #006633;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; out.&lt;span style=&quot;color: #006633;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;fileInputStream.&lt;span style=&quot;color: #006633;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;IOException&lt;/span&gt;&lt;/a&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;File&lt;/span&gt;&lt;/a&gt; file1 = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;File&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;D:&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;video&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;LKR.MPG&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;/a&gt; foStream = &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foStream = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;file1&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileNotFoundException.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;FileNotFoundException&lt;/span&gt;&lt;/a&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;ByteArrayOutputStream&lt;/span&gt;&lt;/a&gt; oStream = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;ByteArrayOutputStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//InputStream is2 = is2.read(jpgByteArray);&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oStream.&lt;span style=&quot;color: #006633;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;out.&lt;span style=&quot;color: #006633;&quot;&gt;toByteArray&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;IOException&lt;/span&gt;&lt;/a&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;try&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oStream.&lt;span style=&quot;color: #006633;&quot;&gt;writeTo&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;foStream&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;catch&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;IOException&lt;/span&gt;&lt;/a&gt; e&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated catch block&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.&lt;span style=&quot;color: #006633;&quot;&gt;printStackTrace&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #006060; font-weight: bold; font-weight: bold; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/1127155145332295775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/03/videofilereadingandcoping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1127155145332295775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/1127155145332295775'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/03/videofilereadingandcoping.html' title='VideoFileReadingAndCoping'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1879839730027925249.post-9129490714291088705</id><published>2012-03-29T03:14:00.000-07:00</published><updated>2012-03-29T03:23:44.968-07:00</updated><title type='text'>JUnit Test cases for Struts2 Action class With Spring and hibernate integration</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;background-color: orange;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: orange; color: #38761d;&quot;&gt;Base Test Class&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;java5&quot; style=&quot;background-color: #f0f0f0; border: 1px solid #d0d0d0; color: #000066; font-family: monospace;&quot;&gt;
&lt;ol&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;* &lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;package&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.lkr.base.test&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;java.util.HashMap&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;junit.framework.TestCase&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.apache.struts2.ServletActionContext&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.apache.struts2.dispatcher.Dispatcher&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.apache.struts2.views.JspSupportServlet&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.context.ApplicationContext&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.mock.web.MockHttpServletRequest&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.mock.web.MockHttpServletResponse&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.mock.web.MockServletConfig&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.mock.web.MockServletContext&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;org.springframework.web.context.ContextLoader&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.opensymphony.xwork2.ActionProxy&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.opensymphony.xwork2.ActionProxyFactory&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.opensymphony.xwork2.ActionSupport&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;* &lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;* @author KONDA REDDY. LINGAMDINNE&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: green; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;abstract&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;class&lt;/span&gt; IDEActionBaseTest &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;extends&lt;/span&gt; TestCase &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;final&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; CONFIG_LOCATIONS =&lt;span style=&quot;color: blue;&quot;&gt;&quot;applicationContext.xml&quot;&lt;/span&gt;+&lt;span style=&quot;color: blue;&quot;&gt;&quot;,ideazExchangeTiles-defs.xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; ApplicationContext applicationContext&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;private&lt;/span&gt; Dispatcher dispatcher&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; ActionProxy proxy&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; MockServletContext servletContext&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;static&lt;/span&gt; MockServletConfig servletConfig&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; MockHttpServletRequest request&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; MockHttpServletResponse response&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; IDEActionBaseTest&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; name&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;name&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; @&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;SuppressWarnings&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&quot;unchecked&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;deprecation&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;rawtypes&quot;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; ActionSupport createAction&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; namespace, &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; name&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy = dispatcher.&lt;span style=&quot;color: #006633;&quot;&gt;getContainer&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;getInstance&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;ActionProxyFactory.&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;createActionProxy&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;namespace, name, &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;true&lt;/span&gt;, &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy.&lt;span style=&quot;color: #006633;&quot;&gt;getInvocation&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;getInvocationContext&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #006633;&quot;&gt;setParameters&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;HashMap&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy.&lt;span style=&quot;color: #006633;&quot;&gt;setExecuteResult&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServletActionContext.&lt;span style=&quot;color: #006633;&quot;&gt;setContext&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy.&lt;span style=&quot;color: #006633;&quot;&gt;getInvocation&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;getInvocationContext&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; MockHttpServletRequest&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; MockHttpServletResponse&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServletActionContext.&lt;span style=&quot;color: #006633;&quot;&gt;setRequest&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;request&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServletActionContext.&lt;span style=&quot;color: #006633;&quot;&gt;setResponse&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;response&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServletActionContext.&lt;span style=&quot;color: #006633;&quot;&gt;setServletContext&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;servletContext&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;ActionSupport&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; proxy.&lt;span style=&quot;color: #006633;&quot;&gt;getAction&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; @&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;SuppressWarnings&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&quot;rawtypes&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;unchecked&quot;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;void&lt;/span&gt; setUp&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;applicationContext == &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; servletContext = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; MockServletContext&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; servletContext.&lt;span style=&quot;color: #006633;&quot;&gt;addInitParameter&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ContextLoader.&lt;span style=&quot;color: #006633;&quot;&gt;CONFIG_LOCATION_PARAM&lt;/span&gt;,&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CONFIG_LOCATIONS&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; applicationContext = &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; ContextLoader&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;span style=&quot;color: #006633;&quot;&gt;initWebApplicationContext&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;servletContext&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; JspSupportServlet&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; MockServletConfig&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;servletContext&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;HashMap&lt;/span&gt;&lt;/a&gt; params = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;HashMap&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; params.&lt;span style=&quot;color: #006633;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;actionPackages&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;com.lkr.admin.action&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dispatcher = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; Dispatcher&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;servletContext, params&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dispatcher.&lt;span style=&quot;color: #006633;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dispatcher.&lt;span style=&quot;color: #006633;&quot;&gt;setInstance&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;dispatcher&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;java5&quot; style=&quot;background-color: #f0f0f0; border: 1px solid #d0d0d0; color: #000066; font-family: monospace;&quot;&gt;
&lt;ol&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;package&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.lkr.base.test&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.lkr.view.UsersView&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;com.lkr.admin.action.LoginAction&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;class&lt;/span&gt; LoginActionTest &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;extends&lt;/span&gt; IDEActionBaseTest &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; LoginActionTest&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; name&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;name&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// TODO Auto-generated constructor stub&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;void&lt;/span&gt; setUp&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;super&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;setUp&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;void&lt;/span&gt; tearDown&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;super&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;tearDown&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #006600; font-weight: bold;&quot;&gt;void&lt;/span&gt; testLogin&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html&quot; style=&quot;color: #000060;&quot;&gt;&lt;span style=&quot;color: #003399; font-weight: bold;&quot;&gt;Exception&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoginAction loginAction = &lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;LoginAction&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt; createAction&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&quot;login&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UsersView usersView = &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;new&lt;/span&gt; UsersView&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginAction.&lt;span style=&quot;color: #006633;&quot;&gt;setUsersView&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;usersView&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usersView.&lt;span style=&quot;color: #006633;&quot;&gt;setLoginId&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;use&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usersView.&lt;span style=&quot;color: #006633;&quot;&gt;setPassword&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;fuhdsiah&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// loginAction.login();&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//&amp;nbsp; System.out.println(loginAction.login());&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;color: #003030; font-weight: normal; font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; vertical-align: top;&quot;&gt;&lt;div style=&quot;background: none; font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; vertical-align: top; white-space: nowrapcolor: #000020;&quot;&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lkreddy.blogspot.com/feeds/9129490714291088705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://lkreddy.blogspot.com/2012/03/junit-test-cases-for-struts2-action.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/9129490714291088705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1879839730027925249/posts/default/9129490714291088705'/><link rel='alternate' type='text/html' href='http://lkreddy.blogspot.com/2012/03/junit-test-cases-for-struts2-action.html' title='JUnit Test cases for Struts2 Action class With Spring and hibernate integration'/><author><name>Konda Reddy</name><uri>http://www.blogger.com/profile/14323292228850195630</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0zQcFKeQS7pwH9ThtVe8el4HlT1wan3HcZ_5njxKxCD6-fDYrrqFbt3pAgsXvdY650fl9acxH0JZjbPhAJyI-CXacPObg_qaLfyuXq7WFmRI29POZI4ZJDIdkRT4f60E/s220/private-detective-cheating-spouse-surveillance.jpg'/></author><thr:total>0</thr:total></entry></feed>