<?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-4694851502121400946</id><updated>2024-10-06T22:22:22.339-07:00</updated><category term="Debug"/><category term="Gnome Shell"/><category term="MySQL"/><category term="Ubuntu 12.04"/><category term="Web Services"/><category term="ftp"/><title type='text'>Practical Coding</title><subtitle type='html'>Practical Guide To Solve Your Daily Coding Issues</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-2734520273936267644</id><published>2013-12-23T21:53:00.004-08:00</published><updated>2013-12-23T22:05:40.512-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Web Services"/><title type='text'></title><content type='html'>&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/AVvXsEib4dZZ4GYgJye2pOLa_6qjRlb9QJD3WEkKB0K2SFLfT3rhP2J7NxpfHaFqgvehc9OEK7TccdJ7cyFJyYD7sW6PlffNJfb_YQ3sb5e3Zq0H3Bs2eBI_OQG8G2_0MqxR8bz_iN1orKfM2VzD/s1600/Screenshot-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&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/AVvXsEib4dZZ4GYgJye2pOLa_6qjRlb9QJD3WEkKB0K2SFLfT3rhP2J7NxpfHaFqgvehc9OEK7TccdJ7cyFJyYD7sW6PlffNJfb_YQ3sb5e3Zq0H3Bs2eBI_OQG8G2_0MqxR8bz_iN1orKfM2VzD/s1600/Screenshot-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Web Services Beginner Guide&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
1) Create dynamic project as below.&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/AVvXsEizCFSruNGmUOxvjonrgbivp_iRzGn0Qhy-qmUT71kuZSyD14wCkRK15oVq5NdbDUSm9NjNk0XFXK3ED2HU8hN0LrFuzKOxmJwNv5qL7xyvDnfLdHVni2BEUFUjYduDIh3mXAN7RGgLkmEU/s1600/Screenshot-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizCFSruNGmUOxvjonrgbivp_iRzGn0Qhy-qmUT71kuZSyD14wCkRK15oVq5NdbDUSm9NjNk0XFXK3ED2HU8hN0LrFuzKOxmJwNv5qL7xyvDnfLdHVni2BEUFUjYduDIh3mXAN7RGgLkmEU/s1600/Screenshot-1.png&quot; height=&quot;310&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
2) create a package names &#39;com.net&#39; in src and create below class with code.&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/AVvXsEib4dZZ4GYgJye2pOLa_6qjRlb9QJD3WEkKB0K2SFLfT3rhP2J7NxpfHaFqgvehc9OEK7TccdJ7cyFJyYD7sW6PlffNJfb_YQ3sb5e3Zq0H3Bs2eBI_OQG8G2_0MqxR8bz_iN1orKfM2VzD/s1600/Screenshot-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib4dZZ4GYgJye2pOLa_6qjRlb9QJD3WEkKB0K2SFLfT3rhP2J7NxpfHaFqgvehc9OEK7TccdJ7cyFJyYD7sW6PlffNJfb_YQ3sb5e3Zq0H3Bs2eBI_OQG8G2_0MqxR8bz_iN1orKfM2VzD/s1600/Screenshot-2.png&quot; height=&quot;243&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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/AVvXsEiUuk3VE3DdesE7uZBTO7kk3dFIk3uF3V_mWJsZ5Xyxx0YOdRe9XnQw8MG_3iJuJPjVHWJ15ALjxHlXqArEk3vfjjIZfRjkjLogU7HIYosuX3P_2uqsWHq7YSbHEcFsUeQ56TXF02J66hmV/s1600/Screenshot-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUuk3VE3DdesE7uZBTO7kk3dFIk3uF3V_mWJsZ5Xyxx0YOdRe9XnQw8MG_3iJuJPjVHWJ15ALjxHlXqArEk3vfjjIZfRjkjLogU7HIYosuX3P_2uqsWHq7YSbHEcFsUeQ56TXF02J66hmV/s1600/Screenshot-3.png&quot; height=&quot;70&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Eclispe window -&amp;gt; preferences should be set as below.Becuase first run we are going to do using Apache Axis.&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/AVvXsEhwerZc1JhyphenhyphenhEQQR_hucVXrmlzszaD7HJocMVB51KTw_KX9AlwCPX8vTEsukX3gH5zeKfIgcIxm5v_qYRDZa_Xq03rYqCQ0o5d5gmoy6YZqDCHAfZFduhNtYSLwVOzUsr1F4by8GVTwPB8h/s1600/Screenshot-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwerZc1JhyphenhyphenhEQQR_hucVXrmlzszaD7HJocMVB51KTw_KX9AlwCPX8vTEsukX3gH5zeKfIgcIxm5v_qYRDZa_Xq03rYqCQ0o5d5gmoy6YZqDCHAfZFduhNtYSLwVOzUsr1F4by8GVTwPB8h/s1600/Screenshot-4.png&quot; height=&quot;226&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tomcat server should have been added as below.&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/AVvXsEhqdrL9C_Rk8-qGfTibCTtaoo2w9eXS-9Z75KuAX07WWUr_tjfHksASS-9F4tZkOntxQkF77D6VGo_FaApvXXBDKvWRJsFTk-YQWaVA7qbG7pVoIalCM6xgWBCEgUe2J488jPPIrpu0-xvm/s1600/Screenshot-5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqdrL9C_Rk8-qGfTibCTtaoo2w9eXS-9Z75KuAX07WWUr_tjfHksASS-9F4tZkOntxQkF77D6VGo_FaApvXXBDKvWRJsFTk-YQWaVA7qbG7pVoIalCM6xgWBCEgUe2J488jPPIrpu0-xvm/s1600/Screenshot-5.png&quot; height=&quot;226&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If tomcat is running, then it should show &#39;server&#39; open in navigator. Else start the server in &#39;server&#39; console by right clicking on shown server in console.&lt;br /&gt;
&lt;br /&gt;
4) Have the tomcat server running within eclipse. Right clik project -&amp;gt; new -&amp;gt; web service and then browse the service class and give location and modify as below screen shot.&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/AVvXsEjSRJs-bbWvu9lWSr3LGk2dYv1riviDkaS7W6AO2vn0mKUpKFk7MV3mtthXga3vSM9jvXRK5N1o9v17nVZx1YXI7fngr4eCSRTe1UJu7CsOnMGNhlcl3LZDOk62hbmR1iZuOAr9tAXCTdbl/s1600/Screenshot-6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSRJs-bbWvu9lWSr3LGk2dYv1riviDkaS7W6AO2vn0mKUpKFk7MV3mtthXga3vSM9jvXRK5N1o9v17nVZx1YXI7fngr4eCSRTe1UJu7CsOnMGNhlcl3LZDOk62hbmR1iZuOAr9tAXCTdbl/s1600/Screenshot-6.png&quot; height=&quot;320&quot; width=&quot;282&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/AVvXsEjSqthqKd8c4aBllkA2miVinAII09Ullydm1RBjCgcapypLZyLWd-FBZYMmuOjz4G4B6svryjzTPJaK0HlU6ZUumEcxOmshcAb40Ut64HAVZ-9kA2nLZPZkpe4wSUpX1JtbYGG5Qvbx8YIU/s1600/Screenshot-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt; &lt;/div&gt;
Below are the next set of screen shots u will get if you keep on doing next.&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/AVvXsEh8J4LjnZdySbtcjPHZKebFxfZUHRuduhGQ5Mmqx74qDHwYIbr-a6jbG0ADMkKdDZgSkHyp1KwU3AGzI3jIuGcC0XE3YkWrlcQyMJVYhrXb0LBLQ8IDrxHNignIrbcXiPvqTkzpYDx8-5Re/s1600/Screenshot-7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8J4LjnZdySbtcjPHZKebFxfZUHRuduhGQ5Mmqx74qDHwYIbr-a6jbG0ADMkKdDZgSkHyp1KwU3AGzI3jIuGcC0XE3YkWrlcQyMJVYhrXb0LBLQ8IDrxHNignIrbcXiPvqTkzpYDx8-5Re/s1600/Screenshot-7.png&quot; height=&quot;320&quot; width=&quot;277&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Sometimes when doing next we may get error.But click back and do next again.Then sometimes errors will dissapear.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&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/AVvXsEhnf_3aRnl2cvk57a-HIDv1-MQNuAO_CoBaBF-kvu57Num1MViuAlfgL-IJNdJfUu6FPkDkAwehSytV13FBmUa-3XTFA1XGGxK2sGvIvzLvUjj7rlsEu4ZbqmWSqY3gWIdHXy7HMlRWpPNL/s1600/Screenshot-8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnf_3aRnl2cvk57a-HIDv1-MQNuAO_CoBaBF-kvu57Num1MViuAlfgL-IJNdJfUu6FPkDkAwehSytV13FBmUa-3XTFA1XGGxK2sGvIvzLvUjj7rlsEu4ZbqmWSqY3gWIdHXy7HMlRWpPNL/s1600/Screenshot-8.png&quot; height=&quot;320&quot; width=&quot;283&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/AVvXsEjrYWQSHY2lXtTf0zNHa7FPNhSORErUARgHoJMY_4aGFs6Dw6VED2dDW6l9QpQOR6SMISM5Yln_-R4PG7bPzNkE_3Qhqfnx9Jul9NiPeMFhbYFI4RNAF-9KUJBC50NMAquf_XgOTwDmINaH/s1600/Screenshot-9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrYWQSHY2lXtTf0zNHa7FPNhSORErUARgHoJMY_4aGFs6Dw6VED2dDW6l9QpQOR6SMISM5Yln_-R4PG7bPzNkE_3Qhqfnx9Jul9NiPeMFhbYFI4RNAF-9KUJBC50NMAquf_XgOTwDmINaH/s1600/Screenshot-9.png&quot; height=&quot;320&quot; width=&quot;283&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/AVvXsEgQyt6-E8TJASaR0Y49_XhyCSfQ0UYJN4rnHZW4dWFQRav29GSUaPBz8rLq-kUB0ZtBAGGJ2s8ITf7k8xYft-gYp7UzjNzN7wMsOnSnAUgNSHeBvGzGDeJmFNvwTAZqlyg2iiMMcMcrKoAa/s1600/Screenshot-10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQyt6-E8TJASaR0Y49_XhyCSfQ0UYJN4rnHZW4dWFQRav29GSUaPBz8rLq-kUB0ZtBAGGJ2s8ITf7k8xYft-gYp7UzjNzN7wMsOnSnAUgNSHeBvGzGDeJmFNvwTAZqlyg2iiMMcMcrKoAa/s1600/Screenshot-10.png&quot; height=&quot;320&quot; width=&quot;286&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/AVvXsEh0RAPFwWsuUrvXCfq3leSUUrQRiDWez1mlR3QYVYoewqWYnrr7K7bVwESPXehHL1Rwejys4C1DlhXAHlklvhH8uehmWfQu_cCJ40NCgZuq5kDZp9LmeYLwHsSgSn-dd0spj7gZELpahfmR/s1600/Screenshot-11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0RAPFwWsuUrvXCfq3leSUUrQRiDWez1mlR3QYVYoewqWYnrr7K7bVwESPXehHL1Rwejys4C1DlhXAHlklvhH8uehmWfQu_cCJ40NCgZuq5kDZp9LmeYLwHsSgSn-dd0spj7gZELpahfmR/s1600/Screenshot-11.png&quot; height=&quot;320&quot; width=&quot;285&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/AVvXsEiNGrMgw22v_9VOivO6wAw0bE4aX3I3KeVxTbh1z3_YGBfyUSV2Buho7aTM4reo4BUbq-D3yb7v7IATCrdg9HaofC6szjFijzLK7rOPzwZ6R6gVms8smFiCIKjCrJl5upmTQh411ijvcXGc/s1600/Screenshot-12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNGrMgw22v_9VOivO6wAw0bE4aX3I3KeVxTbh1z3_YGBfyUSV2Buho7aTM4reo4BUbq-D3yb7v7IATCrdg9HaofC6szjFijzLK7rOPzwZ6R6gVms8smFiCIKjCrJl5upmTQh411ijvcXGc/s1600/Screenshot-12.png&quot; height=&quot;318&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) when above is done, there will be separate client project created to test this.It will open up as below.&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/AVvXsEgr75SmSTfyJzYvgB3idZav0x0AoVmpcCyN-u7IIOVKTyRvX_vO6Ck-podeE_O55pW8r59UfHqy44dcJjWHiVW19_e92wxR1QhxEXFrfzD-jbwiFX4Hhl1YF34S-eXb53dRc5GiONfa8jk1/s1600/Screenshot-13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr75SmSTfyJzYvgB3idZav0x0AoVmpcCyN-u7IIOVKTyRvX_vO6Ck-podeE_O55pW8r59UfHqy44dcJjWHiVW19_e92wxR1QhxEXFrfzD-jbwiFX4Hhl1YF34S-eXb53dRc5GiONfa8jk1/s1600/Screenshot-13.png&quot; height=&quot;129&quot; width=&quot;320&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/AVvXsEimgoTGdRX9LWZMKto6Cu-GOBLn_8bOImbyjiSDgi_oo-dEGA0Qihh_ygUPjxavoMDnjK1_M4srZBU2IMPHl42Mf-igqkknI1H7TDdZaPxSXPpltWJE1bdWkwquNSojrkpFBu2mkJ-gz2Sb/s1600/Screenshot-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
5)When we click on our service method, which is getRank, then we get below form to test the service.&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/AVvXsEhvY0OZQyjDBTUmgW_OJUi1xj86c1HLF77y1ouB64QoA_xb-6v_Q4rVEdQEOhz90wFIkuMJQKhm4ytMr2ffWBTOGtQl6FxVjaWwz_kAPG10aueB4WJeseg_NC51x-61oFQ0NQ8nhYEPYLMA/s1600/Screenshot-14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvY0OZQyjDBTUmgW_OJUi1xj86c1HLF77y1ouB64QoA_xb-6v_Q4rVEdQEOhz90wFIkuMJQKhm4ytMr2ffWBTOGtQl6FxVjaWwz_kAPG10aueB4WJeseg_NC51x-61oFQ0NQ8nhYEPYLMA/s1600/Screenshot-14.png&quot; height=&quot;129&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
6) Once input is done and invoke is clicked, it will show the input in result section as below and Sys out will be printed to console as below.&lt;br /&gt;
&lt;br /&gt;
result section will show string only if the web service is returning a string.else if it is only a sys out, it will show the output in console.&lt;br /&gt;
&lt;br /&gt;
http://localhost:8080/Test-WS-1Client/sampleTestServiceRankingProxy/TestClient.jsp &lt;br /&gt;
&lt;br /&gt;
Test-WS-1Client= generated client project name&lt;br /&gt;
sampleTestServiceRankingProxy = here&amp;nbsp; &#39;TestServiceRanking&#39; is the  class name including the service method which we have defined&lt;br /&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/AVvXsEhyLQkm-yNL0Px3lpBpzc3R6_CEFPKtsfN3IFmuIgUmqwiZvkI5Z7VdTWUwFXHeZfWVzvq3va3Z1YfHVxUBOsafChiRFrfIWJYyMLWsJ7aTZBMp9zbbKa2Miujtt88FBcCcro04g36E9LQW/s1600/Screenshot-15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyLQkm-yNL0Px3lpBpzc3R6_CEFPKtsfN3IFmuIgUmqwiZvkI5Z7VdTWUwFXHeZfWVzvq3va3Z1YfHVxUBOsafChiRFrfIWJYyMLWsJ7aTZBMp9zbbKa2Miujtt88FBcCcro04g36E9LQW/s1600/Screenshot-15.png&quot; height=&quot;129&quot; width=&quot;320&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/AVvXsEiOYhj3JoXiajn5SjfuQj1yHGgxKeShM2u0G2JgLiwprvjAjgH8wd29i7XVqDA-zugnWpsFj0T5AjTSHTzbILvGz2umoCY98R1WyX8dcOUX23-te4CLcdlMgvHII_tqLIt1fR85EdSiDCDZ/s1600/Screenshot-16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYhj3JoXiajn5SjfuQj1yHGgxKeShM2u0G2JgLiwprvjAjgH8wd29i7XVqDA-zugnWpsFj0T5AjTSHTzbILvGz2umoCY98R1WyX8dcOUX23-te4CLcdlMgvHII_tqLIt1fR85EdSiDCDZ/s1600/Screenshot-16.png&quot; height=&quot;84&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7) Below is how to access the wsdl on diferent browser.&lt;br /&gt;
&lt;br /&gt;
http://localhost:8080/Test-WS-1/services/TestServiceRanking?wsdl&lt;br /&gt;
&lt;br /&gt;
Test-WS-1 = server project name&lt;br /&gt;
services = this is a must to include&lt;br /&gt;
TestServiceRanking = class name including the service method which we have defined&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/AVvXsEiJfJZneXTjfQ1xIGvIEx4KdeRmHe16sSjbG4jeQyB0gfWgsOv8xQBQVQ626JVUa_hlD419j-tbjukriEHRmcGABaawmzrA82nObRJaBNm03SHveVg7xEWM2NTB_h4DPPYqdQDx3Z1mlOPf/s1600/Screenshot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJfJZneXTjfQ1xIGvIEx4KdeRmHe16sSjbG4jeQyB0gfWgsOv8xQBQVQ626JVUa_hlD419j-tbjukriEHRmcGABaawmzrA82nObRJaBNm03SHveVg7xEWM2NTB_h4DPPYqdQDx3Z1mlOPf/s1600/Screenshot.png&quot; height=&quot;167&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/2734520273936267644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/12/web-services-beginner-guide-1-create.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/2734520273936267644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/2734520273936267644'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/12/web-services-beginner-guide-1-create.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizCFSruNGmUOxvjonrgbivp_iRzGn0Qhy-qmUT71kuZSyD14wCkRK15oVq5NdbDUSm9NjNk0XFXK3ED2HU8hN0LrFuzKOxmJwNv5qL7xyvDnfLdHVni2BEUFUjYduDIh3mXAN7RGgLkmEU/s72-c/Screenshot-1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-387966857573838233</id><published>2013-10-23T00:20:00.000-07:00</published><updated>2014-07-02T06:15:37.050-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Jasper Report - How to print pdf, html and excel reports&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;import java.io.ByteArrayOutputStream;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.FileInputStream;&lt;br /&gt;import java.io.FileNotFoundException;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;import java.io.OutputStream;&lt;br /&gt;import java.sql.Connection;&lt;br /&gt;import java.sql.DriverManager;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.HashMap;&lt;br /&gt;import java.util.Map;&lt;br /&gt;&lt;br /&gt;import net.sf.jasperreports.engine.JRExporterParameter;&lt;br /&gt;import net.sf.jasperreports.engine.JasperCompileManager;&lt;br /&gt;import net.sf.jasperreports.engine.JasperExportManager;&lt;br /&gt;import net.sf.jasperreports.engine.JasperFillManager;&lt;br /&gt;import net.sf.jasperreports.engine.JasperManager;&lt;br /&gt;import net.sf.jasperreports.engine.JasperPrint;&lt;br /&gt;import net.sf.jasperreports.engine.JasperReport;&lt;br /&gt;import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;&lt;br /&gt;import net.sf.jasperreports.engine.design.JasperDesign;&lt;br /&gt;import net.sf.jasperreports.engine.export.JRXlsExporter;&lt;br /&gt;import net.sf.jasperreports.engine.export.JRXlsExporterParameter;&lt;br /&gt;import net.sf.jasperreports.engine.xml.JRXmlLoader;&lt;br /&gt;import net.sf.jasperreports.view.JasperViewer;&lt;br /&gt;&lt;br /&gt;public class ReportGeneration {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream inputStream;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JasperReport jasperReport = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // First, load JasperDesign from XML and compile it into JasperReport&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; inputStream = new FileInputStream (&quot;C:/MSC_project/JasperProjects/TestPro2/src/test_jasper_rep1.jrxml&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JasperDesign jasperDesign = JRXmlLoader.load(inputStream);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; jasperReport = JasperCompileManager.compileReport(jasperDesign);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch block&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e1.printStackTrace();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Second, create a map of parameters to pass to the report.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Map parameters = new HashMap();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.put(&quot;Title&quot;, &quot;Basic JasperReport&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; parameters.put(&quot;MaxSalary&quot;, new Double(25000.00));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Third, get a database connection&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // String dbUrl = props.getProperty(&quot;jdbc.url&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbUrl = &quot;jdbc:mysql://localhost:3306/struts_tiles1&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // String dbDriver = props.getProperty(&quot;jdbc.driver&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbDriver = &quot;com.mysql.jdbc.Driver&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // String dbUname = props.getProperty(&quot;db.username&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbUname = &quot;root&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // String dbPwd = props.getProperty(&quot;db.password&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbPwd = &quot;123456&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Connection conn;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JasperPrint jasperPrint = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Load the JDBC driver&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Class.forName(dbDriver);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; conn = DriverManager.getConnection(dbUrl, dbUname, dbPwd);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Fourth, create JasperPrint using fillReport() ethod&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; jasperPrint = JasperManager.fillReport(jasperReport,parameters, conn);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // You can use JasperPrint to create PDF&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JasperManager.printReportToPdfFile(jasperPrint, &quot;C:/BasicReport.pdf&quot;);&lt;br /&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; JasperExportManager.exportReportToHtmlFile(jasperPrint, &quot;C:/BasicReport.html&quot; );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JRXlsExporter exporter = new JRXlsExporter();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, &quot;C:/BasicReport.xls&quot; );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.exportReport();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // coding For Excel:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /*ByteArrayOutputStream outputByteArray = new ByteArrayOutputStream();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; OutputStream outputfile= new FileOutputStream(new File(&quot;C:/BasicReport.xls&quot;));&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; JRXlsExporter exporterXLS = new JRXlsExporter();&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; exporterXLS.setParameter(JRXlsExporterParameter.JASPER_PRINT, jasperPrint);&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; exporterXLS.setParameter(JRXlsExporterParameter.OUTPUT_STREAM, outputByteArray);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporterXLS.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporterXLS.exportReport();&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; outputfile.write(outputByteArray.toByteArray()); */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated catch block&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Or to view report in the JasperViewer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; JasperViewer.viewReport(jasperPrint);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To print in to excel sheet we can use step 1 or step 2.But in both instances, chek the jasper report.jar version and add the poi jar version compatible. eg: poi-2.0-final-20040126.jar&lt;br /&gt;
&lt;br /&gt;
step 1&lt;br /&gt;
&lt;br /&gt;
JRXlsExporter exporter = new JRXlsExporter();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, &quot;C:/BasicReport.xls&quot; );&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exporter.exportReport();&lt;br /&gt;
&lt;br /&gt;
step 2&lt;br /&gt;
&lt;br /&gt;
ByteArrayOutputStream outputByteArray = new ByteArrayOutputStream();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; OutputStream outputfile= new FileOutputStream(new File(&quot;C:/BasicReport.xls&quot;));&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; JRXlsExporter exporterXLS = new JRXlsExporter();&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; exporterXLS.setParameter(JRXlsExporterParameter.JASPER_PRINT, jasperPrint);&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; exporterXLS.setParameter(JRXlsExporterParameter.OUTPUT_STREAM, outputByteArray);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporterXLS.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);&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; exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporterXLS.exportReport();&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; outputfile.write(outputByteArray.toByteArray());</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/387966857573838233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-report-how-to-print-pdf-html-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/387966857573838233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/387966857573838233'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-report-how-to-print-pdf-html-and.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-2119026947605908073</id><published>2013-10-23T00:13:00.000-07:00</published><updated>2014-07-02T06:15:37.033-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;Jasper Error - Document root element &quot;jasperReport&quot;, must match DOCTYPE root &quot;null&quot;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I m getting below error when trying to compile jasper report.&lt;br /&gt;
&lt;br /&gt;
SEVERE: Parse Error at line 2 column 438: Document root element &quot;jasperReport&quot;, must match DOCTYPE root &quot;null&quot;.&lt;br /&gt;org.xml.sax.SAXParseException: Document root element &quot;jasperReport&quot;, must match DOCTYPE root &quot;null&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1900)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)&lt;br /&gt;
&lt;br /&gt;
below is how my .jrxml file looks like.&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;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; name=&quot;BasicReport&quot; pageWidth=&quot;595&quot; pageHeight=&quot;842&quot; columnWidth=&quot;555&quot; leftMargin=&quot;20&quot; rightMargin=&quot;20&quot; topMargin=&quot;30&quot; bottomMargin=&quot;30&quot; uuid=&quot;36d77059-4949-41ea-ad78-41d8786ef809&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;ireport.zoom&quot; value=&quot;1.0&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;ireport.x&quot; value=&quot;0&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;ireport.y&quot; value=&quot;0&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name=&quot;Title&quot; class=&quot;java.lang.String&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name=&quot;MaxSalary&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can be fixed by introducing &amp;lt;DOCTYPE ... &amp;gt; to .jrxml file as below.&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 jasperReport PUBLIC &quot;//JasperReports//DTD Report Design//EN&quot; &quot;http://jasperreports.sourceforge.net/dtds/jasperreport.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;jasperReport name=&quot;scriptlet&quot;&amp;gt;&lt;br /&gt;&amp;lt;property name=&quot;ireport.zoom&quot; value=&quot;1.0&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;ireport.x&quot; value=&quot;0&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;........................................................................ </content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/2119026947605908073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-error-document-root-element.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/2119026947605908073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/2119026947605908073'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-error-document-root-element.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-6045218440661146196</id><published>2013-10-22T20:04:00.000-07:00</published><updated>2013-10-22T20:04:45.588-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Jasper Reporting Error -&amp;nbsp; Attribute &quot;xmlns&quot; must be declared for element type &quot;jasperReport&quot;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;I am getting the below error when trying to compile my jasper report program.&lt;/span&gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
SEVERE: Parse Error at line 9 column 33: Attribute &quot;xmlns&quot; must be declared for element type &quot;jasperReport&quot;.&lt;br /&gt;org.xml.sax.SAXParseException: Attribute &quot;xmlns&quot; must be declared for element type &quot;jasperReport&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1275)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1940)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1318)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)&lt;br /&gt;
&lt;br /&gt;
My jrxml file looks like below.&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 jasperReport PUBLIC&lt;br /&gt;&quot;//JasperReports//DTD Report Design//EN&quot;&lt;br /&gt;&quot;http://jasperreports.sourceforge.net/dtds/jasperreport.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; &lt;br /&gt;xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; &lt;br /&gt;name=&quot;scriptlet&quot; pageWidth=&quot;595&quot; pageHeight=&quot;842&quot; columnWidth=&quot;535&quot; leftMargin=&quot;30&quot; rightMargin=&quot;30&quot; topMargin=&quot;30&quot; bottomMargin=&quot;30&quot; &lt;br /&gt;whenResourceMissingType=&quot;Empty&quot;&amp;gt;&lt;br /&gt;&amp;lt;property name=&quot;com.jasperassistant.designer.Grid&quot; value=&quot;false&quot;/&amp;gt;&lt;br /&gt;&amp;lt;property name=&quot;com.jasperassistant.designer.SnapToGrid&quot; value=&quot;false&quot;/&amp;gt;&lt;br /&gt;&amp;lt;property name=&quot;com.jasperassistant.designer.GridWidth&quot; value=&quot;12&quot;/&amp;gt;&lt;br /&gt;&amp;lt;property name=&quot;com.jasperassistant.designer.GridHeight&quot; value=&quot;12&quot;/&amp;gt;&lt;br /&gt;&amp;lt;queryString&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[]]&amp;gt;&lt;br /&gt;&amp;lt;/queryString&amp;gt;&lt;br /&gt;
..........................................................&lt;br /&gt;
&lt;br /&gt;The solution is below.&lt;br /&gt;
&lt;br /&gt;
Instead of using both the DTD and the XML 
schema, stick to the DTD alone. In other words, instead of having the 
following lines in my JRXML file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;!&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;DOCTYPE jasperReport PUBLIC &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;//JasperReports//DTD Report Design//EN&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;http://jasperreports.sourceforge.net/dtds/jasperreport.dtd&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;jasperReport xmlns&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;http://jasperreports.sourceforge.net/jasperreports&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; xmlns&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;xsi&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;xsi&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;schemaLocation&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;report2&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; language&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;groovy&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; pageWidth&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;595&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; pageHeight&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;842&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;columnWidth&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;555&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; leftMargin&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rightMargin&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; topMargin&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;bottomMargin&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;I have put below two lines and it worked.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;!DOCTYPE jasperReport PUBLIC &quot;//JasperReports//DTD Report Design//EN&quot; &quot;http://jasperreports.sourceforge.net/dtds/jasperreport.dtd&quot;&amp;gt;
&amp;lt;jasperReport name=&quot;scriptlet&quot;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/6045218440661146196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-reporting-error-attribute-xmlns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6045218440661146196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6045218440661146196'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/jasper-reporting-error-attribute-xmlns.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-409013527881659298</id><published>2013-10-21T10:40:00.001-07:00</published><updated>2013-10-21T11:02:20.205-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Using iReport 5.1.0 Designer&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
After extracting zipfile and when truing to click on iReport icon in bin to execute iReport we may get below error.&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/AVvXsEg9XzqT24dMb6uJJ9uJzvXadXzpRJNBI3WsNM0Ihsd075GG3bmhlKJpleFrGVL5SZjVH-ht7iLUaX2oUj1qJE3UF6tno1Wyco9ljtAZaFMaNoDU8aiNFTTukF-ifNYp5t6hki-fpCcvVZuz/s1600/123.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9XzqT24dMb6uJJ9uJzvXadXzpRJNBI3WsNM0Ihsd075GG3bmhlKJpleFrGVL5SZjVH-ht7iLUaX2oUj1qJE3UF6tno1Wyco9ljtAZaFMaNoDU8aiNFTTukF-ifNYp5t6hki-fpCcvVZuz/s1600/123.png&quot; height=&quot;157&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
To solve it we need to set JDK path in config file.&lt;br /&gt;
&lt;br /&gt;
in etc folder, there is file named &#39;iReport&#39;.Set path as below.&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/AVvXsEjA5lQDaM6yJ8d7-tdWqsPtmPMxjRjUpOciAKzHSPWnReJyp-XZHVNyuUZa5-i3B_WHSHRRgNC-KjXRJUc4JfnekVHSy3PHlmzfuNoNwr2Awxbj5xO5Lk7pVDhuyG2El4hiHuWGUVDEQOnC/s1600/111.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA5lQDaM6yJ8d7-tdWqsPtmPMxjRjUpOciAKzHSPWnReJyp-XZHVNyuUZa5-i3B_WHSHRRgNC-KjXRJUc4JfnekVHSy3PHlmzfuNoNwr2Awxbj5xO5Lk7pVDhuyG2El4hiHuWGUVDEQOnC/s1600/111.JPG&quot; height=&quot;392&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Then issues will be solved.&lt;br /&gt;
&lt;br /&gt;
When initially start working, we have to copy DB library file to iReport lib folder and then click tools -&amp;gt; options -&amp;gt; classpath -&amp;gt; add jar and select whatever the jar file.&lt;br /&gt;
&lt;br /&gt;
For eg: if it is oracle,then it will be ojdbc6.jar&lt;br /&gt;
&lt;br /&gt;
Then click on &#39;datasource&#39; as below.&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/AVvXsEiuEDSQgjXchFL86GmGrTG4yK8y1i9T14Lx-j5homYCXkTqmc4TIVt9XqgLlf4_3zrn-t-ETGoRnxJKh6ZlnxgGBiIEWbQb__Ew7P9Qum7kFi1PJL-jqlmTqeav_YZ4HrNiXoBRUDaZTOLi/s1600/oct21-1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuEDSQgjXchFL86GmGrTG4yK8y1i9T14Lx-j5homYCXkTqmc4TIVt9XqgLlf4_3zrn-t-ETGoRnxJKh6ZlnxgGBiIEWbQb__Ew7P9Qum7kFi1PJL-jqlmTqeav_YZ4HrNiXoBRUDaZTOLi/s1600/oct21-1.JPG&quot; height=&quot;337&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Then create connection as below and test it to check wethre it is successful.&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/AVvXsEhTpqv1Aotj-hqB57rig99acrNT1Le3q2FQeW1iNua4VBFA_6OFgNZAYaSUMJxWLbonZE6O-taSP2O5ph5ZHysUFMxJ8ElbdhzqEcdooP5m_gUNfr9NvXCbJ9h3I8h9gnACiRscOSLARom7/s1600/oct21-2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTpqv1Aotj-hqB57rig99acrNT1Le3q2FQeW1iNua4VBFA_6OFgNZAYaSUMJxWLbonZE6O-taSP2O5ph5ZHysUFMxJ8ElbdhzqEcdooP5m_gUNfr9NvXCbJ9h3I8h9gnACiRscOSLARom7/s1600/oct21-2.JPG&quot; height=&quot;528&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Then create new report as below.We can select any report template as below.Click on &#39;Open this template&#39; button.&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/AVvXsEjyg_NO5cjyhMuvWRDHhcV8ubIXq5ufiQrLywfNxPWdLah357Ie3rnGJm-sebBg7HwSGJyUuJsjN6594cMPxn2OnNoZspqc-j1eq1-9z3BOE0nx-GfdQH1PCNka036Aj36lzxP6dNwYqhN6/s1600/Oct+21-3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyg_NO5cjyhMuvWRDHhcV8ubIXq5ufiQrLywfNxPWdLah357Ie3rnGJm-sebBg7HwSGJyUuJsjN6594cMPxn2OnNoZspqc-j1eq1-9z3BOE0nx-GfdQH1PCNka036Aj36lzxP6dNwYqhN6/s1600/Oct+21-3.JPG&quot; height=&quot;342&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Below is the link for rest of instrucions.&lt;br /&gt;
&lt;br /&gt;
http://community.jaspersoft.com/wiki/designing-report&lt;br /&gt;
&lt;br /&gt;
http://community.jaspersoft.com/project/ireport-designer &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;To print the value of a field in the report, drag a field object from 
the report inspector to the design view. For example, drag a field into 
the detail band, a section of the report that is printed for each 
record/row in the query results. The title and the summary bands are 
printed just once in each report, while the page header and footer are 
printed once at the top and bottom of each page, respectively.&lt;/li&gt;
&lt;li&gt;It is important that the textfields are all placed within the detail band.&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Deploying Your Report - &lt;/b&gt;Deploying your report to JasperReports Server or within your own Java application.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;(Refer this link: http://community.jaspersoft.com/wiki/deploying-reports) &lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
When you design and preview a report in iReport Designer, iReport 
Designer produces a Jasper file. This file is all you need in your Java 
application to generate and display the report (in addition to 
JasperReports Library, of course).&lt;br /&gt;
&lt;br /&gt;
The report execution is performed by the JasperReports library, so you 
have to include all the required jars in your application. Which jars? 
If you do not have a problem shipping a lot of jars, you can include all
 the jars provided in JasperReports Library. However JasperReports includes many jars that you may not need as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/409013527881659298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/using-ireport-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/409013527881659298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/409013527881659298'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/using-ireport-5.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9XzqT24dMb6uJJ9uJzvXadXzpRJNBI3WsNM0Ihsd075GG3bmhlKJpleFrGVL5SZjVH-ht7iLUaX2oUj1qJE3UF6tno1Wyco9ljtAZaFMaNoDU8aiNFTTukF-ifNYp5t6hki-fpCcvVZuz/s72-c/123.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-6094795837735271376</id><published>2013-10-19T00:15:00.001-07:00</published><updated>2013-10-19T00:15:54.482-07:00</updated><title type='text'></title><content type='html'>&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to solve this The server does not support version 3.0 of the J2EE Web module specification.?&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;This happens becasue different tomcat versions support, different servlet specsbelow links give which supports which version&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Tomcat5.5.x supports&lt;/span&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;servlet/jsp spec&lt;/span&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt; 2.4/2.0  (Does not support annotations).&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;You need to upgrade to tomcat7.x to be able to run servlet/jsp spec 3.0/2.2&lt;/span&gt;&lt;br /&gt;
&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;http://tomcat.apache.org/whichversion.html&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Ways to solve the problem. Change version to 2.5 to run in tomcat 5.5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; or Run your application with version 3.0 in tomcat &lt;b&gt;7.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;votecell&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;answercell&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Normally you&#39;d simply go to properties-&amp;gt;Project Facets and then 
change the Dynamic Web Module to a lower version. However for me that is
 not working. It tells me &quot;Cannot change the version of project facet 
Dynamic Web Module to 2.5&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;Refer this link.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;http://keensknowledgeaccumulation.blogspot.com/2013/02/server-does-not-support-version-30-of.html&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/6094795837735271376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-solve-this-server-does-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6094795837735271376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6094795837735271376'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-solve-this-server-does-not.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-34627925698239967</id><published>2013-10-18T23:44:00.003-07:00</published><updated>2013-10-18T23:44:49.834-07:00</updated><title type='text'></title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Error - &#39;Project facet Java version 1.7 is not supported in eclipse&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 class=&quot;post-title entry-title&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;It can be that java 1.7 is not installed in your system then you can use java version that is already installed in your system.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&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/AVvXsEgoFJ8OjIaqBeg7ZyKEHqq7lSoSBnZvlk1wF9jABrN7DDhAVz34q2n69wbx6ExdFECmFYc12tipP8Y360uPb4wgVKIMD-39uMFaH2FX-G_C5vvcW9Vk0BdZ4BgJhbhxDQH5HXfBAmR7bKGp/s1600/project+facet+java+version+1.7+not+supported.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoFJ8OjIaqBeg7ZyKEHqq7lSoSBnZvlk1wF9jABrN7DDhAVz34q2n69wbx6ExdFECmFYc12tipP8Y360uPb4wgVKIMD-39uMFaH2FX-G_C5vvcW9Vk0BdZ4BgJhbhxDQH5HXfBAmR7bKGp/s1600/project+facet+java+version+1.7+not+supported.png&quot; height=&quot;300&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Following Steps could resolve this error by setting up current version in project facet&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Step 1: Right Click over your Project on Project Explorer and click on Properties.&lt;/span&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Step 2: Goto java build path-&amp;gt;Libraries&lt;br /&gt;
&amp;nbsp;Check JRE System Library Jars and also check it is JDK 1.6 or 1.7&lt;/span&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Step 3:Go to &quot;Project Facet&quot; and select your current java version available.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghHIiM9zBvGO-EeSpPGUF4yVDKPizXQqgQ89_AqwRFJnJC1JDuNdBcBLDpxg0d1H7nirehubZsKzjHYuJp0FYswWBPeg_vk_t5ww4FKU7X-wwmgB9bPy3w5DTsPqTXQUjwe2RKAl-rRAw5/s1600/Project+facet+Java+version+1.7+is+not+supported+in+eclipse.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghHIiM9zBvGO-EeSpPGUF4yVDKPizXQqgQ89_AqwRFJnJC1JDuNdBcBLDpxg0d1H7nirehubZsKzjHYuJp0FYswWBPeg_vk_t5ww4FKU7X-wwmgB9bPy3w5DTsPqTXQUjwe2RKAl-rRAw5/s1600/Project+facet+Java+version+1.7+is+not+supported+in+eclipse.png&quot; height=&quot;474&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;click apply then ok.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/34627925698239967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/error-project-facet-java-version-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/34627925698239967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/34627925698239967'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/error-project-facet-java-version-1.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoFJ8OjIaqBeg7ZyKEHqq7lSoSBnZvlk1wF9jABrN7DDhAVz34q2n69wbx6ExdFECmFYc12tipP8Y360uPb4wgVKIMD-39uMFaH2FX-G_C5vvcW9Vk0BdZ4BgJhbhxDQH5HXfBAmR7bKGp/s72-c/project+facet+java+version+1.7+not+supported.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-1446043418057290619</id><published>2013-10-06T08:00:00.000-07:00</published><updated>2013-10-06T08:00:04.136-07:00</updated><title type='text'></title><content type='html'>&lt;h1 itemprop=&quot;name&quot;&gt;
&lt;a class=&quot;question-hyperlink&quot; href=&quot;http://stackoverflow.com/questions/1074081/hibernate-error-org-hibernate-nonuniqueobjectexception-a-different-object-with&quot;&gt;Hibernate
 Error: org.hibernate.NonUniqueObjectException: a different object with 
the same identifier value was already associated with the session&lt;/a&gt;&lt;/h1&gt;
&lt;br /&gt;
&lt;strong&gt;save method:-&lt;/strong&gt; it is used to insert the newly created
 object in datastore.(Basically identifier value will be 0 for this). 
Like i create a new customer and call save operation , it will persist 
it in datastore and generate the identifier.&lt;br /&gt;
 So calling save again will result in another row in the db.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;update method:-&lt;/strong&gt; it is used to update the already persistent object in datastore.(Basically identifier value will be some 
non zero value for this). Like i load a new customer and call update 
operation after update of some field value, it will update it in 
datastore .&lt;strong&gt;As per my understanding it should fail with some exception because as per api update is for detached object.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;update&lt;/code&gt;&lt;/span&gt;&lt;/b&gt; updates an object in the session.  So if the object 
is in the session it will update.  If the object is not in the session, 
you should call merge.  I believe calling &lt;code&gt;update&lt;/code&gt; for a detached instance will result in an exception.&lt;br /&gt;
&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;




&lt;strong&gt;saveorupdate method:-&lt;/strong&gt; it will call either of above based on unsaved-value checks.
 so if we have persistent customer object . Now if we update last name 
of his and create a new account also, then saveorupdate will take care 
of it.&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;


&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Merge method :-&lt;/strong&gt;  it will like update but here if 
persistent object with the same identifier is already there in session 
it will update the detached object values in persistent object and save 
it. &lt;strong&gt;Right?&lt;/strong&gt;  But if If there is no persistent instance 
currently associated with the session, this will load the persistent 
object from datastore and then update the value of detached object in 
loaded persistent object and then update it.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;above chek again pls&lt;br /&gt;
http://stackoverflow.com/questions/7475363/differences-among-save-update-saveorupdate-merge-method-in-session-object&lt;br /&gt;
&lt;br /&gt;
Rather than sing update if we use, merge this can be solved.&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/1446043418057290619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org_6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1446043418057290619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1446043418057290619'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org_6.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-7368860674515453959</id><published>2013-10-06T05:20:00.002-07:00</published><updated>2013-10-06T05:20:16.112-07:00</updated><title type='text'></title><content type='html'>How to apply atheme to Struts2 Forms&lt;br /&gt;
&lt;br /&gt;
Sometimes even if we try to align 2 components in UI of struts form, they will not get aligned.For eg: I needed to have two text boxes in one row.So in such a situation I can do below.&lt;br /&gt;
&lt;br /&gt;
For eg: When you use a Struts 2 tag such as s:select in your web page, the 
Struts 2 framework generates HTML that styles the appearance and 
controls the layout of the select control.  The style and layout is 
determined by which Struts 2 theme is set for the tag.  Struts 2 comes 
with three built-in themes:  simple, xhtml, and css_xhtml.  If you don’t
 specify a theme, then Struts 2 will use the xhtml theme by default.&lt;br /&gt;
&lt;br /&gt;
I can either change struts.xml as below.Then it will apply all pages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;struts&amp;gt;&lt;br /&gt;&amp;lt;constant name=&quot;struts.ui.theme&quot; value=&quot;simple&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
......................&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/struts&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;xhtml layout&lt;/b&gt;&lt;br clear=&quot;none&quot; /&gt;The xhtml theme renders out a two-column table. If a different layout is needed, do &lt;em&gt;not&lt;/em&gt; write your own HTML. Create a new theme or utilize the simple theme.&lt;br /&gt;
&lt;br /&gt;
If we get the issue of labels of text fields missing we can have like below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label for=&quot;a&quot; class=&quot;label&quot; theme=&quot;simple&quot;&amp;gt;Firstname:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;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;lt;td&amp;gt;&amp;lt;s:textfield id=&quot;a&quot; name=&quot;username&quot; label=&quot;Username&quot; size=&quot;20&quot; theme=&quot;simple&quot;/&amp;gt;&amp;lt;/td&amp;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label for=&quot;b&quot; class=&quot;label&quot; theme=&quot;simple&quot;&amp;gt;LastName:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;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;lt;td&amp;gt;&amp;lt;s:textfield id=&quot;b&quot; name=&quot;lastName&quot; label=&quot;lastName&quot; size=&quot;20&quot; theme=&quot;simple&quot;/&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;s:submit method=&quot;execute&quot; label=&quot;login&quot; align=&quot;center&quot; /&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;It will show components in one row.&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/7368860674515453959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-apply-atheme-to-struts2-forms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7368860674515453959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7368860674515453959'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-apply-atheme-to-struts2-forms.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-972128659320613668</id><published>2013-10-06T04:55:00.000-07:00</published><updated>2013-10-06T04:55:40.105-07:00</updated><title type='text'></title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How To Handle Multiple Submit Buttons in Struts 2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
JSP File: &lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;form name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;inquiryForm&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; method&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;post&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; theme&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;simple&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Select&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; roll no &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;select style&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;width: 200px;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
      list&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;#{&#39;1&#39;:&#39;Student 01&#39;, &#39;2&#39;:&#39;Student 02&#39;, &#39;3&#39;:&#39;Student 03&#39;, &#39;4&#39;:&#39;Student 04&#39;}&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      id&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;projectName&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
      name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;studentRollNo&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
      readonly&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
      headerKey&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;-1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
      headerValue&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;--- Select ---&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;submit cssClass&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;page&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; action&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;academics&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; value&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;academics&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;submit cssClass&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;page&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;sports&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; value&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;sports&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;submit cssClass&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;page&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;library&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; value&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;library&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;form&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
struts.xml:&lt;br /&gt;
`
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;package&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;default&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;extends&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;struts-default&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;academics&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;ViewAcademics&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
        &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;success&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ViewAcademics&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;jsp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;sports&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;ViewSports&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
        &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;success&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ViewSports&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;jsp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;library&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;ViewLibrary&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
        &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;success&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ViewLibrary&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;jsp&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;result&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;package&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;----------------------------------------------------------&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Often, we have multiple submit buttons within a single form. The 
below is just a simple way of identifying which button was clicked, and 
which actions to take.&lt;br /&gt;
There are, of course, many ways of doing this, including the use of 
JavaScript to identify the actions, etc... You&#39;re welcome to pick and 
choose whichever method you find most useful. Struts 2 is flexible 
enough.&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Form&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Form&lt;/h2&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_809288&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;&amp;lt;button type=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;value=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;name=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;submit&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;&amp;lt;button type=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;value=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Clear&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;name=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;clear&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;&amp;gt;&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&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Actionwithbooleanproperties&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Action with boolean properties&lt;/h2&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java &quot; id=&quot;highlighter_943711&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyAction &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;ActionSupport {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;private&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;submit;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;private&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;clear;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;setSubmit(&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;submit) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;this&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.submit = submit;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;setClear(&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;clear) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;this&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.clear = clear;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String execute() {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;(submit) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;doSubmit();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java string&quot;&gt;&quot;submitResult&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;(clear) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;doClear();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java string&quot;&gt;&quot;clearResult&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;super&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.execute();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&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&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Explanation&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Explanation&lt;/h2&gt;
The boolean properties &#39;submit&#39; and &#39;clear&#39; will be set to &#39;true&#39; or 
&#39;false&#39; according weather the submit or clear form element is present in
 the submitted form.&lt;br /&gt;
In this case, the properties are boolean, therefore the values set would be boolean.&lt;br /&gt;
There is another method, using String properties, described below...&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Form&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Form&lt;/h2&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_31999&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;&amp;lt;button type=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;value=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;name=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;buttonName&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;&amp;lt;button type=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;submit&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;value=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Clear&quot;&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;name=&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;buttonName&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;&amp;gt;&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&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-ActionwithStringproperties&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Action with String properties&lt;/h2&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_563302&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyAction &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;ActionSupport {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;private&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String buttonName;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;setButtonName(String buttonName) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;this&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.buttonName = buttonName;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String execute() {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Submit&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.equals(buttonName)) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;doSubmit();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java string&quot;&gt;&quot;submitResult&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;java string&quot;&gt;&quot;Clear&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.equals(buttonName)) {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;doClear();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java string&quot;&gt;&quot;clearResult&quot;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;super&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;.execute();&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&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&gt;
&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Explanation&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;Explanation&lt;/h2&gt;
In this case, the properties are String, therefore the values set are also String in nature.&lt;br /&gt;
I don&#39;t really like this method, as it ties in the Action to the 
Form. (What happens if you want different text to show up on the button ?
 You would have to change both the form as well as the corresponding 
action.)&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;MultipleSubmitButtons-Conclusion&quot; shape=&quot;rect&quot;&gt;&lt;/a&gt;&lt;/h2&gt;
There are other ways to achieve the same functionality. There are pros and cons to each methods.&lt;br /&gt;
&lt;br /&gt;
The more elegant solution is probably by using multiple mappings for 
same Action. This way you don&#39;t need to set 
&quot;struts.enable.DynamicMethodInvocation&quot; to &quot;true&quot;.&lt;br /&gt;
&lt;br /&gt;
In JSP&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  html &quot; id=&quot;highlighter_576291&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;html plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;html keyword&quot;&gt;s:form&lt;/code&gt; &lt;code class=&quot;html color1&quot;&gt;method&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;html string&quot;&gt;&quot;post&quot;&lt;/code&gt; &lt;code class=&quot;html color1&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;html string&quot;&gt;&quot;mySubmitAction&quot;&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;html spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;html keyword&quot;&gt;s:submit&lt;/code&gt; &lt;code class=&quot;html color1&quot;&gt;value&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;html string&quot;&gt;&quot;Submit&quot;&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;/&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;html spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;html keyword&quot;&gt;s:submit&lt;/code&gt; &lt;code class=&quot;html color1&quot;&gt;value&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;html string&quot;&gt;&quot;Clear&quot;&lt;/code&gt; &lt;code class=&quot;html color1&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;html string&quot;&gt;&quot;myClearAction&quot;&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;/&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;html plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;html keyword&quot;&gt;form&lt;/code&gt;&lt;code class=&quot;html plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&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&gt;
&lt;/div&gt;
In struts.xml&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  xml &quot; id=&quot;highlighter_62322&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;name&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;mySubmitAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;class&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;MyAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;method&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;submit&quot;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;xml spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;submit.jsp&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;name&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;myClearAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;class&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;MyAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;method&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;clear&quot;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;xml spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;submit.jsp&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&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&gt;
&lt;/div&gt;
Then in MyAction class&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_323184&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String submit() &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;Exception {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot;&gt;// submit button logic here&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;SUCCESS;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String clear() &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;Exception {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot;&gt;// clear button logic here&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;SUCCESS;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&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&gt;
&lt;/div&gt;
&lt;br class=&quot;atl-forced-newline&quot; clear=&quot;none&quot; /&gt;
For best practice, if you have common data loaded / managed by your 
actions (submit &amp;amp; clear), then for example, you can define a 
MyBaseAction class, extended by MySubmitAction and MyClearAction class. 
Then this is how they looks like:&lt;br /&gt;
In struts.xml&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  xml&quot; id=&quot;highlighter_765250&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;name&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;mySubmitAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;class&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;MySubmitAction&quot;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;xml spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;submit.jsp&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;name&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;myClearAction&quot;&lt;/code&gt; &lt;code class=&quot;xml color1&quot;&gt;class&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;xml string&quot;&gt;&quot;MyClearAction&quot;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;xml spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;submit.jsp&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;result&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;xml plain&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code class=&quot;xml keyword&quot;&gt;action&lt;/code&gt;&lt;code class=&quot;xml plain&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&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&gt;
&lt;/div&gt;
You don&#39;t need to specify a method name anymore, that means we will use the default execute() method.&lt;br /&gt;
Then in the MyAction, MySubmitAction and MyClearAction class&lt;br /&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;b&gt;MyAction.java&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_940775&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyAction &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;ActionSupport {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot;&gt;// common data or logic here&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&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&gt;
&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;b&gt;MySubmitAction.java&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  java&quot; id=&quot;highlighter_398802&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MySubmitAction &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyAction {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String execute() &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;Exception {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot;&gt;// submit button logic here&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;SUCCESS;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&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&gt;
&lt;/div&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;
&lt;b&gt;MyClearAction.java&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyClearAction &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;extends&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;MyAction {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;String execute() &lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;throws&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;Exception {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot;&gt;// clear button logic here&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java keyword&quot;&gt;return&lt;/code&gt; &lt;code class=&quot;java plain&quot;&gt;SUCCESS;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;java spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;java plain&quot;&gt;}&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/972128659320613668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-handle-multiple-submit-buttons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/972128659320613668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/972128659320613668'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-handle-multiple-submit-buttons.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-514747745357849599</id><published>2013-10-06T02:15:00.001-07:00</published><updated>2013-10-06T02:15:08.814-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;How to redirect to another action within Struts.xml file - Struts2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;lt;action name=&quot;contact-form&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; class=&quot;net.viralpatel.contact.view.ContactAction&quot; method=&quot;search&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;result name=&quot;success&quot; type=&quot;tiles&quot;&amp;gt;/contactCrud.tiles&amp;lt;/result&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/action&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;action name=&quot;delete&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; class=&quot;net.viralpatel.contact.view.ContactAction&quot; method=&quot;delete&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;result name=&quot;success&quot; type=&quot;chain&quot;&amp;gt;contact-form&amp;lt;/result&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/action&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above is taken from the struts.xml&lt;br /&gt;
&lt;br /&gt;
when we delete, it redirects to &#39;contact-form&#39; action and does whatever within that action.</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/514747745357849599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-redirect-to-another-action.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/514747745357849599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/514747745357849599'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/how-to-redirect-to-another-action.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-6614285334489769375</id><published>2013-10-05T23:57:00.002-07:00</published><updated>2014-07-02T06:15:37.072-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Hibernate Error : org.hibernate.PropertyValueException: not-null property references a null or transient value&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This occured when DB id column is not null and auto generated and my hbm has defined the id column as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;generator class=&quot;native&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;org.hibernate.PropertyValueException: not-null property references a null or transient value: net.viralpatel.contact.model.Contact.created&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.engine.Nullability.checkNullability(Nullability.java:95)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:313)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.impl.SessionImpl.save(SessionImpl.java:550)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.impl.SessionImpl.save(SessionImpl.java:546)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at $Proxy6.save(Unknown Source)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.viralpatel.contact.controller.ContactManager.add(ContactManager.java:27)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.viralpatel.contact.view.ContactAction.add(ContactAction.java:34)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/6614285334489769375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org_5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6614285334489769375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6614285334489769375'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org_5.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-6532520810711903196</id><published>2013-10-05T23:56:00.000-07:00</published><updated>2013-10-05T23:56:11.109-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Hibernate Error :&amp;nbsp; failed.org.hibernate.PropertyNotFoundException: Could not find a getter 
for firstname in class net.viralpatel.contact.model.Contact&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I get below error in a struts 2 + hibernate 3 project and below is mapping file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;property name=&quot;firstname&quot; type=&quot;string&quot; not-null=&quot;false&quot; length=&quot;30&quot; column=&quot;firstName&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And below is how the domain class property is named.&lt;br /&gt;
&lt;br /&gt;
private String firstName;&lt;br /&gt;
&lt;br /&gt;
Below is how column in DB is named.&lt;br /&gt;
&lt;br /&gt;
firstName&amp;nbsp;&amp;nbsp; VARCHAR(30)&lt;br /&gt;
&lt;br /&gt;
when execute the add action from jsp page i get below error.&lt;br /&gt;
&lt;br /&gt;
failed.org.hibernate.PropertyNotFoundException: Could not find a getter for firstname in class net.viralpatel.contact.model.Contact&lt;br /&gt;Oct 6, 2013 11:51:32 AM org.apache.catalina.core.StandardWrapperValve invoke&lt;br /&gt;
SEVERE: Servlet.service() for servlet default threw exception&lt;br /&gt;org.hibernate.PropertyNotFoundException: Could not find a getter for firstname in class net.viralpatel.contact.model.Contact&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:306)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:299)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.mapping.Property.getGetter(Property.java:294)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:268)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.tuple.entity.AbstractEntityTuplizer.&amp;lt;init&amp;gt;(AbstractEntityTuplizer.java:148)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.tuple.entity.PojoEntityTuplizer.&amp;lt;init&amp;gt;(PojoEntityTuplizer.java:76)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.&amp;lt;init&amp;gt;(EntityEntityModeToTuplizerMapping.java:80)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.tuple.entity.EntityMetamodel.&amp;lt;init&amp;gt;(EntityMetamodel.java:325)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.&amp;lt;init&amp;gt;(AbstractEntityPersister.java:457)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.persister.entity.SingleTableEntityPersister.&amp;lt;init&amp;gt;(SingleTableEntityPersister.java:131)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.impl.SessionFactoryImpl.&amp;lt;init&amp;gt;(SessionFactoryImpl.java:261)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.viralpatel.contact.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:14)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.viralpatel.contact.util.HibernateUtil.&amp;lt;clinit&amp;gt;(HibernateUtil.java:8)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at net.viralpatel.contact.view.ContactAction.&amp;lt;init&amp;gt;(ContactAction.java:21)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:513)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Class.newInstance0(Class.java:355)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Class.newInstance(Class.java:308)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:130)......................&lt;br /&gt;
&lt;br /&gt;
Solution :&lt;br /&gt;
&lt;br /&gt;
Property in hbm and pojo class are different.&lt;br /&gt;
They should be the same.</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/6532520810711903196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-failed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6532520810711903196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6532520810711903196'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-failed.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-7782849925021473283</id><published>2013-10-05T11:25:00.002-07:00</published><updated>2014-07-02T06:15:37.085-07:00</updated><title type='text'></title><content type='html'>Hibernate Error :&amp;nbsp; org.hibernate.PropertyNotFoundException: Could not find a getter for cell_no in class net.viralpatel.contact.model.Contact&lt;br /&gt;
&lt;br /&gt;
My hbm has below property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Initial SessionFactory creation failed.org.hibernate.PropertyNotFoundException: Could not find a getter for cell_no in class net.viralpatel.contact.model.Contact&lt;br /&gt;Oct 5, 2013 11:53:46 PM org.apache.catalina.core.StandardWrapperValve invoke&lt;br /&gt;SEVERE: Servlet.service() for servlet default threw exception&lt;br /&gt;org.hibernate.PropertyNotFoundException: Could not find a getter for cell_no in class net.viralpatel.contact.model.Contact&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:306)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:299)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.hibernate.mapping.Property.getGetter(Property.java:294)</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/7782849925021473283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7782849925021473283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7782849925021473283'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-org.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-7283462607761043380</id><published>2013-10-05T10:42:00.004-07:00</published><updated>2013-10-05T10:42:57.796-07:00</updated><title type='text'></title><content type='html'>&lt;h1&gt;
Hibernate Error – java.lang.NoClassDefFoundError:javax/transaction/Synchronization&lt;/h1&gt;
This is caused by missing of the “&lt;code&gt;jta.jar&lt;/code&gt;“, usually happened in Hibernate transaction development.&lt;br /&gt;
&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;java.&lt;span style=&quot;color: #006633;&quot;&gt;lang&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;NoClassDefFoundError&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; javax&lt;span style=&quot;color: #339933;&quot;&gt;/&lt;/span&gt;transaction&lt;span style=&quot;color: #339933;&quot;&gt;/&lt;/span&gt;Synchronization
 at org.&lt;span style=&quot;color: #006633;&quot;&gt;hibernate&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;impl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;SessionImpl&lt;/span&gt;.&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;init&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;SessionImpl.&lt;span style=&quot;color: #006633;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;213&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at org.&lt;span style=&quot;color: #006633;&quot;&gt;hibernate&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;impl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;SessionFactoryImpl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;openSession&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;SessionFactoryImpl.&lt;span style=&quot;color: #006633;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;473&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at org.&lt;span style=&quot;color: #006633;&quot;&gt;hibernate&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;impl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;SessionFactoryImpl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;openSession&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;SessionFactoryImpl.&lt;span style=&quot;color: #006633;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;497&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at org.&lt;span style=&quot;color: #006633;&quot;&gt;hibernate&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;impl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;SessionFactoryImpl&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;openSession&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;SessionFactoryImpl.&lt;span style=&quot;color: #006633;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;505&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at com.&lt;span style=&quot;color: #006633;&quot;&gt;mkyong&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;App&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;App.&lt;span style=&quot;color: #006633;&quot;&gt;java&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
Caused by&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; java.&lt;span style=&quot;color: #006633;&quot;&gt;lang&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;ClassNotFoundException&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; javax.&lt;span style=&quot;color: #006633;&quot;&gt;transaction&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;Synchronization&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;net&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;URLClassLoader&lt;/span&gt;$1.&lt;span style=&quot;color: #006633;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;security&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;AccessController&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;doPrivileged&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;Native&lt;/span&gt; &lt;span style=&quot;color: #003399;&quot;&gt;Method&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;net&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;URLClassLoader&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;findClass&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;lang&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;ClassLoader&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;loadClass&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at sun.&lt;span style=&quot;color: #006633;&quot;&gt;misc&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;Launcher&lt;/span&gt;$AppClassLoader.&lt;span style=&quot;color: #006633;&quot;&gt;loadClass&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;lang&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;ClassLoader&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;loadClass&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 at java.&lt;span style=&quot;color: #006633;&quot;&gt;lang&lt;/span&gt;.&lt;span style=&quot;color: #003399;&quot;&gt;ClassLoader&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;loadClassInternal&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;Unknown Source&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;
 ... &lt;span style=&quot;color: #cc66cc;&quot;&gt;5&lt;/span&gt; more&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;
Solution&lt;/h3&gt;
You can download “&lt;code&gt;jta.jar&lt;/code&gt;” from default Maven central, JBoss or Java.net repositories.&lt;br /&gt;
&lt;h1&gt;
&amp;nbsp;&lt;/h1&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/7283462607761043380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7283462607761043380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/7283462607761043380'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2013/10/hibernate-error-java.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-3851152667794590934</id><published>2012-11-15T21:14:00.001-08:00</published><updated>2012-11-15T21:15:06.875-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><title type='text'></title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #990000; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How to FTP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In a terminal type below and get gftp installed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&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: #073763;&quot;&gt;&amp;nbsp; apt-get install gftp&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #073763; font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Once it is installed, type gftp and press enter and you will get below window.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&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/AVvXsEgfzR24tyxft5FCCKwPJITq7eTvGYqtBvP9HAxWIAUbJ1hhp5N8n1FBjYGDfi2oMb1r60bneBPMmq6SSX01BHG0XnBGZtoGccvgXZYVS6FK6DojPEKLMDFvE47_1nkUbZg_FKWKDKAbH9fU/s1600/Screenshot+at+2012-11-16+10%253A41%253A21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfzR24tyxft5FCCKwPJITq7eTvGYqtBvP9HAxWIAUbJ1hhp5N8n1FBjYGDfi2oMb1r60bneBPMmq6SSX01BHG0XnBGZtoGccvgXZYVS6FK6DojPEKLMDFvE47_1nkUbZg_FKWKDKAbH9fU/s1600/Screenshot+at+2012-11-16+10%253A41%253A21.png&quot; height=&quot;398&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;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Mention the host u want to transfer the file in to, user name and password you will use to log in to that server.Then from left side select the file you need to transfer by giving location and selecting file.Then click arrow to transfer it. &lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/3851152667794590934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/11/how-to-ftp-in-terminal-type-below-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/3851152667794590934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/3851152667794590934'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/11/how-to-ftp-in-terminal-type-below-and.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfzR24tyxft5FCCKwPJITq7eTvGYqtBvP9HAxWIAUbJ1hhp5N8n1FBjYGDfi2oMb1r60bneBPMmq6SSX01BHG0XnBGZtoGccvgXZYVS6FK6DojPEKLMDFvE47_1nkUbZg_FKWKDKAbH9fU/s72-c/Screenshot+at+2012-11-16+10%253A41%253A21.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-6720382870569478497</id><published>2012-10-15T23:55:00.000-07:00</published><updated>2012-10-15T23:55:01.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debug"/><title type='text'></title><content type='html'>&lt;div style=&quot;color: #990000; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How to Debug In Eclipse&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
neststat -a |grep http&lt;br /&gt;
&lt;br /&gt;
eg:netstat - nap|grep &quot;127.0.0.1&quot;&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/AVvXsEgI5VsK2Sx8yu0a4WnKWcHJOdMEzeCgF2g704OtJybZDDwpojMESi4jo_wfaEY8pDLumTKM1RMh_zh-uyB8LCc2-FA7FwDqya4EyILKCfQtFUPw4g4wWyjq93SlgHXjFRWoPaTGe8Ca6lLW/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI5VsK2Sx8yu0a4WnKWcHJOdMEzeCgF2g704OtJybZDDwpojMESi4jo_wfaEY8pDLumTKM1RMh_zh-uyB8LCc2-FA7FwDqya4EyILKCfQtFUPw4g4wWyjq93SlgHXjFRWoPaTGe8Ca6lLW/s640/11.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Any port which is not used above, can be set at debug port.&lt;br /&gt;
&lt;br /&gt;
In Tomcat -&amp;gt; bin , we have the catalina.sh file. Paste the below lines to that file.Port specified should be the debug port. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;# Debug settings&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;export JAVA_OPTS=&quot;-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5013 $JAVA_OPTS&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Then in eclipse, right click on project and then go to Debug As -&amp;gt; Debug Configurations --&amp;gt; Remote Java Application --&amp;gt; (Rightclick on this) --&amp;gt; New and we get the below wizard.&lt;/span&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/AVvXsEj1EM6BqXsg5fmDDlgwCM2D0Yic0ptirYChdAFEk6YCEXUBZ9HEYdIc1vdDAIntdyvlt-CodW5kW_zNx2TJ06HjLuLfdH0_j_NRk5Ifs9dzkVveJb5Bf5Nl6RT_IO4UZ6OV1EKQsJXeG2rv/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;470&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1EM6BqXsg5fmDDlgwCM2D0Yic0ptirYChdAFEk6YCEXUBZ9HEYdIc1vdDAIntdyvlt-CodW5kW_zNx2TJ06HjLuLfdH0_j_NRk5Ifs9dzkVveJb5Bf5Nl6RT_IO4UZ6OV1EKQsJXeG2rv/s640/22.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;Port in above window should be the debug port we have mentioned earlier.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;We can hav below in build.xml file.This is a task which will help start tomcat in debug mode.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;target name=&quot;tomcat-start-debug&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;echo message=&quot;##############################################################&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;echo message=&quot;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debugging Tomcat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;echo message=&quot;##############################################################&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;java jar=&quot;/home/ishara/Development/Tomcat/apache-tomcat-6.0.35/bin/bootstrap.jar&quot; fork=&quot;true&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;jvmarg value=&quot;-Dcatalina.home=/home/ishara/Development/Tomcat/apache-tomcat-6.0.35&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;jvmarg value=&quot;-Xdebug&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;jvmarg value=&quot;-Xrunjdwp:transport=dt_socket,address=5013,server=y,suspend=n&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;/java&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/target&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;run the task as below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ant tomcat-start-debug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;once tomcat is up, go to eclipse and debug --&amp;gt; debug configuration --&amp;gt; select saved remote java application and click on &#39;Debug&#39; button.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Keep a breakpoint where necessary. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Then start your app, and it will stop at where break point is kept.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/6720382870569478497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/10/how-to-debug-in-eclipse-neststat-grep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6720382870569478497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/6720382870569478497'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/10/how-to-debug-in-eclipse-neststat-grep.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI5VsK2Sx8yu0a4WnKWcHJOdMEzeCgF2g704OtJybZDDwpojMESi4jo_wfaEY8pDLumTKM1RMh_zh-uyB8LCc2-FA7FwDqya4EyILKCfQtFUPw4g4wWyjq93SlgHXjFRWoPaTGe8Ca6lLW/s72-c/11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-4623756835386622068</id><published>2012-06-21T21:42:00.000-07:00</published><updated>2012-06-21T21:45:35.638-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'></title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;&lt;b&gt;MySQL Issues In Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
1) To install MySQL, run the following command from a terminal prompt.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sudo apt-get install mysql-server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2) If you need to check whether the MySQL server is running in your machine, &amp;nbsp;run the following command from a terminal prompt.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sudo netstat -tap | grep mysql&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you get the following reply, it is running.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;tcp &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; localhost.localdomain:mysql &amp;nbsp; &amp;nbsp;*:* &amp;nbsp; &amp;nbsp; LISTEN -&lt;/span&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/AVvXsEjIYJAbxyvN0s4VQRsMupN9Ye-HH94kHEc-85gXy580mE7flfGxNDoXUni_4OxCreUIn_FhdDSk5kydBEXHQYK6SCYU896TFQHsz1Bd4mHiSsRfBD3AXspYb2TpaBltJz3yBLvssWHHRPYF/s1600/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;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIYJAbxyvN0s4VQRsMupN9Ye-HH94kHEc-85gXy580mE7flfGxNDoXUni_4OxCreUIn_FhdDSk5kydBEXHQYK6SCYU896TFQHsz1Bd4mHiSsRfBD3AXspYb2TpaBltJz3yBLvssWHHRPYF/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To start the server type below.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sudo /etc/init.d/mysql restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3) To stop the server type below.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sudo /etc/init.d/mysql stop&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4) How to log in to MySQL&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;mysql -u root -p;&lt;/span&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/AVvXsEiXgd4TuyMdupZVZ_j0qrCfWRyBwXrcZOJwqMPijvx8ZBBGuSUxB8tl_dtWNQw3V_85cpu4gay1sWaafXNdsE56zLbg3eVE1J_r0kANqenaw73VHZIZ11Z51Lk0vhr7smJpPhH4SfQ0xuw2/s1600/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;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXgd4TuyMdupZVZ_j0qrCfWRyBwXrcZOJwqMPijvx8ZBBGuSUxB8tl_dtWNQw3V_85cpu4gay1sWaafXNdsE56zLbg3eVE1J_r0kANqenaw73VHZIZ11Z51Lk0vhr7smJpPhH4SfQ0xuw2/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
5) How to retrieve users list in mysql&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;select User from mysql.user;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
6) How to create new user account&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;CREATE USER Ish IDENTIFIED BY PASSWORD &#39;ish&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
7) How to check existing databases&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;show databases;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
8) How to grant all privileges to a user&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;GRANT ALL ON TEST.* TO &#39;Ish&#39;@&#39;localhost&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
8) How to grant specific privileges to a user&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;GRANT SELECT,INSERT,UPDATE,DELETE ON TEST.* TO &#39;Ish&#39;@&#39;localhost&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
9) How to log in as a different user&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;mysql -u USERNAME -p;&lt;/span&gt;&lt;br /&gt;
(here it will prompt for the password)</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/4623756835386622068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/06/mysql-issues-in-ubuntu-1-to-install_6254.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/4623756835386622068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/4623756835386622068'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/06/mysql-issues-in-ubuntu-1-to-install_6254.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIYJAbxyvN0s4VQRsMupN9Ye-HH94kHEc-85gXy580mE7flfGxNDoXUni_4OxCreUIn_FhdDSk5kydBEXHQYK6SCYU896TFQHsz1Bd4mHiSsRfBD3AXspYb2TpaBltJz3yBLvssWHHRPYF/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-1870251067929563203</id><published>2012-06-04T20:55:00.003-07:00</published><updated>2012-06-04T20:57:10.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gnome Shell"/><title type='text'></title><content type='html'>&lt;h2 style=&quot;color: #990000;&quot;&gt;


&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Alt+Tab Switcher effect Not Working In Ubuntu&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Recently I was met with an issue after taking usual updates in Ubuntu.Normal Alt+Tab behavior would not work as it used to and that made my laptop completely unusable.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
After looking through so many forums, I realized many people have faced the same issue.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you face the same issue, below is how to get rid of it, temporarily.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1)&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;Install Gnome shell in ubuntu 11.10 as below.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
sudo apt-get install gnome-shell&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;2) L&lt;/b&gt;ogout from the existing session &amp;amp; select GNOME from the login Screen&lt;b style=&quot;font-weight: normal;&quot;&gt; as below.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPr4w2ow_Bt0Xq9YPR2408jKA5hGRoHFBWW6WFhnSiUs_LCq9iHQmIv4S3rLVRJV5nqrzxh0_fhl6rDi0PkH9fafp48NX7JqekfFxumOcoVQSa9wXBnHZiM7kV7XcoPs-N3gQpHSLKQmEl/s1600/111.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/AVvXsEgPr4w2ow_Bt0Xq9YPR2408jKA5hGRoHFBWW6WFhnSiUs_LCq9iHQmIv4S3rLVRJV5nqrzxh0_fhl6rDi0PkH9fafp48NX7JqekfFxumOcoVQSa9wXBnHZiM7kV7XcoPs-N3gQpHSLKQmEl/s640/111.png&quot; width=&quot;598&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/b&gt; &lt;/div&gt;
3) Once you log in you will get below desktop.&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/AVvXsEgwRGGyHybiwgkHR17rN2GXPLUk3EVfjPX0FecVuA40tvDfuQo_EW_vTrcOv1Ql7JCNqGObKhbr3c_2oX-k60KREpXSIDU6hakMF60ZTDJvyHUyAoEyO50BiJ3arwA-rUNfobbdu7rfp-sY/s1600/222.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwRGGyHybiwgkHR17rN2GXPLUk3EVfjPX0FecVuA40tvDfuQo_EW_vTrcOv1Ql7JCNqGObKhbr3c_2oX-k60KREpXSIDU6hakMF60ZTDJvyHUyAoEyO50BiJ3arwA-rUNfobbdu7rfp-sY/s640/222.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4) It will have some nice user friendly environments as below.&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/AVvXsEhcC3js-Q-QTbW16RXgqVscy-h32QHRuZAC9CMzi7hmnnHiQUdAHQxTrIfXltHidYa2NO3cMa64NoNj3-XOnHthrqsxfjPTQuBSsN1WjRyWbl3VGBfS_FEK9-kNlQ6MUnErTxrL_IOZFxlW/s1600/desktop1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcC3js-Q-QTbW16RXgqVscy-h32QHRuZAC9CMzi7hmnnHiQUdAHQxTrIfXltHidYa2NO3cMa64NoNj3-XOnHthrqsxfjPTQuBSsN1WjRyWbl3VGBfS_FEK9-kNlQ6MUnErTxrL_IOZFxlW/s640/desktop1.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/AVvXsEj8kn_n5xUukVlQFXDj-8nMHcI1uKiRojQMcVRVzOJQym_GUbjce4TC1HqZOzqsXTg-DUznxNzImyQyrYZuK8NQ6hTZzu0vYCcX5tD-BADV49Z6r7j2Qj13Cxsl-qx_FYWD4UnvOcsztBEi/s1600/desktop2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8kn_n5xUukVlQFXDj-8nMHcI1uKiRojQMcVRVzOJQym_GUbjce4TC1HqZOzqsXTg-DUznxNzImyQyrYZuK8NQ6hTZzu0vYCcX5tD-BADV49Z6r7j2Qj13Cxsl-qx_FYWD4UnvOcsztBEi/s640/desktop2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/1870251067929563203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/06/alttab-switcher-effect-not-working-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1870251067929563203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1870251067929563203'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/06/alttab-switcher-effect-not-working-in.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPr4w2ow_Bt0Xq9YPR2408jKA5hGRoHFBWW6WFhnSiUs_LCq9iHQmIv4S3rLVRJV5nqrzxh0_fhl6rDi0PkH9fafp48NX7JqekfFxumOcoVQSa9wXBnHZiM7kV7XcoPs-N3gQpHSLKQmEl/s72-c/111.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-1683793603298684575</id><published>2012-05-31T21:41:00.000-07:00</published><updated>2014-07-02T06:15:37.023-07:00</updated><title type='text'></title><content type='html'>How To Install NS2 On Ubuntu&lt;br /&gt;
&lt;br /&gt;
1. Download a copy of ns-allinone-2.31.tar.gz and paste on your home directory (eg,&lt;br /&gt;/home/myusername/)&lt;br /&gt;2. Then from the command prompt there, execute the following:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;tar -xzf ns-allinone-2.31.tar.gz&lt;/li&gt;
&lt;li&gt;&amp;nbsp;cd ns-allinone-2.31&lt;/li&gt;
&lt;li&gt;&amp;nbsp;./install&lt;/li&gt;
&lt;/ul&gt;
After a long wait and a whole lot of text, you should see the installation finish up with text like the following:&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/AVvXsEidl8_xvtdFSnrVikXbd1TN7R3jc7gq6BRNvumV-D0SBv0gZNO2im0yHW-BgVY414n8qX3q59OPP8OKbMIvZ0ORWLd9DXu9em9C7Jtj9B6CRPK3etup7x1nWZvRrNJROijx1vCrlsiiFUuM/s1600/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;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidl8_xvtdFSnrVikXbd1TN7R3jc7gq6BRNvumV-D0SBv0gZNO2im0yHW-BgVY414n8qX3q59OPP8OKbMIvZ0ORWLd9DXu9em9C7Jtj9B6CRPK3etup7x1nWZvRrNJROijx1vCrlsiiFUuM/s640/1.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/AVvXsEj6HUwbQQuOetD2sZ-jYaVT-Cfgz9WOScwzmNCp93X60kxpPFI1jHXlKl8ihM6n-mLTjBr7LqGiBk52urnRdXNRQdOV_W2LJew495vilYgsNYMbXY-PW5DfYsVGQRNAF0LU_oZ14oxqPLYN/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6HUwbQQuOetD2sZ-jYaVT-Cfgz9WOScwzmNCp93X60kxpPFI1jHXlKl8ihM6n-mLTjBr7LqGiBk52urnRdXNRQdOV_W2LJew495vilYgsNYMbXY-PW5DfYsVGQRNAF0LU_oZ14oxqPLYN/s640/23.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/1683793603298684575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/05/how-to-install-ns2-on-ubuntu-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1683793603298684575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1683793603298684575'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/05/how-to-install-ns2-on-ubuntu-1.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidl8_xvtdFSnrVikXbd1TN7R3jc7gq6BRNvumV-D0SBv0gZNO2im0yHW-BgVY414n8qX3q59OPP8OKbMIvZ0ORWLd9DXu9em9C7Jtj9B6CRPK3etup7x1nWZvRrNJROijx1vCrlsiiFUuM/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-1124452085885993105</id><published>2012-04-25T22:44:00.000-07:00</published><updated>2012-04-25T22:46:02.587-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debug"/><title type='text'></title><content type='html'>&lt;div style=&quot;color: #990000; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How To Debug In Eclipse&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
1) change the &#39;catalina.sh&#39; file as below which is in &#39;bin&#39; folder of your tomcat directory.Add below lines. &lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #351c75;&quot;&gt;
# Debug settings&lt;br /&gt;
export JAVA_OPTS=&quot;-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5013 $JAVA_OPTS&quot;&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/AVvXsEj54x6IvprOYUbyTzsZBYt7xASGFs6xK5bwHjtisin4f0M2clfMqlFCSHm3i_mCdZcb_0yx-2BvUqnKFW371f98paupYOgBAtEH30sscia6QXo8izKyGTTxB5qX3dKBFyVVK07qeMst8dAD/s1600/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;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj54x6IvprOYUbyTzsZBYt7xASGFs6xK5bwHjtisin4f0M2clfMqlFCSHm3i_mCdZcb_0yx-2BvUqnKFW371f98paupYOgBAtEH30sscia6QXo8izKyGTTxB5qX3dKBFyVVK07qeMst8dAD/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
2) Start your tomcat server.You can see now server is listening on port 5013.&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/AVvXsEjZ9AItqazdgEqrbz6S1CpiazGHJDQ504rC_kd9ZIrnz0MmVKTuQuoemofaLTVVMFncEtGHv4AJq-7r5ww4rckv0zYjvV4kHgyaH9nMLcheVha_gSLpjcHb_MGl3MdrJzo4KjZMVWovufFF/s1600/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;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ9AItqazdgEqrbz6S1CpiazGHJDQ504rC_kd9ZIrnz0MmVKTuQuoemofaLTVVMFncEtGHv4AJq-7r5ww4rckv0zYjvV4kHgyaH9nMLcheVha_gSLpjcHb_MGl3MdrJzo4KjZMVWovufFF/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
3) Open debug perspective in eclipse. It will be shown like below in right side corner of eclipse.&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/AVvXsEhTU4gWOg_FeEPCpgoUyhL4zE0VxvvNr3PO3MTPTV2m-TV9E7PFJn67noLfqXcu48jsrH8Iu0L1QxRAm8LvQVdTzyGlwRQ7kNj6xcMgS-fBpxLPBHFW33Stff54W5XWH66yNNZ5KTHkJkq-/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTU4gWOg_FeEPCpgoUyhL4zE0VxvvNr3PO3MTPTV2m-TV9E7PFJn67noLfqXcu48jsrH8Iu0L1QxRAm8LvQVdTzyGlwRQ7kNj6xcMgS-fBpxLPBHFW33Stff54W5XWH66yNNZ5KTHkJkq-/s1600/5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4) In Eclipse Run -&amp;gt; Debug Configurations -&amp;gt; Remote Java Application (double click on this option to get below window) and you will get below window.Specify a name &amp;amp; debug port you have set in tomcat.(In above image you can see, it is set to 5013).The debug profile will be added under remote java application.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Click &#39;Apply&#39; &amp;amp; click &#39;Debug&#39;.&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/AVvXsEiXKKuux3Y_DjLqAHD_pPQLWp5FVdpOBi5w-FJ3RiSTqZeQmZpI3_JZj1pkvQw8OaYB3VIcoFOOcnOseu0X6t1ozwky2E8xoI7pUJb_A6_1Ku1vxULr0gZceJxxy8Cbr5neJDh9zn_yCL66/s1600/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;406&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXKKuux3Y_DjLqAHD_pPQLWp5FVdpOBi5w-FJ3RiSTqZeQmZpI3_JZj1pkvQw8OaYB3VIcoFOOcnOseu0X6t1ozwky2E8xoI7pUJb_A6_1Ku1vxULr0gZceJxxy8Cbr5neJDh9zn_yCL66/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
5) Once you click &#39;debug&#39;, in above window, it will open the debug perspective.You can see how we have kept a break point in one method.After creating the break point, log in to app and execute search or whatever the operation.But as we have the break point, operation will stop in the immediate previous line without executing line with break point.But in variables window, we can see all variable values of that line with break point as shown below.&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/AVvXsEjjVty9qIFOP741j04fw0rFA2_RBSSVRSjQWVSrpLmxkEDQRMt37yCt1SHzpjds8thAsVZSPvdvTQ-G6nMBxzn_RxDSo5xWKABl3KuvtOTSVQTdz5HzRPkY_TwZcmpdBn1nqdgtRxA4Vvgu/s1600/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;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjVty9qIFOP741j04fw0rFA2_RBSSVRSjQWVSrpLmxkEDQRMt37yCt1SHzpjds8thAsVZSPvdvTQ-G6nMBxzn_RxDSo5xWKABl3KuvtOTSVQTdz5HzRPkY_TwZcmpdBn1nqdgtRxA4Vvgu/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
6) following shortcut keys can be used as well.&lt;br /&gt;
&lt;br /&gt;
F5 - step into (inspect within method)&lt;br /&gt;
F6 - step over (go to next line)</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/1124452085885993105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/04/how-to-debug-in-eclipse-1-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1124452085885993105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/1124452085885993105'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/04/how-to-debug-in-eclipse-1-change.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj54x6IvprOYUbyTzsZBYt7xASGFs6xK5bwHjtisin4f0M2clfMqlFCSHm3i_mCdZcb_0yx-2BvUqnKFW371f98paupYOgBAtEH30sscia6QXo8izKyGTTxB5qX3dKBFyVVK07qeMst8dAD/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-8430265599791728418</id><published>2012-03-14T20:03:00.001-07:00</published><updated>2012-03-14T21:08:51.879-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 12.04"/><title type='text'></title><content type='html'>&lt;h1 id=&quot;watch-headline-title&quot; style=&quot;color: #990000;&quot;&gt;








&lt;/h1&gt;
&lt;a href=&quot;http://releases.ubuntu.com/precise/&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;color: #990000;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Ubuntu 12.04 (Precise Pangolin) &lt;b style=&quot;color: red;&quot;&gt;BETA 2&lt;/b&gt; is to be released on &lt;b style=&quot;color: red;&quot;&gt;March 29th&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;,&lt;/span&gt; 2012.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dzhBLQ-gaVlR_MrEN-Gmp1Sveh_gnu_ks3EyLGVIqv2KwVrmuEvLIbabwnE7f6xYc3htdhLuVzMILjNt_d0YQ&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;h1 id=&quot;watch-headline-title&quot;&gt;







&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Download Ubuntu 12.04 BETA 1 &lt;/span&gt;&lt;a href=&quot;http://releases.ubuntu.com/precise/&quot; style=&quot;font-weight: normal;&quot; target=&quot;_blank&quot;&gt;http://releases.ubuntu.com/precise/&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;&quot; dir=&quot;ltr&quot; id=&quot;eow-title&quot; title=&quot;See What&#39;s New in Ubuntu 12.04 Alpha 2&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;h1 id=&quot;watch-headline-title&quot; style=&quot;text-align: justify;&quot;&gt;








&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;The first beta version that will become &lt;/span&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;Ubuntu 12.04&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; 
LTS with codename &quot;precise pangolin”, has been released by Ubuntu 
Development Team. the stable version will be released at the end of 
April 2012.&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 id=&quot;watch-headline-title&quot;&gt;






&lt;/h1&gt;
&lt;h1 id=&quot;watch-headline-title&quot; style=&quot;text-align: justify;&quot;&gt;






&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;I have listed down some new features in 12.04 which I thought would be interesting.&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;&lt;b&gt;A Fresh Kernel - &lt;/b&gt;Finally, upgrading from the second alpha release of Precise Pangolin, this new beta version includes the 3.2.0-17.27 Ubuntu kernel, which is based on version 3.2.6 of the upstream stable Linux kernel.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;&lt;b&gt;Privacy Settings&lt;/b&gt; -Although this is not a huge breakthrough of system security, but will help improve account privacy. In earlier searches, every file and folder appears in desktop search, so if anyone has access to your account they can easily browser your personal content.But in 12.04 we can specify what files &amp;amp; folders would not be included in a search, so that they will remain private. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Ubuntu Software Center&lt;/b&gt; gained software recommendations.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySF5AXITuOYBVpneKi6WMfWLn79UKAca3XUDLjbVmtHT5xxA8RxcryjKmEd-wdyKzadUFkirf3GCD5RYPzTjL7L42xaPHmWaccR5fhmwr46snl7AhGi69ht4oj2yGLJkp-lJQG5iQ0lzb/s1600/usc+recomandations+1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySF5AXITuOYBVpneKi6WMfWLn79UKAca3XUDLjbVmtHT5xxA8RxcryjKmEd-wdyKzadUFkirf3GCD5RYPzTjL7L42xaPHmWaccR5fhmwr46snl7AhGi69ht4oj2yGLJkp-lJQG5iQ0lzb/s400/usc+recomandations+1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Goodbye Banshee, Welcome Back Rhythm box!&amp;nbsp; - &lt;/b&gt;Rhythmbox has just replaced Banshee in Ubuntu 12.04.&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9anEMGhcRiRbGrS3gfIBMdwGY-0iyYpbz9uho_WqiZOWczmSNVOuVnGGd7g1diDh5pYPNHlzYnPLZd5_dqVN8wWjspd-P45cI1tGuZU-sxU4Towxp7rxwvNd54gWuVpyiQ_Q0EhbvOGaC/s1600/rhythmbox.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9anEMGhcRiRbGrS3gfIBMdwGY-0iyYpbz9uho_WqiZOWczmSNVOuVnGGd7g1diDh5pYPNHlzYnPLZd5_dqVN8wWjspd-P45cI1tGuZU-sxU4Towxp7rxwvNd54gWuVpyiQ_Q0EhbvOGaC/s1600/rhythmbox.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9anEMGhcRiRbGrS3gfIBMdwGY-0iyYpbz9uho_WqiZOWczmSNVOuVnGGd7g1diDh5pYPNHlzYnPLZd5_dqVN8wWjspd-P45cI1tGuZU-sxU4Towxp7rxwvNd54gWuVpyiQ_Q0EhbvOGaC/s400/rhythmbox.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;The HUD&amp;nbsp;&amp;nbsp; - &lt;/b&gt;HUD means &#39;Head-Up-Dispaly&#39;, a new way to quickly search and access any desktop application’s and indicator’s menu.This is the Ubuntu 12.04 prime feature. Just hit the Alt key to reveal it. &lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3idsn7V99frJkkCiGvXJQ0T35TLZJi2zUaMIOyRKnFLnW7nlLoypR9LC54k5_dlGyJEWzbaVpcnU0Y_RHjhbQ1QjmC4kCiTIzwu3yjkv7bH3J3D4J-qGCnPKzCengBN8fPDRNWLctRklv/s1600/HUD-Feature-Ubuntu-12.04-Beta-1.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3idsn7V99frJkkCiGvXJQ0T35TLZJi2zUaMIOyRKnFLnW7nlLoypR9LC54k5_dlGyJEWzbaVpcnU0Y_RHjhbQ1QjmC4kCiTIzwu3yjkv7bH3J3D4J-qGCnPKzCengBN8fPDRNWLctRklv/s400/HUD-Feature-Ubuntu-12.04-Beta-1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;b&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;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Brand New Video Lense&lt;/b&gt;&lt;b&gt; -&amp;nbsp; &lt;/b&gt;When you open up the Unity Dash you can select from specific Lenses, 
specifying what you want to view. Previous iterations of Unity already 
included an Audio Lens, and now Video Lens have been added to that 
ever-expanding Dash. This new Lens will allow you to easily search Youtube, Amazon, Shows, ABC iView, Sci-Fi London, TED Talks, and more stuff&amp;nbsp; online&lt;b&gt;.&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9w0CJgixJxmPHdCWNwq910oUk4I-QG9vbEn8cYtFAYHwNjOU7ynueA8Qy6eiTBh2E86xXn1tTwiF6epRxLZ-tYI29HUBJXxodkwrcJGKc4OkIb6UJ1DWpJDQyMR9CPeWF4aId1bEi94kl/s400/Video-Lens-Ubuntu-12.04-Beta-1.jpg&quot; width=&quot;400&quot; /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&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; &lt;div style=&quot;color: #990000; text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Ubuntu is starting to make it’s desktop hard to resist. It won’t be long
 before Ubuntu creates the right mixture of features and performance to 
make their distribution irresistible to users. &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #cc0000; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/8430265599791728418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/03/see-whats-new-in-ubuntu-12.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/8430265599791728418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/8430265599791728418'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/03/see-whats-new-in-ubuntu-12.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySF5AXITuOYBVpneKi6WMfWLn79UKAca3XUDLjbVmtHT5xxA8RxcryjKmEd-wdyKzadUFkirf3GCD5RYPzTjL7L42xaPHmWaccR5fhmwr46snl7AhGi69ht4oj2yGLJkp-lJQG5iQ0lzb/s72-c/usc+recomandations+1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4694851502121400946.post-5854889396011267214</id><published>2012-03-08T20:19:00.001-08:00</published><updated>2012-03-14T20:16:23.700-07:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #990000;&quot;&gt;The software development is &lt;span style=&quot;color: magenta;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;not a question on can you ?&amp;nbsp; but will you?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;color: magenta;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This blog is Created with intention of helping out beginners in software development industry. As a developer there are many simple issues which you may face in your day to day life.Sometimes same issue occurs again &amp;amp; again and if you do not keep track of the solution, you have to go through the same tedious process to find the answer again.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The blog mainly focuses on providing a help for Ubuntu initial users with relevant to different kind of installations, daily features you may acquire on Ubuntu, development issues etc.Blog will specify other issues as well with relevant to specific tools a developer may use such as Eclipse, SQL Developer, Ant, Tomcat etc.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hope everyone will be benefited.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://practicalguidetocoding.blogspot.com/feeds/5854889396011267214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/03/software-development-is-not-question-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/5854889396011267214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4694851502121400946/posts/default/5854889396011267214'/><link rel='alternate' type='text/html' href='http://practicalguidetocoding.blogspot.com/2012/03/software-development-is-not-question-on.html' title=''/><author><name>Ishara Hewawasam</name><uri>http://www.blogger.com/profile/16408185293161295619</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLl8JyxBIJpM_aX7-P-2Hy2uku3Yg7zaCgZ1mZVlwYupn15HPUgNxWHruIK-SUglVPu1nqJhMvTaC6F9PG7hULTHEesBb6qbqpCY6nfsXYcvqAbIVvRANGD6FKMTxlg0/s220/DSC00011.JPG'/></author><thr:total>0</thr:total></entry></feed>